ROSE 0.11.145.147
Public Member Functions | Protected Attributes | List of all members
fileNode Class Reference

Description

Definition at line 40 of file loopAdapter.h.

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

Public Member Functions

 fileNode (std::string name)
 
virtual std::string getConstructTypeName () const
 Get the construct' s type name, like function.
 
virtual bool hasName () const
 If the node has legal names defined by language standards.
 
virtual std::string getName () const
 Get the name of the construct if it is named, like function name.
 
virtual AbstractHandle::abstract_nodefindNode (std::string construct_type_str, AbstractHandle::specifier mspecifier) const
 Find a node of a given type, it also matches the specifier.
 
virtual std::string toString () const
 
virtual std::string getFileName () const
 
virtual bool operator== (const abstract_node &x) const
 
void setMLoops (std::vector< MyLoop * > myloops)
 
std::vector< MyLoop * > getMLoops () const
 
- Public Member Functions inherited from AbstractHandle::abstract_node
virtual bool hasSourcePos () const
 If the node has meaningful line and column numbers associated with a file.
 
virtual abstract_nodegetFileNode () const
 Get the start source file position of the construct Get the abstract node for file containing the current node.
 
virtual abstract_nodegetParent () const
 Get parent node, used for generate parent handle automatically.
 
virtual void * getNode () const
 Get the raw IR node associated with the current abstract node.
 
virtual abstract_nodefindNode (std::string handle_str) const
 Find a node from a string for a abstract handle's string format, starting from this node eg.
 
virtual source_position_pair getSourcePos () const
 
virtual source_position getStartPos () const
 
virtual source_position getEndPos () const
 
virtual size_t getIntLabel () const
 Get integer label.
 
virtual std::string getStringLabel () const
 Get string label.
 
virtual size_t getNumbering (const abstract_node *another_node) const
 Get the ordering of the construct relative to another construct in a higher scope Numbering start from 1 e.g.
 
virtual bool operator== (const abstract_node &x) const =0
 

Protected Attributes

std::string mfileName
 
std::vector< MyLoop * > mLoops
 

Constructor & Destructor Documentation

◆ fileNode()

fileNode::fileNode ( std::string  name)
inline

Definition at line 43 of file loopAdapter.h.

◆ ~fileNode()

virtual fileNode::~fileNode ( )
inlinevirtual

Definition at line 44 of file loopAdapter.h.

Member Function Documentation

◆ getConstructTypeName()

virtual std::string fileNode::getConstructTypeName ( ) const
virtual

Get the construct' s type name, like function.

Reimplemented from AbstractHandle::abstract_node.

◆ hasName()

virtual bool fileNode::hasName ( ) const
virtual

If the node has legal names defined by language standards.

Reimplemented from AbstractHandle::abstract_node.

◆ getName()

virtual std::string fileNode::getName ( ) const
virtual

Get the name of the construct if it is named, like function name.

Reimplemented from AbstractHandle::abstract_node.

◆ findNode()

virtual AbstractHandle::abstract_node * fileNode::findNode ( std::string  construct_type_str,
AbstractHandle::specifier  mspecifier 
) const
virtual

Find a node of a given type, it also matches the specifier.

Reimplemented from AbstractHandle::abstract_node.

◆ toString()

virtual std::string fileNode::toString ( ) const
virtual

Reimplemented from AbstractHandle::abstract_node.

◆ getFileName()

virtual std::string fileNode::getFileName ( ) const
virtual

Reimplemented from AbstractHandle::abstract_node.

◆ setMLoops()

void fileNode::setMLoops ( std::vector< MyLoop * >  myloops)
inline

Definition at line 54 of file loopAdapter.h.

◆ getMLoops()

std::vector< MyLoop * > fileNode::getMLoops ( ) const
inline

Definition at line 55 of file loopAdapter.h.

Member Data Documentation

◆ mfileName

std::string fileNode::mfileName
protected

Definition at line 58 of file loopAdapter.h.

◆ mLoops

std::vector<MyLoop*> fileNode::mLoops
protected

Definition at line 59 of file loopAdapter.h.


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