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

Description

Iterator over YAML nodes.

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

#include <Sawyer/Yaml.h>

Public Member Functions

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

Member Function Documentation

◆ 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.


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