Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | Friends | List of all members
SuccessorNode Class Reference

#include <SuccessorNode.h>

Inheritance diagram for SuccessorNode:
Inheritance graph
Collaboration diagram for SuccessorNode:
Collaboration graph

Public Member Functions

 SuccessorNode ()
 
virtual ~SuccessorNode ()
 
const NodeRelationPtrVectorget_predecessors () const
 
NodeRelationPtr add_predecessor (PredecessorNode *pred)
 
void remove_predecessor (const NodeRelationPtr &n)
 
void remove_predecessors ()
 
bool has_predecessors () const
 

Protected Attributes

NodeRelationPtrVector m_predecessors
 Predecessors of the SuccessorNode. More...
 

Friends

class NodeRelation
 
class PredecessorNode
 

Detailed Description

Definition at line 22 of file SuccessorNode.h.

Constructor & Destructor Documentation

SuccessorNode::SuccessorNode ( )
inline

Definition at line 32 of file SuccessorNode.h.

virtual SuccessorNode::~SuccessorNode ( )
inlinevirtual

Definition at line 36 of file SuccessorNode.h.

Member Function Documentation

NodeRelationPtr SuccessorNode::add_predecessor ( PredecessorNode pred)
inline

Adds a PredecessorNode. This function automatically creates a new NodeRelation link to the PredecessorNode.

Definition at line 53 of file SuccessorNode.h.

Referenced by HMscPathDuplicator::duplicate_path(), and HMscFlatPathDuplicator::duplicate_path().

const NodeRelationPtrVector& SuccessorNode::get_predecessors ( ) const
inline

Getter for m_predecessors.

Definition at line 43 of file SuccessorNode.h.

Referenced by color_path(), Z120::save_hmsc(), DFSBHMscTraverser::traverse_predecessors(), and NodeFinder::traverse_predecessors().

bool SuccessorNode::has_predecessors ( ) const
inline

Returns true iff node has any successors

Definition at line 68 of file SuccessorNode.h.

void SuccessorNode::remove_predecessor ( const NodeRelationPtr n)

Definition at line 21 of file SuccessorNode.cpp.

References m_predecessors.

void SuccessorNode::remove_predecessors ( )

Definition at line 33 of file SuccessorNode.cpp.

References m_predecessors.

Referenced by HMsc::remove_node().

Friends And Related Function Documentation

friend class NodeRelation
friend

Definition at line 73 of file SuccessorNode.h.

friend class PredecessorNode
friend

Definition at line 74 of file SuccessorNode.h.

Member Data Documentation

NodeRelationPtrVector SuccessorNode::m_predecessors
protected

Predecessors of the SuccessorNode.

Definition at line 28 of file SuccessorNode.h.

Referenced by remove_predecessor(), remove_predecessors(), and NodeRelation::set_successor().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:59 for Sequence Chart Studio by  doxygen