ROSE  0.11.109.0
Public Member Functions | List of all members
Rose::Yaml::ConstIterator Class Reference

Description

Iterator over constant YAML nodes.

Definition at line 271 of file Yaml.h.

#include <Rose/Yaml.h>

Public Member Functions

 ConstIterator ()
 Default constructor. More...
 
 ConstIterator (const ConstIterator &)
 Copy constructor. More...
 
ConstIteratoroperator= (const ConstIterator &)
 Assignment operator. More...
 
 ~ConstIterator ()
 Destructor. More...
 
std::pair< const std::string &, const Node & > operator* ()
 Get node of iterator. More...
 
std::unique_ptr< std::pair< const std::string &, const Node & > > operator-> ()
 Dereference. More...
 
bool operator== (const ConstIterator &)
 Check if this iterator is equal to another iterator. More...
 
bool operator!= (const ConstIterator &)
 Check if this iterator is not equal to another iterator. More...
 
ConstIteratoroperator++ ()
 Increment operator.
 
ConstIterator operator++ (int)
 Increment operator.
 
ConstIteratoroperator-- ()
 Decrement operator.
 
ConstIterator operator-- (int)
 Decrement operator.
 

Constructor & Destructor Documentation

Rose::Yaml::ConstIterator::ConstIterator ( )

Default constructor.

Rose::Yaml::ConstIterator::ConstIterator ( const ConstIterator )

Copy constructor.

Rose::Yaml::ConstIterator::~ConstIterator ( )

Destructor.

Member Function Documentation

ConstIterator& Rose::Yaml::ConstIterator::operator= ( const ConstIterator )

Assignment operator.

std::pair<const std::string&, const Node&> Rose::Yaml::ConstIterator::operator* ( )

Get node of iterator.

First pair item is the key of map value, empty if type is sequence.

std::unique_ptr<std::pair<const std::string&, const Node&> > Rose::Yaml::ConstIterator::operator-> ( )

Dereference.

bool Rose::Yaml::ConstIterator::operator== ( const ConstIterator )

Check if this iterator is equal to another iterator.

bool Rose::Yaml::ConstIterator::operator!= ( const ConstIterator )

Check if this iterator is not equal to another iterator.


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