MicroModelicaCCompiler  4.5.3
Graph Class Reference

#include <graph.hpp>

Collaboration diagram for Graph:

Public Member Functions

 Graph (int states, int events)
 
 ~Graph ()
 
map< int, set< int > > graph ()
 
map< int, set< int > > hyperGraph ()
 
void addGraphEdge (int orig, int dest)
 
void addHyperGraphEdge (int orig, int dest)
 
int graphEdgeWeight (int node, int inf)
 
int hyperGraphEdgeWeight (int node)
 
void connectGraphs ()
 
int graphEdges ()
 
int graphNodeEdges (int node)
 
bool empty ()
 
int hyperGraphEdges ()
 
int nodeWeight (int node)
 
void addNodeWeight (int node, int weight)
 

Private Member Functions

int edgeWeight (int node)
 

Private Attributes

int _states
 
int _events
 
int _nvtxs
 
int _graphEdges
 
map< int, set< int > > _graph
 
map< int, set< int > > _graphInputs
 
map< int, int > _graphDiscretes
 
map< int, set< int > > _hyperGraph
 
map< int, set< int > > _wmap
 
map< int, set< int > > _hwmap
 
GRP_graphProfile _profile
 

Detailed Description

Definition at line 30 of file graph.hpp.

Constructor & Destructor Documentation

◆ Graph()

Graph::Graph ( int  states,
int  events 
)
Parameters
states
events

Definition at line 24 of file graph.cpp.

References _profile, and GRP_GraphProfile().

Here is the call graph for this function:

◆ ~Graph()

Graph::~Graph ( )

Definition at line 39 of file graph.cpp.

Member Function Documentation

◆ addGraphEdge()

void Graph::addGraphEdge ( int  orig,
int  dest 
)
Parameters
orig
dest

Definition at line 45 of file graph.cpp.

References _graph, and _graphInputs.

◆ addHyperGraphEdge()

void Graph::addHyperGraphEdge ( int  orig,
int  dest 
)
Parameters
orig
dest

Definition at line 51 of file graph.cpp.

References _hyperGraph.

◆ addNodeWeight()

void Graph::addNodeWeight ( int  node,
int  weight 
)

Definition at line 123 of file graph.cpp.

References _graphDiscretes, and _states.

◆ connectGraphs()

void Graph::connectGraphs ( )

Definition at line 93 of file graph.cpp.

References _events, _graph, _graphEdges, _hwmap, _hyperGraph, _states, and _wmap.

◆ edgeWeight()

int Graph::edgeWeight ( int  node)
private

Definition at line 53 of file graph.cpp.

References _profile, _states, GRP_CONT, GRP_DSC, and GRP_Weight().

Referenced by graphEdgeWeight(), and hyperGraphEdgeWeight().

Here is the call graph for this function:

◆ empty()

bool Graph::empty ( )
Returns

Definition at line 119 of file graph.cpp.

References _graph.

◆ graph()

map< int, set< int > > Graph::graph ( )
Returns

Definition at line 41 of file graph.cpp.

References _graph.

◆ graphEdges()

int Graph::graphEdges ( )
Returns

Definition at line 113 of file graph.cpp.

References _graphEdges.

◆ graphEdgeWeight()

int Graph::graphEdgeWeight ( int  node,
int  inf 
)
Parameters
node
edge
Returns

Definition at line 64 of file graph.cpp.

References _profile, _wmap, edgeWeight(), GRP_VIRT, and GRP_Weight().

Here is the call graph for this function:

◆ graphNodeEdges()

int Graph::graphNodeEdges ( int  node)
Parameters
node
Returns

Definition at line 115 of file graph.cpp.

References _graph.

◆ hyperGraph()

map< int, set< int > > Graph::hyperGraph ( )
Returns

Definition at line 43 of file graph.cpp.

References _hyperGraph.

◆ hyperGraphEdges()

int Graph::hyperGraphEdges ( )
Returns

Definition at line 117 of file graph.cpp.

References _hyperGraph.

◆ hyperGraphEdgeWeight()

int Graph::hyperGraphEdgeWeight ( int  node)
Parameters
node
edge
Returns

Definition at line 77 of file graph.cpp.

References _hwmap, _hyperGraph, _profile, edgeWeight(), GRP_VIRT, and GRP_Weight().

Here is the call graph for this function:

◆ nodeWeight()

int Graph::nodeWeight ( int  node)

Definition at line 121 of file graph.cpp.

References _graphDiscretes, and _graphInputs.

Member Data Documentation

◆ _events

int Graph::_events
private

Definition at line 115 of file graph.hpp.

Referenced by connectGraphs().

◆ _graph

map<int, set<int> > Graph::_graph
private

Definition at line 118 of file graph.hpp.

Referenced by addGraphEdge(), connectGraphs(), empty(), graph(), and graphNodeEdges().

◆ _graphDiscretes

map<int, int> Graph::_graphDiscretes
private

Definition at line 120 of file graph.hpp.

Referenced by addNodeWeight(), and nodeWeight().

◆ _graphEdges

int Graph::_graphEdges
private

Definition at line 117 of file graph.hpp.

Referenced by connectGraphs(), and graphEdges().

◆ _graphInputs

map<int, set<int> > Graph::_graphInputs
private

Definition at line 119 of file graph.hpp.

Referenced by addGraphEdge(), and nodeWeight().

◆ _hwmap

map<int, set<int> > Graph::_hwmap
private

Definition at line 123 of file graph.hpp.

Referenced by connectGraphs(), and hyperGraphEdgeWeight().

◆ _hyperGraph

map<int, set<int> > Graph::_hyperGraph
private

◆ _nvtxs

int Graph::_nvtxs
private

Definition at line 116 of file graph.hpp.

◆ _profile

GRP_graphProfile Graph::_profile
private

Definition at line 124 of file graph.hpp.

Referenced by edgeWeight(), Graph(), graphEdgeWeight(), and hyperGraphEdgeWeight().

◆ _states

int Graph::_states
private

Definition at line 114 of file graph.hpp.

Referenced by addNodeWeight(), connectGraphs(), and edgeWeight().

◆ _wmap

map<int, set<int> > Graph::_wmap
private

Definition at line 122 of file graph.hpp.

Referenced by connectGraphs(), and graphEdgeWeight().


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