Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Attributes | Friends
Saf::Collection::Deque< T >::ConstIterator Class Reference

Random-access non-mutable Deque iterator. More...

#include <Deque.h>

Inheritance diagram for Saf::Collection::Deque< T >::ConstIterator:
Saf::Collection::Deque< T >::Iterator

List of all members.

Public Types

typedef
Type::IteratorCategory::RandomAccessCategory 
CategoryType
typedef T ValType

Public Member Functions

 ConstIterator ()
 Default constructor.
 ConstIterator (Size ofs, MyType &deque)
 Constructor.
 ConstIterator (const ConstIterator &it)
 Copy constructor.
bool operator!= (const ConstIterator &it) const
 Comparison operator.
const T & operator* () const
 Value reference.
ConstIterator operator+ (Diff offset) const
 Offset operator.
ConstIteratoroperator++ ()
 Preincrement operator.
ConstIterator operator++ (int)
 Postincrement operator.
ConstIteratoroperator+= (Diff offset)
 Offset operator.
ConstIterator operator- (Diff offset) const
 Offset operator.
Diff operator- (const ConstIterator &it) const
 Difference operator.
ConstIteratoroperator-- ()
 Predecrement operator.
ConstIterator operator-- (int)
 Postdecrement operator.
ConstIteratoroperator-= (Diff offset)
 Offset operator.
const T * operator-> () const
 Value pointer.
bool operator< (const ConstIterator &it) const
 Comparison operator.
bool operator<= (const ConstIterator &it) const
 Comparison operator.
ConstIteratoroperator= (const ConstIterator &it)
 Assignment operator.
bool operator== (const ConstIterator &it) const
 Comparison operator.
bool operator> (const ConstIterator &it) const
 Comparison operator.
bool operator>= (const ConstIterator &it) const
 Comparison operator.
const T & operator[] (Diff ofs) const
 Subscript operator.

Protected Attributes

MyTypem_deque
 Pointer to the parent container.
Size m_ofs
 Offset of the current element from the beginning of the block map.
T * m_ptr
 Element pointer.

Friends

class Deque< T >

Detailed Description

template<class T>
class Saf::Collection::Deque< T >::ConstIterator

Random-access non-mutable Deque iterator.


Member Typedef Documentation

template<class T >
typedef T Saf::Collection::Deque< T >::ConstIterator::ValType

Constructor & Destructor Documentation

template<class T >
Saf::Collection::Deque< T >::ConstIterator::ConstIterator ( ) [inline]

Default constructor.

template<class T >
Saf::Collection::Deque< T >::ConstIterator::ConstIterator ( Size  ofs,
MyType deque 
) [inline, explicit]

Constructor.

template<class T >
Saf::Collection::Deque< T >::ConstIterator::ConstIterator ( const ConstIterator it) [inline]

Copy constructor.


Member Function Documentation

template<class T >
bool Saf::Collection::Deque< T >::ConstIterator::operator!= ( const ConstIterator it) const [inline]

Comparison operator.

template<class T >
const T& Saf::Collection::Deque< T >::ConstIterator::operator* ( ) const [inline]

Value reference.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator Saf::Collection::Deque< T >::ConstIterator::operator+ ( Diff  offset) const [inline]

Offset operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator& Saf::Collection::Deque< T >::ConstIterator::operator++ ( ) [inline]

Preincrement operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator Saf::Collection::Deque< T >::ConstIterator::operator++ ( int  ) [inline]

Postincrement operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator& Saf::Collection::Deque< T >::ConstIterator::operator+= ( Diff  offset) [inline]

Offset operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator Saf::Collection::Deque< T >::ConstIterator::operator- ( Diff  offset) const [inline]

Offset operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
Diff Saf::Collection::Deque< T >::ConstIterator::operator- ( const ConstIterator it) const [inline]

Difference operator.

template<class T >
ConstIterator& Saf::Collection::Deque< T >::ConstIterator::operator-- ( ) [inline]

Predecrement operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator Saf::Collection::Deque< T >::ConstIterator::operator-- ( int  ) [inline]

Postdecrement operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
ConstIterator& Saf::Collection::Deque< T >::ConstIterator::operator-= ( Diff  offset) [inline]

Offset operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
const T* Saf::Collection::Deque< T >::ConstIterator::operator-> ( ) const [inline]

Value pointer.

Reimplemented in Saf::Collection::Deque< T >::Iterator.

template<class T >
bool Saf::Collection::Deque< T >::ConstIterator::operator< ( const ConstIterator it) const [inline]

Comparison operator.

template<class T >
bool Saf::Collection::Deque< T >::ConstIterator::operator<= ( const ConstIterator it) const [inline]

Comparison operator.

template<class T >
ConstIterator& Saf::Collection::Deque< T >::ConstIterator::operator= ( const ConstIterator it) [inline]

Assignment operator.

template<class T >
bool Saf::Collection::Deque< T >::ConstIterator::operator== ( const ConstIterator it) const [inline]

Comparison operator.

template<class T >
bool Saf::Collection::Deque< T >::ConstIterator::operator> ( const ConstIterator it) const [inline]

Comparison operator.

template<class T >
bool Saf::Collection::Deque< T >::ConstIterator::operator>= ( const ConstIterator it) const [inline]

Comparison operator.

template<class T >
const T& Saf::Collection::Deque< T >::ConstIterator::operator[] ( Diff  ofs) const [inline]

Subscript operator.

Reimplemented in Saf::Collection::Deque< T >::Iterator.


Friends And Related Function Documentation

template<class T >
friend class Deque< T > [friend]

Member Data Documentation

template<class T >
MyType* Saf::Collection::Deque< T >::ConstIterator::m_deque [protected]

Pointer to the parent container.

template<class T >
Size Saf::Collection::Deque< T >::ConstIterator::m_ofs [protected]

Offset of the current element from the beginning of the block map.

template<class T >
T* Saf::Collection::Deque< T >::ConstIterator::m_ptr [protected]

Element pointer.


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