#include <CFunctionDB.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
CFunctionDB::CFunctionDB |
( |
const std::string & |
name, |
|
|
const CCopasiContainer * |
pParent |
|
) |
| |
Default constructor
- Parameters:
-
const | std::string & name (default: "NoName") |
const | CCopasiContainer * pParent (default: NULL) |
CFunctionDB
Created for Copasi by Stefan Hoops (C) Stefan Hoops 2001
CFunctionDB::~CFunctionDB |
( |
| ) |
|
Member Function Documentation
Add the function to the database
- Parameters:
-
- Returns:
- bool success
Add the function to the database, if necessary adapt the name so it is unique.
bool CFunctionDB::appendDependentFunctions |
( |
std::set< const CCopasiObject * > |
candidates, |
|
|
std::set< const CCopasiObject * > & |
dependentFunctions |
|
) |
| const |
Appends pointers to function, which are dependent on any of the candidates to the list dependentFunctions.
- Parameters:
-
- Returns:
- bool functionsAppended
void CFunctionDB::cleanup |
( |
| ) |
|
CEvaluationTree * CFunctionDB::findFunction |
( |
const std::string & |
functionName | ) |
|
Delete the function functionName from the database
- Parameters:
-
const string | &functionName |
- Returns:
- C_INT32 Fail Search for a function among the loaded functions. If no function is found NULL is returned
- Parameters:
-
const string | &functionName |
- Returns:
- CEvaluationTree *
CEvaluationTree * CFunctionDB::findLoadFunction |
( |
const std::string & |
functionName | ) |
|
Search for a function among the loaded functions. If no function is found the database is searched and the apropriate function is loaded.
- Parameters:
-
const string | &functionName |
- Returns:
- CEvaluationTree * function (NULL if function is not found)
std::string CFunctionDB::getFilename |
( |
| ) |
const |
Retrieves a list of all functions used in the model
- Returns:
- std::vector< CEvaluationTree * > usedFunctions
void CFunctionDB::initObjects |
( |
| ) |
|
std::set< std::string > CFunctionDB::listDependentTrees |
( |
const std::string & |
name | ) |
const |
Retrieve a list of evaluation trees depending on the tree with the given name.
- Parameters:
-
- Returns:
- std::set<std::string> list
bool CFunctionDB::load |
( |
| ) |
|
C_INT32 CFunctionDB::load |
( |
CReadConfig & |
configbuffer | ) |
|
Loads an object with data coming from a CReadConfig object. (CReadConfig object reads an input stream)
- Parameters:
-
- Returns:
- mFail
Retrieves the vector of loaded functions.
- Returns:
- "CCopasiVectorNS < CKinFunction > &" loadedFunctions
bool CFunctionDB::removeFunction |
( |
unsigned C_INT32 |
index | ) |
|
bool CFunctionDB::removeFunction |
( |
const std::string & |
key | ) |
|
void CFunctionDB::setFilename |
( |
const std::string & |
filename | ) |
|
std::vector< CFunction * > CFunctionDB::suitableFunctions |
( |
const unsigned C_INT32 |
noSubstrates, |
|
|
const unsigned C_INT32 |
noProducts, |
|
|
const TriLogic |
reversibility |
|
) |
| |
Retrieves the vector of functions that are suitable for a number of substrates, products and reversibility status. Note: The returns CCopasiVector has to be deleted after use!
- Parameters:
-
const unsigned C_INT32 | noSubstrates the number of substrates |
const unsigned C_INT32 | noProducts the number of products |
const TriLogic | reversible the reversibility status |
- Returns:
- "std::vector<CFunction*> " suitableFunctions
The documentation for this class was generated from the following files: