![]() |
#include <DictIterator.h>
Public Member Functions | |
void | Next () |
Advances the iterator to the next element of the collection. | |
SDF::Obj | Key () |
SDF::Obj | Value () |
bool | HasNext () |
DictIterator (const DictIterator &c) | |
Copy constructor. | |
DictIterator & | operator= (const DictIterator &other) |
~DictIterator () |
For example a DictIterator can be used to print out all the entries in a given Obj dictionary as follows:
DictIterator itr = dict.GetDictIterator(); while (itr.HasNext()) { Obj key = itr.Key(); cout << key.GetName() << endl; Obj value = itr.Value(); // ... itr.Next() } }
pdftron::SDF::DictIterator::DictIterator | ( | const DictIterator & | c | ) |
Copy constructor.
pdftron::SDF::DictIterator::~DictIterator | ( | ) |
void pdftron::SDF::DictIterator::Next | ( | ) |
Advances the iterator to the next element of the collection.
SDF::Obj pdftron::SDF::DictIterator::Key | ( | ) |
SDF::Obj pdftron::SDF::DictIterator::Value | ( | ) |
bool pdftron::SDF::DictIterator::HasNext | ( | ) |
DictIterator& pdftron::SDF::DictIterator::operator= | ( | const DictIterator & | other | ) |