The Gaudi Framework  master (37c0b60a)
Gaudi::Parsers::NodeOperations Struct Referencefinal

#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/Node.h>

Classes

struct  value
 

Public Member Functions

void operator() (Node &node, Node::NodeType type) const
 
void operator() (Node &node, Node child) const
 
void operator() (Node &node, std::string val) const
 
void operator() (Node &node, boost::iterator_range< Iterator > range) const
 
void operator() (Node &node, bool val) const
 
void operator() (Node &node, const Iterator &iter) const
 

Detailed Description

Definition at line 79 of file Node.h.

Member Function Documentation

◆ operator()() [1/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
bool  val 
) const
inline

Definition at line 92 of file Node.h.

92 { node.value = val ? "1" : "0"; }

◆ operator()() [2/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
boost::iterator_range< Iterator range 
) const
inline

Definition at line 88 of file Node.h.

88  {
89  node.value = boost::copy_range<std::string>( range );
90  }

◆ operator()() [3/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
const Iterator iter 
) const
inline

Definition at line 94 of file Node.h.

94  {
95  const IteratorPosition& pos = iter.get_position();
96  node.position = Position( pos.file, pos.line, pos.column );
97  }

◆ operator()() [4/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
Node  child 
) const
inline

Definition at line 84 of file Node.h.

84 { node.children.push_back( std::move( child ) ); }

◆ operator()() [5/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
Node::NodeType  type 
) const
inline

Definition at line 82 of file Node.h.

82 { node.type = type; }

◆ operator()() [6/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
std::string  val 
) const
inline

Definition at line 86 of file Node.h.

86 { node.value = std::move( val ); }

The documentation for this struct was generated from the following file:
std::move
T move(T... args)
IteratorPosition
boost::spirit::classic::file_position_base< std::string > IteratorPosition
Definition: Iterator.h:29
Gaudi::range
NamedRange_< CONTAINER > range(const CONTAINER &cnt, std::string name)
simple function to create the named range from arbitrary container
Definition: NamedRange.h:128
gaudirun.type
type
Definition: gaudirun.py:160