ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
structureTreeAnn Class Reference

Structure Tree annotation. More...

#include <structure.h>

Inheritance diagram for structureTreeAnn:
Collaboration diagram for structureTreeAnn:

Public Types

enum  Operator {
  None,
  Arrow,
  Dot
}
 

Public Member Functions

 structureTreeAnn (const parserID *name, structuretree_list *targets, Operator op, bool target_is_new)
 Multiple targets constructor. More...
 
 structureTreeAnn (const parserID *name, structureTreeAnn *target, Operator op, bool target_is_new)
 Single target constructor. More...
 
 ~structureTreeAnn ()
 Destructor. More...
 
std::string & name ()
 
structuretree_listtargets ()
 
Operator op () const
 
bool is_target_new () const
 
bool is_io () const
 
void print (int depth=0) const
 Print out. More...
 
- Public Member Functions inherited from Ann
 Ann (int line)
 
int line () const
 

Private Member Functions

 structureTreeAnn (const structureTreeAnn &X)
 Private Copy Constructor. More...
 

Private Attributes

std::string _name
 
structuretree_list_targets
 
Operator _operator
 
bool _target_is_new
 
bool _is_io
 

Detailed Description

Structure Tree annotation.

This class is used to construct an in-memory representation of on-entry and on-exit annotations. We post-process this tree structure into the list of pointer operations that is actually used during analysis.

The representation works like this: for A –> B, we create an object for A, with a single target for B; for B { ... }, we create an object for B with a list of the components. The operator indicates which situation we have (although we can never have an arrow with multiple targets.

Definition at line 31 of file structure.h.

Member Enumeration Documentation

Enumerator
None 
Arrow 
Dot 

Definition at line 35 of file structure.h.

Constructor & Destructor Documentation

structureTreeAnn::structureTreeAnn ( const parserID name,
structuretree_list targets,
Operator  op,
bool  target_is_new 
)

Multiple targets constructor.

structureTreeAnn::structureTreeAnn ( const parserID name,
structureTreeAnn target,
Operator  op,
bool  target_is_new 
)

Single target constructor.

structureTreeAnn::~structureTreeAnn ( )

Destructor.

Recursively destroys the data structure

structureTreeAnn::structureTreeAnn ( const structureTreeAnn X)
private

Private Copy Constructor.

Member Function Documentation

std::string& structureTreeAnn::name ( )
inline

Definition at line 67 of file structure.h.

References _name.

structuretree_list* structureTreeAnn::targets ( )
inline

Definition at line 68 of file structure.h.

References _targets.

Operator structureTreeAnn::op ( ) const
inline

Definition at line 69 of file structure.h.

References _operator.

bool structureTreeAnn::is_target_new ( ) const
inline

Definition at line 70 of file structure.h.

References _target_is_new.

bool structureTreeAnn::is_io ( ) const
inline

Definition at line 71 of file structure.h.

References _is_io.

void structureTreeAnn::print ( int  depth = 0) const

Print out.

Member Data Documentation

std::string structureTreeAnn::_name
private

Definition at line 39 of file structure.h.

Referenced by name().

structuretree_list* structureTreeAnn::_targets
private

Definition at line 40 of file structure.h.

Referenced by targets().

Operator structureTreeAnn::_operator
private

Definition at line 41 of file structure.h.

Referenced by op().

bool structureTreeAnn::_target_is_new
private

Definition at line 42 of file structure.h.

Referenced by is_target_new().

bool structureTreeAnn::_is_io
private

Definition at line 43 of file structure.h.

Referenced by is_io().


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