systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
systemc_clang::TreeNode< T > Class Template Reference

class TreeNode<T> More...

#include <Tree.h>

Collaboration diagram for systemc_clang::TreeNode< T >:

Public Member Functions

 TreeNode (T data)
 Parent node.
 
 TreeNode (const TreeNode &from)
 
virtual ~TreeNode ()
 
getData () const
 
const T * getDataPtr ()
 
std::string toString () const
 
bool isDiscovered () const
 
void setDiscovered ()
 
void resetDiscovered ()
 
void setParent (TreeNode *from)
 
TreeNodegetParent () const
 
void dump (llvm::raw_ostream &outstream=llvm::outs())
 
virtual void visit (llvm::raw_ostream &outstream=llvm::outs())
 

Private Attributes

data_
 
bool discovered_
 Data item.
 
TreeNodeparent_
 Whether this node was discovered or not.
 

Detailed Description

template<typename T>
class systemc_clang::TreeNode< T >

class TreeNode<T>

Definition at line 18 of file Tree.h.

Constructor & Destructor Documentation

◆ TreeNode() [1/2]

template<typename T >
systemc_clang::TreeNode< T >::TreeNode ( T data)
inline

Parent node.

Constructor.

Definition at line 26 of file Tree.h.

◆ TreeNode() [2/2]

template<typename T >
systemc_clang::TreeNode< T >::TreeNode ( const TreeNode< T > & from)
inline

Definition at line 28 of file Tree.h.

◆ ~TreeNode()

template<typename T >
virtual systemc_clang::TreeNode< T >::~TreeNode ( )
inlinevirtual

Definition at line 34 of file Tree.h.

Member Function Documentation

◆ dump()

template<typename T >
void systemc_clang::TreeNode< T >::dump ( llvm::raw_ostream & outstream = llvm::outs())
inline

Definition at line 50 of file Tree.h.

◆ getData()

template<typename T >
T systemc_clang::TreeNode< T >::getData ( ) const
inline

Definition at line 38 of file Tree.h.

◆ getDataPtr()

template<typename T >
const T * systemc_clang::TreeNode< T >::getDataPtr ( )
inline

Definition at line 39 of file Tree.h.

◆ getParent()

template<typename T >
TreeNode * systemc_clang::TreeNode< T >::getParent ( ) const
inline

Definition at line 48 of file Tree.h.

◆ isDiscovered()

template<typename T >
bool systemc_clang::TreeNode< T >::isDiscovered ( ) const
inline

Definition at line 42 of file Tree.h.

◆ resetDiscovered()

template<typename T >
void systemc_clang::TreeNode< T >::resetDiscovered ( )
inline

Definition at line 44 of file Tree.h.

◆ setDiscovered()

template<typename T >
void systemc_clang::TreeNode< T >::setDiscovered ( )
inline

Definition at line 43 of file Tree.h.

◆ setParent()

template<typename T >
void systemc_clang::TreeNode< T >::setParent ( TreeNode< T > * from)
inline

Definition at line 46 of file Tree.h.

◆ toString()

template<typename T >
std::string systemc_clang::TreeNode< T >::toString ( ) const
inline

Definition at line 40 of file Tree.h.

◆ visit()

template<typename T >
virtual void systemc_clang::TreeNode< T >::visit ( llvm::raw_ostream & outstream = llvm::outs())
inlinevirtual

Definition at line 54 of file Tree.h.

Member Data Documentation

◆ data_

template<typename T >
T systemc_clang::TreeNode< T >::data_
private

Definition at line 20 of file Tree.h.

◆ discovered_

template<typename T >
bool systemc_clang::TreeNode< T >::discovered_
private

Data item.

Definition at line 21 of file Tree.h.

◆ parent_

template<typename T >
TreeNode* systemc_clang::TreeNode< T >::parent_
private

Whether this node was discovered or not.

Definition at line 22 of file Tree.h.


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