Predator  [unstable] git snapshot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
NodeBase Class Reference

an abstract base for Node and NodeHandle (externally not much useful) More...

#include <symtrace.hh>

Inheritance diagram for NodeBase:
Inheritance graph
[legend]

Public Member Functions

virtual ~NodeBase ()
 force virtual destructor
virtual Nodeparent () const
 this can be called only on nodes with exactly one parent
const TNodeListparents () const
 reference to list of parents (containing 0..n pointers)

Protected Member Functions

 NodeBase ()
 this is an abstract class, its instantiation is not allowed
 NodeBase (Node *node)
 construct Node with exactly one parent, can be extended later

Protected Attributes

TNodeList parents_
 list of all (0..n) parent nodes

Private Member Functions

virtual void replaceParent (Node *parentOld, Node *parentNew)

Friends

void replaceNode (Node *tr, Node *by)

Detailed Description

an abstract base for Node and NodeHandle (externally not much useful)

Definition at line 67 of file symtrace.hh.

Constructor & Destructor Documentation

NodeBase ( )
inlineprotected

this is an abstract class, its instantiation is not allowed

Definition at line 73 of file symtrace.hh.

NodeBase ( Node node)
inlineprotected

construct Node with exactly one parent, can be extended later

Definition at line 76 of file symtrace.hh.

virtual ~NodeBase ( )
virtual

force virtual destructor

Member Function Documentation

virtual Node* parent ( ) const
virtual

this can be called only on nodes with exactly one parent

Reimplemented in JoinNode.

Referenced by NodeHandle::node(), NodeHandle::NodeHandle(), and Node::printNode().

const TNodeList& parents ( ) const
inline

reference to list of parents (containing 0..n pointers)

Definition at line 89 of file symtrace.hh.

References NodeBase::parents_.

virtual void replaceParent ( Node parentOld,
Node parentNew 
)
privatevirtual

Friends And Related Function Documentation

void replaceNode ( Node tr,
Node by 
)
friend

Field Documentation

TNodeList parents_
protected

list of all (0..n) parent nodes

Definition at line 70 of file symtrace.hh.

Referenced by Node::Node(), and NodeBase::parents().


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