Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

AST::AttributeProxy Class Reference

Attribute proxy allows some nicer ways to access the attributes then using set/get attributes Attribute proxy allows some nicer ways to access the attributes then using set/get attributes. More...

#include <attributeproxy.h>

List of all members.

Public Member Functions

 AttributeProxy (Node *new_parent, string new_attributeName)
void operator= (string value)
void operator= (Node *value)
void operator= (vector< Node * > vec_nodes)

Private Attributes

Nodeparent
string attributeName


Detailed Description

Attribute proxy allows some nicer ways to access the attributes then using set/get attributes Attribute proxy allows some nicer ways to access the attributes then using set/get attributes.

Definition at line 13 of file attributeproxy.h.


Constructor & Destructor Documentation

AST::AttributeProxy::AttributeProxy Node new_parent,
string  new_attributeName
[inline]
 

Definition at line 15 of file attributeproxy.h.

00015                                                               :
00016         parent(new_parent),
00017         attributeName(new_attributeName)
00018     {
00019     }
    void operator=(string value);


Member Function Documentation

void AttributeProxy::operator= vector< Node * >  vec_nodes  ) 
 

Definition at line 15 of file attributeproxy.cc.

References parent, and AST::Node::set_attribute().

00015                                                   {
00016     parent->set_attribute(this->attributeName, value);
00017 }

void AttributeProxy::operator= Node value  ) 
 

Definition at line 12 of file attributeproxy.cc.

References parent, and AST::Node::set_attribute().

00012                                           {
00013     parent->set_attribute(this->attributeName, value);
00014 }

void AttributeProxy::operator= string  value  ) 
 

-----------------------------------------------------------------------------// Node proxy allows cleaner access to the map -> much more type safe wraper functions for each of the set_attribute calls --------------------------------------------------------------------------------

Definition at line 8 of file attributeproxy.cc.

References parent, and AST::Node::set_attribute().

00008                                            {
00009     parent->set_attribute(this->attributeName, value);
00010 }


Member Data Documentation

string AST::AttributeProxy::attributeName [private]
 

Definition at line 25 of file attributeproxy.h.

Node* AST::AttributeProxy::parent [private]
 

Definition at line 24 of file attributeproxy.h.

Referenced by operator=().


The documentation for this class was generated from the following files:
Generated on Thu Oct 20 12:00:05 2005 for ASTree by  doxygen 1.4.2-20050421