CVariableNames Class Reference

#include <CVariableNames.h>

List of all members.

Public Types

typedef CTypes::vartext_type vartext_type
 Define type for setting/getting names of variables.
typedef std::string varname_type
 Define type for storing names of variables.
typedef std::vector< varname_typestorage_type
 Define type for storing names of variables.
typedef storage_type::reference reference
 Define type for write accessing elements.
typedef vartext_type const_reference
 Define type for outputing variable names.
typedef CVariableNames self
 Define type of *this.
adopt global type definitions

typedef CTypes::size_type size_type
typedef CTypes::idx_type idx_type

Public Member Functions

 CVariableNames (size_type nvars)
 Constructor.
 CVariableNames (const self &rhs)
 Copy Constructor.
void reset (idx_type idx=0)
 Set default variable names.
const_reference operator[] (idx_type idx) const
 Get name of variable with index idx.
void set (idx_type idx, const varname_type &varname)
 Get writable reference to name of variable with index idx.

Static Protected Member Functions

static const_reference undefName ()

Member Typedef Documentation

Define type for outputing variable names.

typedef storage_type::reference CVariableNames::reference

Define type for write accessing elements.

Define type of *this.

Define type for storing names of variables.

typedef std::string CVariableNames::varname_type

Define type for storing names of variables.

Define type for setting/getting names of variables.


Constructor & Destructor Documentation

CVariableNames::CVariableNames ( size_type  nvars  )  [inline]

Constructor.

References reset().

CVariableNames::CVariableNames ( const self rhs  )  [inline]

Copy Constructor.


Member Function Documentation

const_reference CVariableNames::operator[] ( idx_type  idx  )  const [inline]

Get name of variable with index idx.

References undefName(), and UNLIKELY.

void CVariableNames::reset ( idx_type  idx = 0  )  [inline]

Set default variable names.

Referenced by CVariableNames(), and set().

void CVariableNames::set ( idx_type  idx,
const varname_type varname 
) [inline]

Get writable reference to name of variable with index idx.

References reset(), and UNLIKELY.

static const_reference CVariableNames::undefName (  )  [inline, static, protected]

Referenced by operator[]().


The documentation for this class was generated from the following file:
Generated on Tue May 4 08:22:55 2010 for PolyBoRi by  doxygen 1.6.3