tue_config
Public Member Functions | Public Attributes | List of all members
tue::config::Data Class Reference

#include <data.h>

Public Member Functions

NodeIdx addNode (const NodePtr &n, NodeIdx parent)
 
 Data ()
 
bool getLabel (const std::string &name, Label &label) const
 
const std::stringgetName (const Label &label) const
 
Label getOrAddLabel (const std::string &name)
 
NodeIdx getParent (NodeIdx n) const
 
void getParent (NodeIdx n, NodeIdx parent)
 
NodeIdx getRightSibling (NodeIdx n) const
 
NodeIdx root () const
 
void setRightSibling (NodeIdx n, NodeIdx sibling)
 
virtual ~Data ()
 

Public Attributes

std::vector< std::stringlabel_to_name
 
std::map< std::string, Labelname_to_label
 
std::vector< NodePtrnodes
 
std::vector< NodeIdxparents
 
std::vector< NodeIdxright_siblings
 
std::string source_
 

Detailed Description

Definition at line 17 of file data.h.

Constructor & Destructor Documentation

◆ Data()

tue::config::Data::Data ( )

Definition at line 16 of file data.cpp.

◆ ~Data()

tue::config::Data::~Data ( )
virtual

Definition at line 23 of file data.cpp.

Member Function Documentation

◆ addNode()

NodeIdx tue::config::Data::addNode ( const NodePtr n,
NodeIdx  parent 
)
inline

Definition at line 61 of file data.h.

◆ getLabel()

bool tue::config::Data::getLabel ( const std::string name,
Label label 
) const
inline

Definition at line 43 of file data.h.

◆ getName()

const std::string& tue::config::Data::getName ( const Label label) const
inline

Definition at line 55 of file data.h.

◆ getOrAddLabel()

Label tue::config::Data::getOrAddLabel ( const std::string name)
inline

Definition at line 30 of file data.h.

◆ getParent() [1/2]

NodeIdx tue::config::Data::getParent ( NodeIdx  n) const
inline

Definition at line 71 of file data.h.

◆ getParent() [2/2]

void tue::config::Data::getParent ( NodeIdx  n,
NodeIdx  parent 
)
inline

Definition at line 74 of file data.h.

◆ getRightSibling()

NodeIdx tue::config::Data::getRightSibling ( NodeIdx  n) const
inline

Definition at line 72 of file data.h.

◆ root()

NodeIdx tue::config::Data::root ( ) const
inline

Definition at line 69 of file data.h.

◆ setRightSibling()

void tue::config::Data::setRightSibling ( NodeIdx  n,
NodeIdx  sibling 
)
inline

Definition at line 75 of file data.h.

Member Data Documentation

◆ label_to_name

std::vector<std::string> tue::config::Data::label_to_name

Definition at line 28 of file data.h.

◆ name_to_label

std::map<std::string, Label> tue::config::Data::name_to_label

Definition at line 26 of file data.h.

◆ nodes

std::vector<NodePtr> tue::config::Data::nodes

Definition at line 77 of file data.h.

◆ parents

std::vector<NodeIdx> tue::config::Data::parents

Definition at line 78 of file data.h.

◆ right_siblings

std::vector<NodeIdx> tue::config::Data::right_siblings

Definition at line 79 of file data.h.

◆ source_

std::string tue::config::Data::source_

Definition at line 81 of file data.h.


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