Back to index

salome-gui  6.5.0
Public Member Functions | Private Member Functions | Private Attributes | Friends
IMapConstIterator< Key, Value > Class Template Reference

Indexed map const iterator template class. More...

#include <QtxMap.h>

List of all members.

Public Member Functions

 IMapConstIterator ()
 IMapConstIterator (const IMap< Key, Value > *m)
 IMapConstIterator (const IMapConstIterator &i)
 IMapConstIterator (const IMapIterator< Key, Value > &i)
bool operator== (const IMapConstIterator &i)
bool operator!= (const IMapConstIterator &i)
 operator bool () const
const Key & key () const
const Value value () const
const Value operator* () const
IMapConstIteratoroperator++ ()
IMapConstIterator operator++ (int)
IMapConstIteratoroperator-- ()
IMapConstIterator operator-- (int)

Private Member Functions

 IMapConstIterator (const IMap< Key, Value > *m, const int index)
void init ()

Private Attributes

IMap< Key, Value > * myMap
int myIndex

Friends

class IMap< Key, Value >

Detailed Description

template<class Key, class Value>
class IMapConstIterator< Key, Value >

Indexed map const iterator template class.

Definition at line 177 of file QtxMap.h.


Constructor & Destructor Documentation

template<class Key, class Value>
IMapConstIterator< Key, Value >::IMapConstIterator ( ) [inline]

Definition at line 180 of file QtxMap.h.

: myMap( 0 ), myIndex( 0 )                                    { init(); }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator< Key, Value >::IMapConstIterator ( const IMap< Key, Value > *  m) [inline]

Definition at line 181 of file QtxMap.h.

: myMap( const_cast< IMap<Key,Value>* >( m )  ), myIndex( 0 ) { init(); }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator< Key, Value >::IMapConstIterator ( const IMapConstIterator< Key, Value > &  i) [inline]

Definition at line 182 of file QtxMap.h.

: myMap( i.myMap ), myIndex( i.myIndex )                      { init(); }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator< Key, Value >::IMapConstIterator ( const IMapIterator< Key, Value > &  i) [inline]

Definition at line 183 of file QtxMap.h.

: myMap( i.myMap ), myIndex( i.myIndex )                      { init(); }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator< Key, Value >::IMapConstIterator ( const IMap< Key, Value > *  m,
const int  index 
) [inline, private]

Definition at line 201 of file QtxMap.h.

: myMap( const_cast< IMap<Key,Value>* >( m ) ), myIndex( index ) { init(); }

Here is the call graph for this function:


Member Function Documentation

template<class Key, class Value>
void IMapConstIterator< Key, Value >::init ( ) [inline, private]

Definition at line 202 of file QtxMap.h.

{ if ( !myMap || myIndex >= myMap->count() ) myIndex = -1; }

Here is the caller graph for this function:

template<class Key, class Value>
const Key& IMapConstIterator< Key, Value >::key ( ) const [inline]

Definition at line 190 of file QtxMap.h.

{ return myMap->key( myIndex );   }
template<class Key, class Value>
IMapConstIterator< Key, Value >::operator bool ( ) const [inline]

Definition at line 188 of file QtxMap.h.

{ return myIndex >= 0; }
template<class Key, class Value>
bool IMapConstIterator< Key, Value >::operator!= ( const IMapConstIterator< Key, Value > &  i) [inline]

Definition at line 186 of file QtxMap.h.

{ return !myMap || myMap != i.myMap || myIndex != i.myIndex; }

Here is the caller graph for this function:

template<class Key, class Value>
const Value IMapConstIterator< Key, Value >::operator* ( ) const [inline]

Definition at line 193 of file QtxMap.h.

{ return value(); }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator& IMapConstIterator< Key, Value >::operator++ ( ) [inline]

Definition at line 195 of file QtxMap.h.

{ myIndex++; init(); return *this;                          }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator IMapConstIterator< Key, Value >::operator++ ( int  ) [inline]

Definition at line 196 of file QtxMap.h.

{ IMapConstIterator i = *this; myIndex++; init(); return i; }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator& IMapConstIterator< Key, Value >::operator-- ( ) [inline]

Definition at line 197 of file QtxMap.h.

{ myIndex--; init(); return *this;                          }

Here is the call graph for this function:

template<class Key, class Value>
IMapConstIterator IMapConstIterator< Key, Value >::operator-- ( int  ) [inline]

Definition at line 198 of file QtxMap.h.

{ IMapConstIterator i = *this; myIndex--; init(); return i; }

Here is the call graph for this function:

template<class Key, class Value>
bool IMapConstIterator< Key, Value >::operator== ( const IMapConstIterator< Key, Value > &  i) [inline]

Definition at line 185 of file QtxMap.h.

{ return !operator!=( i );                                   }

Here is the call graph for this function:

template<class Key, class Value>
const Value IMapConstIterator< Key, Value >::value ( ) const [inline]

Definition at line 191 of file QtxMap.h.

{ return myMap->value( myIndex ); }

Here is the caller graph for this function:


Friends And Related Function Documentation

template<class Key, class Value>
friend class IMap< Key, Value > [friend]

Definition at line 208 of file QtxMap.h.


Member Data Documentation

template<class Key, class Value>
int IMapConstIterator< Key, Value >::myIndex [private]

Definition at line 206 of file QtxMap.h.

template<class Key, class Value>
IMap<Key,Value>* IMapConstIterator< Key, Value >::myMap [private]

Definition at line 205 of file QtxMap.h.


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