GPUOcelot
Public Types | Public Member Functions | Protected Member Functions

analysis::ControlTree::Node Class Reference

A polymorphic base class that represents any node. More...

#include <ControlTree.h>

Inheritance diagram for analysis::ControlTree::Node:
Inheritance graph
[legend]
Collaboration diagram for analysis::ControlTree::Node:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list< Node * > NodeList
typedef std::unordered_set
< Node * > 
NodeSet

Public Member Functions

const std::string & label () const
 Get the label.
RegionType rtype () const
 Get the region type.
const NodeListchildren () const
 Get the children.
NodeSetsuccs ()
 Get successors from the abstract flowgraph.
NodeSetpreds ()
 Get predecessors from the abstract flowgraph.
Node *& fallthrough ()
 Get fallthrough node.
virtual ~Node ()
 Destructor (virtual because polymorphic)

Protected Member Functions

 Node (const std::string &label, RegionType rtype, const NodeList &children)
 Constructor (protected to avoid instantiation)

Detailed Description

A polymorphic base class that represents any node.


Member Typedef Documentation

typedef std::unordered_set<Node*> analysis::ControlTree::Node::NodeSet

Constructor & Destructor Documentation

analysis::ControlTree::Node::~Node ( ) [virtual]

Destructor (virtual because polymorphic)

analysis::ControlTree::Node::Node ( const std::string &  label,
RegionType  rtype,
const NodeList children 
) [protected]

Constructor (protected to avoid instantiation)


Member Function Documentation

const ControlTree::NodeList & analysis::ControlTree::Node::children ( ) const

Get the children.

ControlTree::Node *& analysis::ControlTree::Node::fallthrough ( )

Get fallthrough node.

const std::string & analysis::ControlTree::Node::label ( ) const

Get the label.

ControlTree::NodeSet & analysis::ControlTree::Node::preds ( )

Get predecessors from the abstract flowgraph.

ControlTree::RegionType analysis::ControlTree::Node::rtype ( ) const

Get the region type.

ControlTree::NodeSet & analysis::ControlTree::Node::succs ( )

Get successors from the abstract flowgraph.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines