GiNaCRA
0.6.4
|
Class saving variable-lists. More...
#include <VariableListPool.h>
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 SymbolDB * | GlobalVariables |
static SymbolDB * | GlobalParameters |
static map< symbol, symbol > | Matching |
static bool | mInitialized |
Class saving variable-lists.
Definition at line 37 of file VariableListPool.h.
Definition at line 35 of file VariableListPool.cpp.
static unsigned GiNaCRA::VariableListPool::addParameter | ( | ) | [inline, static] |
Add a parameter to the global list.
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.
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] |
Definition at line 103 of file VariableListPool.h.
References GiNaCRA::SymbolDB::addSymbol(), GlobalVariables, and GiNaCRA::SymbolDB::size().
static GiNaC::symbol GiNaCRA::VariableListPool::getParameterSymbol | ( | unsigned | index | ) | [inline, static] |
Get the parameter at the given index.
index |
Definition at line 80 of file VariableListPool.h.
References GlobalParameters.
static std::list<symbol> GiNaCRA::VariableListPool::getVariableList | ( | ) | [inline, static] |
Definition at line 89 of file VariableListPool.h.
References GiNaCRA::SymbolDB::getSymbolList(), and GlobalVariables.
static std::vector<symbol> GiNaCRA::VariableListPool::getVariables | ( | ) | [inline, static] |
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.
index |
Definition at line 70 of file VariableListPool.h.
References GlobalVariables.
Referenced by GiNaCRA::MultivariateMonomialMR::toEx().
bool GiNaCRA::VariableListPool::Initialize | ( | ) | [static] |
Initialize the global management.
Definition at line 37 of file VariableListPool.cpp.
References GiNaCRA::SymbolDB::addSymbol(), GlobalParameters, GlobalVariables, and mInitialized.
Referenced by GiNaCRA::MultivariatePolynomialSettings::InitializeGiNaCRAMultivariateMR().
SymbolDB * GiNaCRA::VariableListPool::GlobalParameters [static, protected] |
Definition at line 120 of file VariableListPool.h.
Referenced by addParameter(), getParameterSymbol(), and Initialize().
SymbolDB * GiNaCRA::VariableListPool::GlobalVariables [static, protected] |
Definition at line 119 of file VariableListPool.h.
Referenced by addVariable(), ensureNrVariables(), getVariableList(), getVariables(), getVariableSymbol(), 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().