ROSE  0.11.87.0
Public Member Functions | List of all members
Rose::Yaml::Iterator Class Reference

Description

Iterator over YAML nodes.

Definition at line 214 of file Yaml.h.

#include <Rose/Yaml.h>

Public Member Functions

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

Constructor & Destructor Documentation

Rose::Yaml::Iterator::Iterator ( )

Default constructor.

Rose::Yaml::Iterator::Iterator ( const Iterator )

Copy constructor.

Rose::Yaml::Iterator::~Iterator ( )

Destructor.

Member Function Documentation

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

Assignment operator.

std::pair<const std::string&, Node&> Rose::Yaml::Iterator::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&, Node&> > Rose::Yaml::Iterator::operator-> ( )

Dereference.

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

Check if this iterator is equal to another iterator.

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

Check if this iterator is not equal to another iterator.


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