Variables Struct Reference

List of all members.

Detailed Description

Definition at line 16 of file Variables.h.

Public Member Functions

 Variables ()
 Variables (const char *s)
 Construction the list of variables from a string of the form "a b c ...".
std::string & let (int i, const std::string &s)
 Assign the variable of index i to be s.
std::string operator[] (int i)
 Return the variable of index i.
std::string operator[] (int i) const
 Return the variable of index i.
int operator[] (const std::string &s)
 Return the index of the variable s.
Variablesoperator= (const char *s)
 Assign a set of variables from a string of the form "a b c ...".

Public Attributes

int _nbvar
std::map< std::string, int > _index_of_var
std::map< int, std::string > _var_of_index

Static Public Attributes

static Variables default_


Constructor & Destructor Documentation

Variables::Variables ( const char *  s  ) 

Construction the list of variables from a string of the form "a b c ...".

Definition at line 26 of file Variables.h.


Member Function Documentation

std::string& Variables::let ( int  i,
const std::string &  s 
)

Assign the variable of index i to be s.

std::string Variables::operator[] ( int  i  ) 

Return the variable of index i.

std::string Variables::operator[] ( int  i  )  const

Return the variable of index i.

int Variables::operator[] ( const std::string &  s  ) 

Return the index of the variable s.

Variables& Variables::operator= ( const char *  s  ) 

Assign a set of variables from a string of the form "a b c ...".


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

SYNAPS DOCUMENTATION
logo