DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <NodeData.hh>
Public Types | |
typedef Diades::Utils::Exception< NodeData > | Exception |
typedef vector< NodeData * >::size_type | SizeType |
typedef vector< Node >::size_type | NodeId |
Public Member Functions | |
NodeData () | |
~NodeData () | |
bool | isValid () const |
list< Edge >::iterator | delInEdge (EdgeData *eData) |
list< Edge >::iterator | delOutEdge (EdgeData *eData) |
list< Edge >::iterator | newInEdge (EdgeData *eData) |
list< Edge >::iterator | newOutEdge (EdgeData *eData) |
const Graph & | owner () const |
void | setOwner (Graph &newOwner) |
SizeType | outEdgesNb () const |
SizeType | inEdgesNb () const |
list< Edge > & | inEdges () const |
list< Edge > & | outEdges () const |
NodeId | identifier () const |
void | setIdentifier (NodeId newId) |
Static Public Member Functions | |
static string | typeName () |
Private Attributes | |
Graph * | _owner |
NodeId | _identifier |
the graph that owns the NodeData (if valid) More... | |
list< Edge > | _inEdges |
the identifier of the Node More... | |
list< Edge > | _outEdges |
list of the input edges More... | |
SizeType | _inEdgesNb |
list of the output edges More... | |
SizeType | _outEdgesNb |
number of input edges (list.size not constant??) More... | |
Friends | |
class | Edge |
number of output edges (list.size not constant??) More... | |
Data of a Node. A Node is a reference to a NodeData. The NodeData structure is allocated and managed in the Graph. The user do not have to use this class explicitly.
Definition at line 25 of file NodeData.hh.
typedef Diades::Utils::Exception<NodeData> Diades::Graph::NodeData::Exception |
Definition at line 31 of file NodeData.hh.
typedef vector<Node>::size_type Diades::Graph::NodeData::NodeId |
Definition at line 35 of file NodeData.hh.
typedef vector<NodeData *>::size_type Diades::Graph::NodeData::SizeType |
Definition at line 34 of file NodeData.hh.
|
inline |
Default constructor
Definition at line 41 of file NodeData.hh.
|
inline |
Destructor
Definition at line 51 of file NodeData.hh.
eData | the input edge to delete |
Definition at line 67 of file NodeData.hh.
References _inEdges, _inEdgesNb, Diades::Graph::EdgeData::_targetPos, and require.
Referenced by Diades::Graph::Edge::destroy().
eData | the output edge to delete |
Definition at line 82 of file NodeData.hh.
References _outEdges, _outEdgesNb, Diades::Graph::EdgeData::_sourcePos, newInEdge(), newOutEdge(), owner(), require, and setOwner().
Referenced by Diades::Graph::Edge::destroy().
|
inline |
Definition at line 155 of file NodeData.hh.
References _identifier.
Referenced by Diades::Graph::Node::id(), Diades::Graph::Graph::source(), and Diades::Graph::Graph::sourceRef().
|
inline |
Definition at line 139 of file NodeData.hh.
References _inEdges.
Referenced by Diades::Graph::Node::destroy(), Diades::Graph::Node::inEdgeBegin(), and Diades::Graph::Node::inEdgeEnd().
|
inline |
Definition at line 131 of file NodeData.hh.
References _inEdgesNb.
Referenced by Diades::Graph::Node::inDeg().
|
inline |
Definition at line 57 of file NodeData.hh.
References _owner.
Referenced by Diades::Graph::Node::valid().
eData | the new input edge to add |
Definition at line 294 of file Edge.hh.
References Diades::Graph::Edge::Edge().
Referenced by Diades::Graph::Edge::changeTarget(), Diades::Graph::Edge::create(), and delOutEdge().
eData | the new output edge to add |
Definition at line 306 of file Edge.hh.
References Diades::Graph::Edge::Edge().
Referenced by Diades::Graph::Edge::changeSource(), Diades::Graph::Edge::create(), and delOutEdge().
|
inline |
Definition at line 147 of file NodeData.hh.
References _outEdges.
Referenced by Diades::Graph::Node::destroy(), Diades::Graph::Node::outEdgeBegin(), and Diades::Graph::Node::outEdgeEnd().
|
inline |
Definition at line 123 of file NodeData.hh.
References _outEdgesNb.
Referenced by Diades::Graph::Node::outDeg().
|
inline |
Definition at line 31 of file NodeImpl.hh.
References Diades::Graph::Node::isValid(), and require.
Referenced by Diades::Graph::Edge::changeSource(), Diades::Graph::Edge::changeTarget(), Diades::Graph::Edge::create(), delOutEdge(), and Diades::Graph::Node::owner().
|
inline |
newId | the id of the Node to implement |
Definition at line 163 of file NodeData.hh.
References _identifier.
Referenced by Diades::Graph::Node::changeId(), and Diades::Graph::Node::create().
|
inline |
newOwner | the owner of the NodeData (where it is stored) |
Owner of a node
Definition at line 39 of file NodeImpl.hh.
Referenced by Diades::Graph::Node::create(), and delOutEdge().
|
inlinestatic |
Definition at line 28 of file NodeData.hh.
|
friend |
number of output edges (list.size not constant??)
Definition at line 174 of file NodeData.hh.
|
private |
the graph that owns the NodeData (if valid)
Definition at line 168 of file NodeData.hh.
Referenced by identifier(), and setIdentifier().
|
mutableprivate |
the identifier of the Node
Definition at line 169 of file NodeData.hh.
Referenced by delInEdge(), and inEdges().
|
private |
list of the output edges
Definition at line 171 of file NodeData.hh.
Referenced by delInEdge(), and inEdgesNb().
|
mutableprivate |
list of the input edges
Definition at line 170 of file NodeData.hh.
Referenced by delOutEdge(), and outEdges().
|
private |
number of input edges (list.size not constant??)
Definition at line 172 of file NodeData.hh.
Referenced by delOutEdge(), and outEdgesNb().
|
private |
Definition at line 167 of file NodeData.hh.
Referenced by isValid().