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

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

#include <emobject.h>

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

Public Types

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

Public Member Functions

 iterator (map< string, EMObject >::iterator parent_it)
 
virtual ~iterator ()
 
 iterator (const iterator &that)
 
iteratoroperator= (const iterator &that)
 

Detailed Description

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

Author
David Woolford
Date
Mid 2007

Definition at line 652 of file emobject.h.

Member Typedef Documentation

◆ iterator_category

typedef std::bidirectional_iterator_tag EMAN::Dict::iterator::iterator_category

Definition at line 655 of file emobject.h.

◆ value_type

Definition at line 656 of file emobject.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

Dict::iterator::iterator ( map< string, EMObject >::iterator  parent_it)

Definition at line 1079 of file emobject.cpp.

1079 :
1080 map< string, EMObject >::iterator( parent_it )
1081{
1082}

◆ ~iterator()

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

Definition at line 660 of file emobject.h.

660{}

◆ iterator() [2/2]

Dict::iterator::iterator ( const iterator that)

Definition at line 1085 of file emobject.cpp.

1085 :
1086 map < string, EMObject >::iterator( that )
1087{
1088}

Member Function Documentation

◆ operator=()

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

Definition at line 1091 of file emobject.cpp.

1092{
1093 if( this != &that )
1094 {
1095 map < string, EMObject >::iterator::operator=( that );
1096 }
1097 return *this;
1098}

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