Predator  [unstable] git snapshot
Public Member Functions | Protected Attributes
NodeHandle Class Reference

useful to prevent a trace sub-graph from being destroyed too early More...

#include <symtrace.hh>

Inheritance diagram for NodeHandle:
Inheritance graph
[legend]
Collaboration diagram for NodeHandle:
Collaboration graph
[legend]

Public Member Functions

 NodeHandle (Node *ref)
 initialize the handle with the given node, can be reset later
Nodenode () const
 return the node stored within this handle
void reset (Node *)
 release the old node and re-initialize the handle with the new one
 NodeHandle (const NodeHandle &tpl)
 overridden copy constructor keeping the semantics of a handle
NodeHandleoperator= (const NodeHandle &tpl)
 overridden assignment operator keeping the semantics of a handle
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 Attributes

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

Detailed Description

useful to prevent a trace sub-graph from being destroyed too early

Definition at line 183 of file symtrace.hh.

Constructor & Destructor Documentation

NodeHandle ( Node ref)
inline

initialize the handle with the given node, can be reset later

Definition at line 186 of file symtrace.hh.

References Node::notifyBirth().

NodeHandle ( const NodeHandle tpl)
inline

overridden copy constructor keeping the semantics of a handle

Definition at line 201 of file symtrace.hh.

References Node::notifyBirth(), and NodeBase::parent().

Member Function Documentation

Node* node ( ) const
inline

return the node stored within this handle

Definition at line 193 of file symtrace.hh.

References NodeBase::parent().

Referenced by NodeHandle::operator=().

NodeHandle& operator= ( const NodeHandle tpl)
inline

overridden assignment operator keeping the semantics of a handle

Definition at line 208 of file symtrace.hh.

References NodeHandle::node(), and NodeHandle::reset().

virtual Node* parent ( ) const
virtualinherited

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
inlineinherited

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

Definition at line 89 of file symtrace.hh.

References NodeBase::parents_.

void reset ( Node )

release the old node and re-initialize the handle with the new one

Referenced by NodeHandle::operator=().

Field Documentation

TNodeList parents_
protectedinherited

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: