VarSet Class Reference

#include <vm.h>

Collaboration diagram for VarSet:

Collaboration graph
[legend]

List of all members.


Detailed Description

universal container for variables (or args (or fncs))

Definition at line 95 of file vm.h.


Public Member Functions

 VarSet ()
 ~VarSet ()
VarSetoperator= (const VarSet &)
 deep copy of container
bool add (PVar)
 add variable (or arg (or fnc)) to set
unsigned size () const
 number of vars (or args (or fncs))
PVar operator[] (unsigned)
 return Var object by index
PVar operator[] (const std::string &)
 return Var object by name
const PVar operator[] (unsigned pos) const
 const to non-const wrapper
const PVar operator[] (const std::string &name) const
 const to non-const wrapper

Private Member Functions

 VarSet (const VarSet &)
 disable copy constructor

Private Attributes

Privated

Classes

struct  Private

Constructor & Destructor Documentation

VarSet (  ) 

Definition at line 227 of file vm.cc.

~VarSet (  ) 

Definition at line 231 of file vm.cc.

References d.

VarSet ( const VarSet  )  [private]

disable copy constructor


Member Function Documentation

VarSet & operator= ( const VarSet other  ) 

deep copy of container

Definition at line 235 of file vm.cc.

References d, size(), VarSet::Private::vect, and VarSet::Private::vMap.

Here is the call graph for this function:

bool add ( PVar  var  ) 

add variable (or arg (or fnc)) to set

Definition at line 250 of file vm.cc.

References d, Var::name, VarSet::Private::vect, and VarSet::Private::vMap.

Referenced by Builder::fncDeclArg(), Builder::fncDefArg(), Builder::fncDefVar(), and Builder::glVar().

Here is the caller graph for this function:

unsigned size (  )  const

number of vars (or args (or fncs))

Definition at line 265 of file vm.cc.

References d, and VarSet::Private::vect.

Referenced by chkUnused(), VmRunner::Private::chkUnusedGlVars(), CallCmd::exec(), Builder::fncCall(), operator=(), operator==(), and operator[]().

Here is the caller graph for this function:

PVar operator[] ( unsigned  pos  ) 

return Var object by index

Definition at line 269 of file vm.cc.

References d, size(), and VarSet::Private::vect.

Here is the call graph for this function:

PVar operator[] ( const std::string &  name  ) 

return Var object by name

Definition at line 274 of file vm.cc.

References d, and VarSet::Private::vMap.

const PVar operator[] ( unsigned  pos  )  const [inline]

const to non-const wrapper

Definition at line 109 of file vm.h.

const PVar operator[] ( const std::string &  name  )  const [inline]

const to non-const wrapper

Definition at line 114 of file vm.h.


Member Data Documentation

Private* d [private]

Definition at line 119 of file vm.h.

Referenced by add(), operator=(), operator[](), size(), and ~VarSet().


The documentation for this class was generated from the following files:
Generated on Sat Jul 4 18:33:19 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4