Developer documentation

mmx::variables Struct Reference

#include <variables.hpp>

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

mmx::variables::variables ( )
inline
mmx::variables::variables ( const char *  s)
inline

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

Member Function Documentation

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

Assign the variable of index i to be s.

int mmx::variables::nbvar ( ) const
inline
variables & mmx::variables::operator= ( const char *  s)

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

std::string mmx::variables::operator[] ( int  i)

Return the variable of index i.

std::string mmx::variables::operator[] ( int  i) const

Return the variable of index i.

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

Return the index of the variable s.

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

Return the index of the variable s.

int mmx::variables::size ( void  ) const
inline

Member Data Documentation

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

The documentation for this struct was generated from the following files:
Home