ROSE  0.11.145.0
Public Member Functions | List of all members
Sawyer::Yaml::Iterator Class Reference

Description

Iterator over YAML nodes.

Definition at line 211 of file util/Sawyer/Yaml.h.

#include <util/Sawyer/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

Sawyer::Yaml::Iterator::Iterator ( )

Default constructor.

Sawyer::Yaml::Iterator::Iterator ( const Iterator )

Copy constructor.

Sawyer::Yaml::Iterator::~Iterator ( )

Destructor.

Member Function Documentation

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

Assignment operator.

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

Dereference.

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

Check if this iterator is equal to another iterator.

bool Sawyer::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: