DPsim
Loading...
Searching...
No Matches
CPS::Graph::Graph Class Reference
Inheritance diagram for CPS::Graph::Graph:
[legend]
Collaboration diagram for CPS::Graph::Graph:
[legend]

Public Member Functions

 Graph (const String &name, Type type, bool strict=false)
 
void render (std::ostream &os, const String &layout="dot", const String &format="svg")
 
NodeaddNode (const String &name)
 
EdgeaddEdge (const String &name, Node *head, Node *tail)
 
Nodenode (const String &name)
 
Edgeedge (const String &name)
 
- Public Member Functions inherited from CPS::Graph::Element
void set (const String &key, const String &value, bool html=false)
 

Public Attributes

Agraph_t * mGraph
 

Protected Attributes

std::map< String, Node * > mNodes
 
std::map< String, Edge * > mEdges
 
- Protected Attributes inherited from CPS::Graph::Element
void * mPtr
 
int mKind
 

Detailed Description

Definition at line 49 of file Graph.h.

Constructor & Destructor Documentation

◆ Graph()

CPS::Graph::Graph::Graph ( const String & name,
Type type,
bool strict = false )

Definition at line 16 of file Graph.cpp.

◆ ~Graph()

CPS::Graph::Graph::~Graph ( )

Definition at line 33 of file Graph.cpp.

Member Function Documentation

◆ addEdge()

Edge * CPS::Graph::Graph::addEdge ( const String & name,
Node * head,
Node * tail )

Definition at line 62 of file Graph.cpp.

◆ addNode()

Node * CPS::Graph::Graph::addNode ( const String & name)

Definition at line 54 of file Graph.cpp.

◆ edge()

Edge * CPS::Graph::Graph::edge ( const String & name)

Definition at line 73 of file Graph.cpp.

◆ node()

Node * CPS::Graph::Graph::node ( const String & name)

Definition at line 71 of file Graph.cpp.

◆ render()

void CPS::Graph::Graph::render ( std::ostream & os,
const String & layout = "dot",
const String & format = "svg" )

Definition at line 35 of file Graph.cpp.

Member Data Documentation

◆ mEdges

std::map<String, Edge *> CPS::Graph::Graph::mEdges
protected

Definition at line 53 of file Graph.h.

◆ mGraph

Agraph_t* CPS::Graph::Graph::mGraph

Definition at line 56 of file Graph.h.

◆ mNodes

std::map<String, Node *> CPS::Graph::Graph::mNodes
protected

Definition at line 52 of file Graph.h.


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