ROSE 0.11.145.147
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractHandle::roseNode Class Reference

Description

Concrete roseNode derived from abstract_node.

Definition at line 12 of file roseAdapter.h.

#include <midend/abstractHandle/roseAdapter.h>

Inheritance diagram for AbstractHandle::roseNode:
Inheritance graph
[legend]
Collaboration diagram for AbstractHandle::roseNode:
Collaboration graph
[legend]

Public Member Functions

void * getNode () const
 Get the raw IR node associated with the current abstract node.
 
virtual std::string getConstructTypeName () const
 Get the construct' s type name, like function.
 
virtual bool hasSourcePos () const
 If the node has meaningful line and column numbers associated with a file.
 
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_nodegetFileNode () const
 Get the start source file position of the construct Get the abstract node for file containing the current node.
 
virtual AbstractHandle::abstract_nodegetParent () const
 Get parent node, used for generate parent handle automatically.
 
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 getFileName () const
 
virtual AbstractHandle::source_position getStartPos () const
 
virtual AbstractHandle::source_position getEndPos () const
 
virtual size_t getNumbering (const AbstractHandle::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 std::string toString () const
 
virtual bool operator== (const abstract_node &x) const
 
- Public Member Functions inherited from AbstractHandle::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 size_t getIntLabel () const
 Get integer label.
 
virtual std::string getStringLabel () const
 Get string label.
 

Protected Member Functions

 roseNode (SgNode *snode)
 

Protected Attributes

SgNodemNode
 

Constructor & Destructor Documentation

◆ ~roseNode()

virtual AbstractHandle::roseNode::~roseNode ( )
inlinevirtual

Definition at line 15 of file roseAdapter.h.

◆ roseNode()

AbstractHandle::roseNode::roseNode ( )
inlineprotected

Definition at line 34 of file roseAdapter.h.

Member Function Documentation

◆ getNode()

void * AbstractHandle::roseNode::getNode ( ) const
inlinevirtual

Get the raw IR node associated with the current abstract node.

Reimplemented from AbstractHandle::abstract_node.

Definition at line 16 of file roseAdapter.h.

◆ getConstructTypeName()

virtual std::string AbstractHandle::roseNode::getConstructTypeName ( ) const
virtual

Get the construct' s type name, like function.

Reimplemented from AbstractHandle::abstract_node.

◆ hasSourcePos()

virtual bool AbstractHandle::roseNode::hasSourcePos ( ) const
virtual

If the node has meaningful line and column numbers associated with a file.

Reimplemented from AbstractHandle::abstract_node.

◆ hasName()

virtual bool AbstractHandle::roseNode::hasName ( ) const
virtual

If the node has legal names defined by language standards.

Reimplemented from AbstractHandle::abstract_node.

◆ getName()

virtual std::string AbstractHandle::roseNode::getName ( ) const
virtual

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

Reimplemented from AbstractHandle::abstract_node.

◆ getFileNode()

virtual AbstractHandle::abstract_node * AbstractHandle::roseNode::getFileNode ( ) const
virtual

Get the start source file position of the construct Get the abstract node for file containing the current node.

Reimplemented from AbstractHandle::abstract_node.

◆ getParent()

virtual AbstractHandle::abstract_node * AbstractHandle::roseNode::getParent ( ) const
virtual

Get parent node, used for generate parent handle automatically.

Reimplemented from AbstractHandle::abstract_node.

◆ findNode()

virtual AbstractHandle::abstract_node * AbstractHandle::roseNode::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.

◆ getFileName()

virtual std::string AbstractHandle::roseNode::getFileName ( ) const
virtual

Reimplemented from AbstractHandle::abstract_node.

◆ getStartPos()

virtual AbstractHandle::source_position AbstractHandle::roseNode::getStartPos ( ) const
virtual

Reimplemented from AbstractHandle::abstract_node.

◆ getEndPos()

virtual AbstractHandle::source_position AbstractHandle::roseNode::getEndPos ( ) const
virtual

Reimplemented from AbstractHandle::abstract_node.

◆ getNumbering()

virtual size_t AbstractHandle::roseNode::getNumbering ( const AbstractHandle::abstract_node another_node) const
virtual

Get the ordering of the construct relative to another construct in a higher scope Numbering start from 1 e.g.

a function construct may be the 2nd function relative to a file

Reimplemented from AbstractHandle::abstract_node.

◆ toString()

virtual std::string AbstractHandle::roseNode::toString ( ) const
virtual

Reimplemented from AbstractHandle::abstract_node.

◆ operator==()

virtual bool AbstractHandle::roseNode::operator== ( const abstract_node x) const
virtual

Member Data Documentation

◆ mNode

SgNode* AbstractHandle::roseNode::mNode
protected

Definition at line 36 of file roseAdapter.h.


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