Loading...
Searching...
No Matches
SBCGraphNodeTemplate< T > Class Template Reference

This template class describes a generic graph node.

Iterators

value
 
 SBCGraphNodeTemplate (T &v)
 
virtual ~SBCGraphNodeTemplate ()
 
virtual void setValue (T &value)
 
getValue () const
 
T & getReference ()
 
T const & getConstReference () const
 
static T const & getValue (SBCGraphArc *container)
 

Additional Inherited Members

- Public Member Functions inherited from SBCGraphNode
void printConnections () const
 Prints the list of connections of the nodes.
 
 SBCGraphNode ()
 Builds a graph node with no connections.
 
virtual ~SBCGraphNode ()
 Deletes the graph node. If the node has predecessors or successors, any reference to this node there are automatically removed.
 
SBCReferenceListLink * addSuccessor (SBCGraphNode *graphNode)
 Adds a successor to the graph node.
 
SBCReferenceListLink * addPredecessor (SBCGraphNode *graphNode)
 Adds a predecessor to the graph node.
 
void removeSuccessor (SBCGraphNode *graphNode)
 Removes a successor to the graph node.
 
void removePredecessor (SBCGraphNode *graphNode)
 Removes a predecessor to the graph node.
 
void removeSuccessor (SBCReferenceListLink *referenceListLink)
 Removes a successor to the graph node (constant time)
 
void removePredecessor (SBCReferenceListLink *referenceListLink)
 Removes a predecessor to the graph node (constant time)
 
void removeAllSuccessors ()
 Removes all successors to the graph node.
 
void removeAllPredecessors ()
 Removes all predecessors to the graph node.
 
unsigned int getNumberOfSuccessors () const
 Returns the number of successors.
 
unsigned int getNumberOfPredecessors () const
 Returns the number of predecessors.
 
SBCGraphArcgetArcToSuccessor (SBCGraphNode *graphNode) const
 Returns the arc to the successor graphNode (0 if not found)
 
SBCGraphArcgetArcFromPredecessor (SBCGraphNode *graphNode) const
 Returns the arc from the predecessor graphNode (0 if not found)
 
iterator beginSuccessors ()
 Returns a begin iterator to successors.
 
iterator endSuccessors ()
 Returns an end iterator to successors.
 
reverse_iterator rbeginSuccessors ()
 Returns a reverse begin iterator to successors.
 
reverse_iterator rendSuccessors ()
 Returns a reverse end iterator to successors.
 
iterator beginPredecessors ()
 Returns a begin iterator to predecessors.
 
iterator endPredecessors ()
 Returns an end iterator to predecessors.
 
reverse_iterator rbeginPredecessors ()
 Returns a reverse begin iterator to predecessors.
 
reverse_iterator rendPredecessors ()
 Returns a reverse end iterator to predecessors.
 
- Public Member Functions inherited from SBCReferenceTarget
unsigned int getMemoryFootprint () const
 
void printReferencesToOwners () const
 
 SBCReferenceTarget ()
 
virtual ~SBCReferenceTarget ()
 
- Protected Member Functions inherited from SBCReferenceTarget
void removeAllReferenceOwners ()
 
 SBCReferenceTarget (SBCReferenceTargetData *dataPointer)
 
- Protected Attributes inherited from SBCGraphNode
SBCGraphArcCollectionpredecessors
 The list of predecessors.
 
SBCGraphArcCollectionsuccessors
 The list of successors.
 
- Protected Attributes inherited from SBCReferenceTarget
SBCReferenceTargetData * dataPointer