AstAttributeMechanism Class Reference
[AST Processing]

#include <AstAttributeMechanism.h>

List of all members.


Detailed Description

This mechanism provides capabilities to define a mapping from strings to AstAttributes. An instance of this class is accessible at each ROSE AST node in the data member 'attribute'.

Each node of the ROSE AST contains an AstAttributeMechanism, accessible as data member 'attribute'. Using this mechnism attributes can be attached to AST nodes.
example: class MyAstAttribute : public AstAttribute { public: MyAstAttribute(int v):val(v){} ... private: int val; };
node->attribute.add("myattribute1",new MyAstAttribute(5));
MyAstAttribute* accessexample = node->attribute["myattribute1"];


Public Member Functions

 AstAttributeMechanism (const AstAttributeMechanism &X)
 AstAttributeMechanism ()


Constructor & Destructor Documentation

AstAttributeMechanism::AstAttributeMechanism ( const AstAttributeMechanism X  ) 

AstAttributeMechanism::AstAttributeMechanism (  ) 


The documentation for this class was generated from the following file:
Generated on Tue Jan 31 05:33:23 2012 for ROSE by  doxygen 1.4.7