Back to index

salome-smesh  6.5.0
Public Types | Public Member Functions | Protected Attributes
SMDS_mapKeyReverseIterator< M > Struct Template Reference

reverse iterator on keys of a map More...

#include <SMDS_SetIterator.hxx>

Inheritance diagram for SMDS_mapKeyReverseIterator< M >:
Inheritance graph
[legend]
Collaboration diagram for SMDS_mapKeyReverseIterator< M >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef SMDS_SetIterator
< typename M::key_type,
typename M::const_iterator,
SMDS::KeyAccessor< typename
M::key_type, typename
M::const_iterator > > 
parent_type

Public Member Functions

 SMDS_mapKeyReverseIterator (const M &m)
virtual void init (const M::const_iterator &begin, const M::const_iterator &end)
 Initialization.
virtual bool more ()
 Return true if and only if there are other object in this iterator.
virtual M::key_type next ()
 Return the current object and step to the next one.
virtual void remove ()
 Delete the current element and step to the next one.

Protected Attributes

M::const_iterator _beg
M::const_iterator _end

Detailed Description

template<typename M>
struct SMDS_mapKeyReverseIterator< M >

reverse iterator on keys of a map

Definition at line 132 of file SMDS_SetIterator.hxx.


Member Typedef Documentation

template<typename M >
typedef SMDS_SetIterator< typename M::key_type, typename M::const_iterator, SMDS::KeyAccessor<typename M::key_type, typename M::const_iterator> > SMDS_mapKeyReverseIterator< M >::parent_type

Definition at line 137 of file SMDS_SetIterator.hxx.


Constructor & Destructor Documentation

template<typename M >
SMDS_mapKeyReverseIterator< M >::SMDS_mapKeyReverseIterator ( const M &  m) [inline]

Definition at line 138 of file SMDS_SetIterator.hxx.

:parent_type(m.rbegin(),m.rend()) {}

Member Function Documentation

virtual void SMDS_SetIterator< M::key_type , M::const_iterator , SMDS::KeyAccessor< M::key_type, M::const_iterator > >::init ( const M::const_iterator &  begin,
const M::const_iterator &  end 
) [inline, virtual, inherited]

Initialization.

Definition at line 75 of file SMDS_SetIterator.hxx.

  { _beg = begin; _end = end; }
virtual bool SMDS_SetIterator< M::key_type , M::const_iterator , SMDS::KeyAccessor< M::key_type, M::const_iterator > >::more ( ) [inline, virtual, inherited]

Return true if and only if there are other object in this iterator.

Implements SMDS_Iterator< M::key_type >.

Definition at line 80 of file SMDS_SetIterator.hxx.

{ return _beg != _end; }
virtual M::key_type SMDS_SetIterator< M::key_type , M::const_iterator , SMDS::KeyAccessor< M::key_type, M::const_iterator > >::next ( ) [inline, virtual, inherited]

Return the current object and step to the next one.

Implements SMDS_Iterator< M::key_type >.

Definition at line 83 of file SMDS_SetIterator.hxx.

{ return ACCESOR::value( _beg++ ); }
virtual void SMDS_Iterator< M::key_type >::remove ( ) [inline, virtual, inherited]

Delete the current element and step to the next one.

Definition at line 44 of file SMDS_Iterator.hxx.

{}

Member Data Documentation

M::const_iterator SMDS_SetIterator< M::key_type , M::const_iterator , SMDS::KeyAccessor< M::key_type, M::const_iterator > >::_beg [protected, inherited]

Definition at line 68 of file SMDS_SetIterator.hxx.

M::const_iterator SMDS_SetIterator< M::key_type , M::const_iterator , SMDS::KeyAccessor< M::key_type, M::const_iterator > >::_end [protected, inherited]

Definition at line 68 of file SMDS_SetIterator.hxx.


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