VarBase Class Reference

#include <AstContainer.h>

Collaboration diagram for VarBase:

Collaboration graph
[legend]

Detailed Description

Simple Variable declaration using the position in the tree.

Definition at line 35 of file AstContainer.h.


Public Member Functions

 VarBase ()
 VarBase (const std::string &_name, const tree< AstNode >::iterator &_pos, const std::string &_index="")
 VarBase (const VarBase &v)
VarBaseoperator= (const VarBase &v)
 ~VarBase ()
bool operator== (const VarBase &v) const

Data Fields

std::string name
tree< AstNode >::iterator position
std::string index

Constructor & Destructor Documentation

VarBase::VarBase (  )  [inline]

Definition at line 41 of file AstContainer.h.

00041 {}

VarBase::VarBase ( const std::string &  _name,
const tree< AstNode >::iterator &  _pos,
const std::string &  _index = "" 
) [inline]

Definition at line 42 of file AstContainer.h.

00043      : name(_name), position(_pos), index(_index) {}

VarBase::VarBase ( const VarBase v  )  [inline]

Definition at line 44 of file AstContainer.h.

00044 : name(v.name), position(v.position), index(v.index) {} 

VarBase::~VarBase (  )  [inline]

Definition at line 51 of file AstContainer.h.

00051 {}


Member Function Documentation

VarBase& VarBase::operator= ( const VarBase v  )  [inline]

Definition at line 45 of file AstContainer.h.

References index, name, and position.

00045                                          {
00046         if (this != &v) {
00047             name = v.name; position = v.position; index = v.index;
00048         }
00049         return *this;   
00050     }

bool VarBase::operator== ( const VarBase v  )  const [inline]

Definition at line 52 of file AstContainer.h.

References index, name, and position.

00052                                             {
00053         if (v.name != name || v.index != index || v.position != position)
00054             return false;
00055         return true;
00056     }


Field Documentation

std::string VarBase::name

Definition at line 37 of file AstContainer.h.

Referenced by Ast::getRightVariables(), VarBaseCmp::operator()(), operator<<(), operator=(), and operator==().

tree<AstNode>::iterator VarBase::position

Definition at line 38 of file AstContainer.h.

Referenced by operator=(), and operator==().

std::string VarBase::index

Definition at line 39 of file AstContainer.h.

Referenced by VarBaseCmp::operator()(), operator<<(), operator=(), and operator==().


The documentation for this class was generated from the following file:
Generated on Wed Feb 27 20:32:48 2008 for php.ast.svn.src. by  doxygen 1.5.3