MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Attributes
mds::base::CSTLIterator< I > Class Template Reference

STL iterator wrapper. More...

#include <mdsSTLIterator.h>

Inheritance diagram for mds::base::CSTLIterator< I >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CIteratorBase
< CSTLIterator< I > > 
base
 Iterator base.
typedef CSTLIterator< I > tDerived
 Iterator type.
typedef base::tItem tItem
 Item type.
typedef I tSTLIterator
 STL iterator.

Public Member Functions

void advance ()
 Moves iterator to the next position.
bool atEnd () const
 Returns true if the iterator position is valid.
 CSTLIterator (const tSTLIterator &Begin, const tSTLIterator &End)
 Constructor.
 CSTLIterator (const CSTLIterator &It)
 Copy constructor.
tDerived & getImpl ()
 Returns reference to the iterator implementation.
const tDerived & getImpl () const
tSize getSize () const
 Returns size of the sequence.
 operator bool () const
 Returns true if the iterator is valid, i.e. not pointing after the end.
tItem & operator* () const
 Returns reference to the current item.
CIteratorBase & operator++ ()
CIteratorBase operator++ (int)
tItem * operator-> () const
 Returns pointer to the current item.
CSTLIterator & operator= (const CSTLIterator &It)
 Assignment operator.
const tItem & value () const
 Returns the current item.
tItem * valuePtr () const
 Returns pointer to the current item.
tItem & valueRef () const
 Returns reference to the current item.
 ~CSTLIterator ()
 Destructor.

Protected Attributes

tSTLIterator m_Begin
 Wrapped STL iterators.
tSTLIterator m_End

Detailed Description

template<typename I>
class mds::base::CSTLIterator< I >

STL iterator wrapper.


Member Typedef Documentation

template<typename I >
typedef CIteratorBase<CSTLIterator<I> > mds::base::CSTLIterator< I >::base

Iterator base.

typedef CSTLIterator< I > mds::base::CIteratorBase< CSTLIterator< I > >::tDerived [inherited]

Iterator type.

template<typename I >
typedef base::tItem mds::base::CSTLIterator< I >::tItem

Item type.

Reimplemented from mds::base::CIteratorBase< CSTLIterator< I > >.

template<typename I >
typedef I mds::base::CSTLIterator< I >::tSTLIterator

STL iterator.


Constructor & Destructor Documentation

template<typename I >
mds::base::CSTLIterator< I >::CSTLIterator ( const tSTLIterator &  Begin,
const tSTLIterator &  End 
)

Constructor.

template<typename I >
mds::base::CSTLIterator< I >::CSTLIterator ( const CSTLIterator< I > &  It)

Copy constructor.

template<typename I >
mds::base::CSTLIterator< I >::~CSTLIterator ( )

Destructor.


Member Function Documentation

template<typename I >
void mds::base::CSTLIterator< I >::advance ( )

Moves iterator to the next position.

template<typename I >
bool mds::base::CSTLIterator< I >::atEnd ( ) const

Returns true if the iterator position is valid.

Returns reference to the iterator implementation.

const tDerived& mds::base::CIteratorBase< CSTLIterator< I > >::getImpl ( ) const [inherited]
template<typename I >
tSize mds::base::CSTLIterator< I >::getSize ( ) const

Returns size of the sequence.

Reimplemented from mds::base::CIteratorBase< CSTLIterator< I > >.

mds::base::CIteratorBase< CSTLIterator< I > >::operator bool ( ) const [inherited]

Returns true if the iterator is valid, i.e. not pointing after the end.

tItem& mds::base::CIteratorBase< CSTLIterator< I > >::operator* ( ) const [inherited]

Returns reference to the current item.

CIteratorBase& mds::base::CIteratorBase< CSTLIterator< I > >::operator++ ( ) [inherited]
CIteratorBase mds::base::CIteratorBase< CSTLIterator< I > >::operator++ ( int  ) [inherited]
tItem* mds::base::CIteratorBase< CSTLIterator< I > >::operator-> ( ) const [inherited]

Returns pointer to the current item.

template<typename I >
CSTLIterator& mds::base::CSTLIterator< I >::operator= ( const CSTLIterator< I > &  It)

Assignment operator.

template<typename I >
const tItem& mds::base::CSTLIterator< I >::value ( ) const

Returns the current item.

Reimplemented from mds::base::CIteratorBase< CSTLIterator< I > >.

template<typename I >
tItem* mds::base::CSTLIterator< I >::valuePtr ( ) const

Returns pointer to the current item.

Reimplemented from mds::base::CIteratorBase< CSTLIterator< I > >.

template<typename I >
tItem& mds::base::CSTLIterator< I >::valueRef ( ) const

Returns reference to the current item.

Reimplemented from mds::base::CIteratorBase< CSTLIterator< I > >.


Member Data Documentation

template<typename I >
tSTLIterator mds::base::CSTLIterator< I >::m_Begin [protected]

Wrapped STL iterators.

template<typename I >
tSTLIterator mds::base::CSTLIterator< I >::m_End [protected]

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