Cantera  3.0.0
Loading...
Searching...
No Matches
AnyMap::Iterator Class Reference

Defined to allow use with range-based for loops. More...

#include <AnyMap.h>

Detailed Description

Defined to allow use with range-based for loops.

Iteration automatically skips over keys that start and end with double underscores.

Definition at line 540 of file AnyMap.h.

Public Member Functions

 Iterator (const std::unordered_map< string, AnyValue >::const_iterator &start, const std::unordered_map< string, AnyValue >::const_iterator &stop)
 
const pair< const string, AnyValue > & operator* () const
 
const pair< const string, AnyValue > * operator-> () const
 
bool operator!= (const Iterator &right) const
 
Iteratoroperator++ ()
 

Private Attributes

std::unordered_map< string, AnyValue >::const_iterator m_iter
 
std::unordered_map< string, AnyValue >::const_iterator m_stop
 

Constructor & Destructor Documentation

◆ Iterator() [1/2]

Iterator ( )
inline

Definition at line 542 of file AnyMap.h.

◆ Iterator() [2/2]

Iterator ( const std::unordered_map< string, AnyValue >::const_iterator &  start,
const std::unordered_map< string, AnyValue >::const_iterator &  stop 
)

Definition at line 1561 of file AnyMap.cpp.

Member Function Documentation

◆ operator*()

const pair< const string, AnyValue > & operator* ( ) const
inline

Definition at line 546 of file AnyMap.h.

◆ operator->()

const pair< const string, AnyValue > * operator-> ( ) const
inline

Definition at line 549 of file AnyMap.h.

◆ operator!=()

bool operator!= ( const Iterator right) const
inline

Definition at line 552 of file AnyMap.h.

◆ operator++()

AnyMap::Iterator & operator++ ( )

Definition at line 1574 of file AnyMap.cpp.

Member Data Documentation

◆ m_iter

std::unordered_map<string,AnyValue>::const_iterator m_iter
private

Definition at line 558 of file AnyMap.h.

◆ m_stop

std::unordered_map<string,AnyValue>::const_iterator m_stop
private

Definition at line 559 of file AnyMap.h.


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