Public Types | Public Member Functions | Private Attributes | List of all members
WireCell::SequenceAdapter< IDataClass > Class Template Reference

#include <ISequence.h>

Inheritance diagram for WireCell::SequenceAdapter< IDataClass >:
WireCell::ISequence< IDataClass >

Public Types

typedef ISequence< IDataClass >::iterator iterator
 
- Public Types inherited from WireCell::ISequence< IDataClass >
typedef ISequence< IDataClass > this_type
 
typedef std::shared_ptr< this_typepointer
 Access this sequence via shared (non-const) pointer. More...
 
typedef IDataClass::iterator iterator
 
typedef IDataClass::const_iterator const_iterator
 
typedef IDataClass::base_iterator base_iterator
 
typedef IDataClass::iterator_range iterator_range
 

Public Member Functions

template<typename OtherIter >
 SequenceAdapter (const OtherIter &begin, const OtherIter &end)
 
virtual iterator begin ()
 
virtual iterator end ()
 
virtual ~SequenceAdapter ()
 
- Public Member Functions inherited from WireCell::ISequence< IDataClass >
virtual const_iterator cbegin () const =0
 Concrete class must implement: More...
 
virtual const_iterator cend () const =0
 
virtual const_iterator begin () const
 
virtual const_iterator end () const
 
virtual iterator_range range ()
 Return begin/end pair as iterator range. More...
 
virtual ~ISequence ()
 

Private Attributes

iterator m_begin
 
iterator m_end
 

Additional Inherited Members

- Static Public Member Functions inherited from WireCell::ISequence< IDataClass >
template<typename OtherIter >
static iterator adapt (const OtherIter &itr)
 Adapt one iterator to the standard facade iterator. More...
 
template<typename OtherIter >
static const_iterator cadapt (const OtherIter &itr)
 

Detailed Description

template<class IDataClass>
class WireCell::SequenceAdapter< IDataClass >

An ISequence made by adapting begin/end iterators of some other type.

Definition at line 61 of file ISequence.h.

Member Typedef Documentation

template<class IDataClass >
typedef ISequence<IDataClass>::iterator WireCell::SequenceAdapter< IDataClass >::iterator

Definition at line 64 of file ISequence.h.

Constructor & Destructor Documentation

template<class IDataClass >
template<typename OtherIter >
WireCell::SequenceAdapter< IDataClass >::SequenceAdapter ( const OtherIter &  begin,
const OtherIter &  end 
)
inline

Definition at line 67 of file ISequence.h.

70  {}
virtual iterator end()
Definition: ISequence.h:73
virtual iterator begin()
Definition: ISequence.h:72
static iterator adapt(const OtherIter &itr)
Adapt one iterator to the standard facade iterator.
Definition: ISequence.h:32
template<class IDataClass >
virtual WireCell::SequenceAdapter< IDataClass >::~SequenceAdapter ( )
virtual

Member Function Documentation

template<class IDataClass >
virtual iterator WireCell::SequenceAdapter< IDataClass >::begin ( )
inlinevirtual

Reimplemented from WireCell::ISequence< IDataClass >.

Definition at line 72 of file ISequence.h.

72 { return m_begin; }
template<class IDataClass >
virtual iterator WireCell::SequenceAdapter< IDataClass >::end ( void  )
inlinevirtual

Reimplemented from WireCell::ISequence< IDataClass >.

Definition at line 73 of file ISequence.h.

73 { return m_end; }

Member Data Documentation

template<class IDataClass >
iterator WireCell::SequenceAdapter< IDataClass >::m_begin
private

Definition at line 77 of file ISequence.h.

template<class IDataClass >
iterator WireCell::SequenceAdapter< IDataClass >::m_end
private

Definition at line 77 of file ISequence.h.


The documentation for this class was generated from the following file: