systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
systemc_clang::Graph Class Reference

#include <Automata.h>

Public Types

typedef vector< int > nodeIDVector
 
typedef vector< int > edgeIDVector
 
typedef vector< Node * > nodeVector
 
typedef vector< Edge * > edgeVector
 
typedef map< int, Node * > nodeMapType
 
typedef pair< int, Node * > nodePairType
 
typedef map< int, Edge * > edgeMapType
 
typedef pair< int, Edge * > edgePairType
 
typedef pair< int, int > twoNodePairType
 
typedef pair< twoNodePairType, Edge * > adjPairType
 
typedef map< twoNodePairType, Edge * > adjMapType
 
typedef pair< int, vector< Edge * > > adjEdgesPairType
 
typedef map< int, vector< Edge * > > adjEdgesMapType
 

Public Member Functions

 Graph ()
 Graph class.
 
 ~Graph ()
 
NodeaddNode ()
 
NodeaddNode (int)
 
EdgeaddEdge (Node *, Node *)
 
EdgeaddEdge (int, int)
 
int getEdgeID (Edge *)
 
int getEdgeID (Node *, Node *)
 
int getEdgeID (int, int)
 
int getNodeID (Node *)
 
EdgegetEdge (Node *, Node *)
 
EdgegetEdge (int, int)
 
NodegetNode (int)
 
vector< Edge * > getEdgesFromSource (int)
 
vector< Edge * > getEdgesFromSource (Node *)
 
vector< Edge * > getEdgesFromDest (int)
 
vector< Edge * > getEdgesFromDest (Node *)
 
adjMapType returnAdjList ()
 
nodeIDVector returnNodeIDs ()
 
edgeIDVector returnEdgeIDs ()
 
nodeVector returnNodes ()
 
edgeVector returnEdges ()
 
edgeVector returnEdgeVector ()
 
nodeVector returnNodeVector ()
 
void dump (raw_ostream &, int tabn=0)
 
void dumpSauto (raw_ostream &, int tabn=0)
 

Protected Attributes

adjMapType _adjList
 
nodeMapType _nodeMap
 
edgeMapType _edgeMap
 
adjEdgesMapType _adjEdges
 
int _nNodes
 
int _nEdges
 
nodeIDVector _nodeIDVector
 
edgeIDVector _edgeIDVector
 
nodeVector _nodeVector
 
edgeVector _edgeVector
 

Detailed Description

Definition at line 66 of file Automata.h.

Member Typedef Documentation

◆ adjEdgesMapType

typedef map<int, vector<Edge *> > systemc_clang::Graph::adjEdgesMapType

Definition at line 86 of file Automata.h.

◆ adjEdgesPairType

typedef pair<int, vector<Edge *> > systemc_clang::Graph::adjEdgesPairType

Definition at line 85 of file Automata.h.

◆ adjMapType

Definition at line 83 of file Automata.h.

◆ adjPairType

Definition at line 82 of file Automata.h.

◆ edgeIDVector

Definition at line 69 of file Automata.h.

◆ edgeMapType

Definition at line 77 of file Automata.h.

◆ edgePairType

Definition at line 78 of file Automata.h.

◆ edgeVector

Definition at line 72 of file Automata.h.

◆ nodeIDVector

Definition at line 68 of file Automata.h.

◆ nodeMapType

Definition at line 74 of file Automata.h.

◆ nodePairType

Definition at line 75 of file Automata.h.

◆ nodeVector

Definition at line 71 of file Automata.h.

◆ twoNodePairType

typedef pair<int, int> systemc_clang::Graph::twoNodePairType

Definition at line 80 of file Automata.h.

Constructor & Destructor Documentation

◆ Graph()

Graph::Graph ( )

Graph class.

Definition at line 88 of file Automata.cpp.

◆ ~Graph()

Graph::~Graph ( )

Definition at line 397 of file Automata.cpp.

Member Function Documentation

◆ addEdge() [1/2]

Edge * Graph::addEdge ( int fID,
int tID )

Definition at line 125 of file Automata.cpp.

◆ addEdge() [2/2]

Edge * Graph::addEdge ( Node * f,
Node * t )

Definition at line 110 of file Automata.cpp.

◆ addNode() [1/2]

Node * Graph::addNode ( )

Definition at line 90 of file Automata.cpp.

◆ addNode() [2/2]

Node * Graph::addNode ( int id)

Definition at line 100 of file Automata.cpp.

◆ dump()

void Graph::dump ( raw_ostream & os,
int tabn = 0 )

Definition at line 270 of file Automata.cpp.

◆ dumpSauto()

void Graph::dumpSauto ( raw_ostream & os,
int tabn = 0 )

Definition at line 305 of file Automata.cpp.

◆ getEdge() [1/2]

Edge * Graph::getEdge ( int f,
int t )

Definition at line 200 of file Automata.cpp.

◆ getEdge() [2/2]

Edge * Graph::getEdge ( Node * f,
Node * t )

Definition at line 208 of file Automata.cpp.

◆ getEdgeID() [1/3]

int Graph::getEdgeID ( Edge * e)

Definition at line 172 of file Automata.cpp.

◆ getEdgeID() [2/3]

int Graph::getEdgeID ( int fID,
int tID )

Definition at line 192 of file Automata.cpp.

◆ getEdgeID() [3/3]

int Graph::getEdgeID ( Node * f,
Node * t )

Definition at line 182 of file Automata.cpp.

◆ getEdgesFromDest() [1/2]

vector< Edge * > Graph::getEdgesFromDest ( int destID)

Definition at line 239 of file Automata.cpp.

◆ getEdgesFromDest() [2/2]

vector< Edge * > Graph::getEdgesFromDest ( Node * destNode)

Definition at line 261 of file Automata.cpp.

◆ getEdgesFromSource() [1/2]

vector< Edge * > Graph::getEdgesFromSource ( int sourceID)

Definition at line 226 of file Automata.cpp.

◆ getEdgesFromSource() [2/2]

vector< Edge * > Graph::getEdgesFromSource ( Node * sourceNode)

Definition at line 252 of file Automata.cpp.

◆ getNode()

Node * Graph::getNode ( int nodeID)

Definition at line 218 of file Automata.cpp.

◆ getNodeID()

int Graph::getNodeID ( Node * n)

Definition at line 162 of file Automata.cpp.

◆ returnAdjList()

Graph::adjMapType Graph::returnAdjList ( )

Definition at line 387 of file Automata.cpp.

◆ returnEdgeIDs()

Graph::edgeIDVector Graph::returnEdgeIDs ( )

Definition at line 391 of file Automata.cpp.

◆ returnEdges()

edgeVector systemc_clang::Graph::returnEdges ( )

◆ returnEdgeVector()

Graph::edgeVector Graph::returnEdgeVector ( )

Definition at line 395 of file Automata.cpp.

◆ returnNodeIDs()

Graph::nodeIDVector Graph::returnNodeIDs ( )

Definition at line 389 of file Automata.cpp.

◆ returnNodes()

nodeVector systemc_clang::Graph::returnNodes ( )

◆ returnNodeVector()

Graph::nodeVector Graph::returnNodeVector ( )

Definition at line 393 of file Automata.cpp.

Member Data Documentation

◆ _adjEdges

adjEdgesMapType systemc_clang::Graph::_adjEdges
protected

Definition at line 125 of file Automata.h.

◆ _adjList

adjMapType systemc_clang::Graph::_adjList
protected

Definition at line 122 of file Automata.h.

◆ _edgeIDVector

edgeIDVector systemc_clang::Graph::_edgeIDVector
protected

Definition at line 129 of file Automata.h.

◆ _edgeMap

edgeMapType systemc_clang::Graph::_edgeMap
protected

Definition at line 124 of file Automata.h.

◆ _edgeVector

edgeVector systemc_clang::Graph::_edgeVector
protected

Definition at line 131 of file Automata.h.

◆ _nEdges

int systemc_clang::Graph::_nEdges
protected

Definition at line 127 of file Automata.h.

◆ _nNodes

int systemc_clang::Graph::_nNodes
protected

Definition at line 126 of file Automata.h.

◆ _nodeIDVector

nodeIDVector systemc_clang::Graph::_nodeIDVector
protected

Definition at line 128 of file Automata.h.

◆ _nodeMap

nodeMapType systemc_clang::Graph::_nodeMap
protected

Definition at line 123 of file Automata.h.

◆ _nodeVector

nodeVector systemc_clang::Graph::_nodeVector
protected

Definition at line 130 of file Automata.h.


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