EMAN2
Public Types | Public Member Functions | List of all members
EMAN::Dict::const_iterator Class Reference

Const iterator support for the Dict object This is just a wrapper, everything is inherited from the map<string,EMObject>::cons_iterator so the interface is the same as you would expect i.e for ( Dict::const_iterator it = params.begin(); it != params.end(); ++it ) More...

#include <emobject.h>

Inheritance diagram for EMAN::Dict::const_iterator:
Inheritance graph
[legend]
Collaboration diagram for EMAN::Dict::const_iterator:
Collaboration graph
[legend]

Public Types

typedef std::bidirectional_iterator_tag iterator_category
 
typedef pair< string, EMObjectvalue_type
 

Public Member Functions

 const_iterator (const map< string, EMObject >::const_iterator parent_it)
 
virtual ~const_iterator ()
 
 const_iterator (const Dict::iterator &it)
 
 const_iterator (const const_iterator &that)
 
const_iteratoroperator= (const const_iterator &that)
 

Detailed Description

Const iterator support for the Dict object This is just a wrapper, everything is inherited from the map<string,EMObject>::cons_iterator so the interface is the same as you would expect i.e for ( Dict::const_iterator it = params.begin(); it != params.end(); ++it )

Author
David Woolford
Date
Mid 2007

Definition at line 673 of file emobject.h.

Member Typedef Documentation

◆ iterator_category

typedef std::bidirectional_iterator_tag EMAN::Dict::const_iterator::iterator_category

Definition at line 676 of file emobject.h.

◆ value_type

Definition at line 677 of file emobject.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

Dict::const_iterator::const_iterator ( const map< string, EMObject >::const_iterator  parent_it)

Definition at line 1104 of file emobject.cpp.

1104 :
1105 map< string, EMObject >::const_iterator( parent_it )
1106{
1107}

◆ ~const_iterator()

virtual EMAN::Dict::const_iterator::~const_iterator ( )
inlinevirtual

Definition at line 680 of file emobject.h.

680{}

◆ const_iterator() [2/3]

Dict::const_iterator::const_iterator ( const Dict::iterator it)

Definition at line 1109 of file emobject.cpp.

1109 :
1110 map< string, EMObject >::const_iterator(it)
1111{
1112}

◆ const_iterator() [3/3]

Dict::const_iterator::const_iterator ( const const_iterator that)

Definition at line 1114 of file emobject.cpp.

1114 :
1115 map< string, EMObject >::const_iterator(it)
1116{
1117}

Member Function Documentation

◆ operator=()

Dict::const_iterator & Dict::const_iterator::operator= ( const const_iterator that)

Definition at line 1119 of file emobject.cpp.

1120{
1121 if( this != &that )
1122 {
1123 map < string, EMObject >::const_iterator::operator=( that );
1124 }
1125 return *this;
1126}

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