GiNaCRA  0.6.4
GiNaCRA::VariableListPool Class Reference

Class saving variable-lists. More...

#include <VariableListPool.h>

Collaboration diagram for GiNaCRA::VariableListPool:

Public Member Functions

 VariableListPool ()

Static Public Member Functions

static unsigned addVariable ()
 Add a variable to the global list.
static unsigned addVariable (symbol s)
static unsigned addParameter ()
 Add a parameter to the global list.
static GiNaC::symbol getVariableSymbol (unsigned index)
 Get the variable at the given index.
static GiNaC::symbol getParameterSymbol (unsigned index)
 Get the parameter at the given index.
static std::list< symbol > getVariableList ()
static std::vector< symbol > getVariables ()
static void ensureNrVariables (unsigned nrOfVars)
static bool Initialize ()
 Initialize the global management.

Static Protected Attributes

static SymbolDBGlobalVariables
static SymbolDBGlobalParameters
static map< symbol, symbol > Matching
static bool mInitialized

Detailed Description

Class saving variable-lists.

Author:
Sebastian Junges
Since:
2011-12-08
Version:
2011-12-15

Definition at line 37 of file VariableListPool.h.


Constructor & Destructor Documentation


Member Function Documentation

static unsigned GiNaCRA::VariableListPool::addParameter ( ) [inline, static]

Add a parameter to the global list.

Returns:
the index

Definition at line 60 of file VariableListPool.h.

References GiNaCRA::SymbolDB::addSymbol(), and GlobalParameters.

static unsigned GiNaCRA::VariableListPool::addVariable ( ) [inline, static]

Add a variable to the global list.

Returns:
the index

Definition at line 46 of file VariableListPool.h.

References GiNaCRA::SymbolDB::addSymbol(), and GlobalVariables.

Referenced by GiNaCRA::CAD::addPolynomials(), and GiNaCRA::CAD::CAD().

static unsigned GiNaCRA::VariableListPool::addVariable ( symbol  s) [inline, static]

Definition at line 51 of file VariableListPool.h.

References GiNaCRA::SymbolDB::addSymbol(), and GlobalVariables.

static void GiNaCRA::VariableListPool::ensureNrVariables ( unsigned  nrOfVars) [inline, static]
static GiNaC::symbol GiNaCRA::VariableListPool::getParameterSymbol ( unsigned  index) [inline, static]

Get the parameter at the given index.

Parameters:
index
Returns:

Definition at line 80 of file VariableListPool.h.

References GlobalParameters.

static std::list<symbol> GiNaCRA::VariableListPool::getVariableList ( ) [inline, static]
Returns:
The list of globally managed variables

Definition at line 89 of file VariableListPool.h.

References GiNaCRA::SymbolDB::getSymbolList(), and GlobalVariables.

static std::vector<symbol> GiNaCRA::VariableListPool::getVariables ( ) [inline, static]
Returns:
The list of globally managed parameters

Definition at line 98 of file VariableListPool.h.

References GiNaCRA::SymbolDB::getSymbolVector(), and GlobalVariables.

Referenced by GiNaCRA::MultivariatePolynomialMR::MultivariatePolynomialMR().

static GiNaC::symbol GiNaCRA::VariableListPool::getVariableSymbol ( unsigned  index) [inline, static]

Get the variable at the given index.

Parameters:
index
Returns:

Definition at line 70 of file VariableListPool.h.

References GlobalVariables.

Referenced by GiNaCRA::MultivariateMonomialMR::toEx().


Field Documentation

Definition at line 120 of file VariableListPool.h.

Referenced by addParameter(), getParameterSymbol(), and Initialize().

std::map< symbol, symbol > GiNaCRA::VariableListPool::Matching [static, protected]

Definition at line 121 of file VariableListPool.h.

bool GiNaCRA::VariableListPool::mInitialized [static, protected]

Definition at line 122 of file VariableListPool.h.

Referenced by Initialize().


The documentation for this class was generated from the following files: