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

Base class for all iterators. More...

#include <mdsIteratorBase.h>

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

List of all members.

Public Types

typedef I tDerived
 Iterator type.
typedef CIteratorTraits< I >::tItem tItem
 Value (or item) type.

Public Member Functions

tDerivedgetImpl ()
 Returns reference to the iterator implementation.
const tDerivedgetImpl () const
tSize getSize () const
 Returns number of all items in the container.
 operator bool () const
 Returns true if the iterator is valid, i.e. not pointing after the end.
tItemoperator* () const
 Returns reference to the current item.
CIteratorBaseoperator++ ()
CIteratorBase operator++ (int)
tItemoperator-> () const
 Returns pointer to the current item.
const tItemvalue () const
 Returns the current item.
tItemvaluePtr () const
 Returns pointer to the current item.
tItemvalueRef () const
 Returns reference to the current item.

Protected Member Functions

 CIteratorBase ()
 Default constructor.
 CIteratorBase (const CIteratorBase &)
 Copy constructor.
CIteratorBaseoperator= (const CIteratorBase &)
 Assignment operator.

Detailed Description

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

Base class for all iterators.


Member Typedef Documentation

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

Iterator type.

template<typename I>
typedef CIteratorTraits<I>::tItem mds::base::CIteratorBase< I >::tItem

Value (or item) type.

Reimplemented in mds::base::CSTLIterator< I >.


Constructor & Destructor Documentation

template<typename I>
mds::base::CIteratorBase< I >::CIteratorBase ( ) [protected]

Default constructor.

template<typename I>
mds::base::CIteratorBase< I >::CIteratorBase ( const CIteratorBase< I > &  ) [protected]

Copy constructor.


Member Function Documentation

template<typename I>
tDerived& mds::base::CIteratorBase< I >::getImpl ( )

Returns reference to the iterator implementation.

template<typename I>
const tDerived& mds::base::CIteratorBase< I >::getImpl ( ) const
template<typename I>
tSize mds::base::CIteratorBase< I >::getSize ( ) const
template<typename I>
mds::base::CIteratorBase< I >::operator bool ( ) const

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

template<typename I>
tItem& mds::base::CIteratorBase< I >::operator* ( ) const

Returns reference to the current item.

template<typename I>
CIteratorBase& mds::base::CIteratorBase< I >::operator++ ( )
template<typename I>
CIteratorBase mds::base::CIteratorBase< I >::operator++ ( int  )
template<typename I>
tItem* mds::base::CIteratorBase< I >::operator-> ( ) const

Returns pointer to the current item.

template<typename I>
CIteratorBase& mds::base::CIteratorBase< I >::operator= ( const CIteratorBase< I > &  ) [protected]

Assignment operator.

template<typename I>
const tItem& mds::base::CIteratorBase< I >::value ( ) const
template<typename I>
tItem& mds::base::CIteratorBase< I >::valuePtr ( ) const
template<typename I>
tItem& mds::base::CIteratorBase< I >::valueRef ( ) const

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