NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgStructure.h File Reference

Definition of class tgStructure. More...

#include "tgNodes.h"
#include "tgPairs.h"
#include "core/tgTaggable.h"
#include <string>
#include <vector>
#include <queue>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tgStructure
 

Functions

std::string asYamlElement (const tgStructure &structure, int indentLevel=0)
 
std::string asYamlItem (const tgStructure &structure, int indentLevel=0)
 
std::string asYamlItems (const std::vector< tgStructure * > structures, int indentLevel=0)
 
std::ostream & operator<< (std::ostream &os, const tgStructure &structure)
 

Detailed Description

Definition of class tgStructure.

Author
Ryan Adams
Date
March 2014 $Id$

Definition in file tgStructure.h.

Function Documentation

std::string asYamlElement ( const tgStructure structure,
int  indentLevel = 0 
)

Overload operator<<() to handle a tgStructure

Parameters
[in,out]osan ostream
[in]tgStructure,itsnodes, pairs, and children.
Returns
os
Todo:
Inlining this does no good; stream operations are slow.

Represent a structure as a YAML element Note: this function has no dependencies on external libraries

Definition at line 270 of file tgStructure.cpp.

Here is the caller graph for this function:

std::string asYamlItem ( const tgStructure structure,
int  indentLevel = 0 
)

Represent a structure as a YAML list item (prepended by '-', multi-line) Note: this function has no dependencies on external libraries

Definition at line 282 of file tgStructure.cpp.

Here is the caller graph for this function:

std::string asYamlItems ( const std::vector< tgStructure * >  structures,
int  indentLevel = 0 
)

Represent a vector of tgStructure* as YAML items Note: this function has no dependencies on external libraries

Definition at line 293 of file tgStructure.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const tgStructure structure 
)
inline

Overload operator<<() to handle a tgStructure

Parameters
[in,out]osan ostream
[in]tgStructure,itsnodes, pairs, and children.
Returns
os
Todo:
Inlining this does no good; stream operations are slow.

Definition at line 273 of file tgStructure.h.

Here is the call graph for this function: