COPASI API  4.16.103
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CStateTemplate Class Reference

#include <CState.h>

Collaboration diagram for CStateTemplate:
Collaboration graph
[legend]

Public Member Functions

void add (CModelEntity *entity)
 
CModelEntity ** beginDependent ()
 
CModelEntity *const * beginDependent () const
 
CModelEntity ** beginFixed ()
 
CModelEntity *const * beginFixed () const
 
CModelEntity ** beginIndependent ()
 
CModelEntity *const * beginIndependent () const
 
 CStateTemplate (CModel &model, CState &initialState, CState &currentState)
 
CModelEntity ** endDependent ()
 
CModelEntity *const * endDependent () const
 
CModelEntity ** endFixed ()
 
CModelEntity *const * endFixed () const
 
CModelEntity ** endIndependent ()
 
CModelEntity *const * endIndependent () const
 
CModelEntity ** getEntities ()
 
CModelEntity *const * getEntities () const
 
size_t getIndex (const CModelEntity *entity) const
 
size_t getNumDependent () const
 
size_t getNumFixed () const
 
size_t getNumIndependent () const
 
size_t getNumVariable () const
 
const CVector< size_t > & getUserOrder () const
 
void remove (CModelEntity *entity)
 
void reorder (const CVector< CModelEntity * > &newOrder)
 
void setUserOrder (const CVector< CModelEntity * > &userOrder)
 
const size_t & size () const
 
 ~CStateTemplate ()
 

Protected Member Functions

void resize ()
 

Private Member Functions

 CStateTemplate ()
 

Private Attributes

CStatemCurrentState
 
std::map< CModelEntity *, size_t > mIndexMap
 
CStatemInitialState
 
size_t mInsert
 
CModelmModel
 
CModelEntity ** mpBeginDependent
 
CModelEntity ** mpBeginFixed
 
CModelEntity ** mpBeginIndependent
 
C_FLOAT64mpCurrentValues
 
CModelEntity ** mpEnd
 
CModelEntity ** mpEntities
 
C_FLOAT64mpInitialValues
 
size_t mSize
 
CVector< size_t > mUserOrder
 

Detailed Description

Definition at line 46 of file CState.h.

Constructor & Destructor Documentation

CStateTemplate::CStateTemplate ( )
private

Default Constructor (inaccessible)

CStateTemplate::CStateTemplate ( CModel model,
CState initialState,
CState currentState 
)

Specific constructor

Parameters
CModel& model
CState& initialState
CState& currentState

Definition at line 41 of file CState.cpp.

41  :
42  mModel(model),
43  mInitialState(initialState),
44  mCurrentState(currentState),
45  mpEntities(NULL),
46  mSize(0),
47  mpBeginIndependent(NULL),
48  mpBeginDependent(NULL),
49  mpBeginFixed(NULL),
50  mpEnd(NULL),
51  mInsert(0),
52  mIndexMap(),
53  mUserOrder(0),
54  mpInitialValues(NULL),
55  mpCurrentValues(NULL)
56 {}
CVector< size_t > mUserOrder
Definition: CState.h:292
CModelEntity ** mpEnd
Definition: CState.h:277
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity ** mpBeginIndependent
Definition: CState.h:262
C_FLOAT64 * mpCurrentValues
Definition: CState.h:302
CModelEntity ** mpEntities
Definition: CState.h:252
CState & mInitialState
Definition: CState.h:242
CState & mCurrentState
Definition: CState.h:247
std::map< CModelEntity *, size_t > mIndexMap
Definition: CState.h:287
size_t mInsert
Definition: CState.h:282
size_t mSize
Definition: CState.h:257
CModel & mModel
Definition: CState.h:237
CModelEntity ** mpBeginFixed
Definition: CState.h:272
C_FLOAT64 * mpInitialValues
Definition: CState.h:297
CStateTemplate::~CStateTemplate ( )

Destructor

Definition at line 58 of file CState.cpp.

References mpEntities, and pdeletev.

59 {
61 }
#define pdeletev(p)
Definition: copasi.h:216
CModelEntity ** mpEntities
Definition: CState.h:252

Member Function Documentation

void CStateTemplate::add ( CModelEntity entity)

Add an entity to the template.

Parameters
CModelEntity* entity

Definition at line 63 of file CState.cpp.

References mIndexMap, mInsert, mModel, mpCurrentValues, mpEntities, mpInitialValues, mSize, resize(), CModel::setCompileFlag(), CModelEntity::setInitialValuePtr(), and CModelEntity::setValuePtr().

Referenced by CModelEntity::initObjects(), CModel::initObjects(), and CModelEntity::setObjectParent().

64 {
65  if (mIndexMap.count(entity))
66  return;
67 
68  if (mInsert == mSize) resize();
69 
70  mpEntities[mInsert] = entity;
71 
74 
75  mIndexMap[entity] = mInsert++;
76 
77  mModel.setCompileFlag(true);
78 }
C_FLOAT64 * mpCurrentValues
Definition: CState.h:302
void setValuePtr(C_FLOAT64 *pValue)
CModelEntity ** mpEntities
Definition: CState.h:252
void setCompileFlag(bool flag=true)
Definition: CModel.cpp:607
std::map< CModelEntity *, size_t > mIndexMap
Definition: CState.h:287
void resize()
Definition: CState.cpp:245
size_t mInsert
Definition: CState.h:282
size_t mSize
Definition: CState.h:257
void setInitialValuePtr(C_FLOAT64 *pInitialValue)
CModel & mModel
Definition: CState.h:237
C_FLOAT64 * mpInitialValues
Definition: CState.h:297
CModelEntity ** CStateTemplate::beginDependent ( )

Retrieve the array of pointers to all dependent entities, which are only dependent species for a reduced model.

Returns
CModelEntities ** dependentEntities

Definition at line 210 of file CState.cpp.

References mpBeginDependent.

Referenced by CModel::buildSimulatedSequence(), CMathContainer::initializeObjects(), and CQUpdatesWidget::loadObjectsTable().

210 {return mpBeginDependent;}
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity *const * CStateTemplate::beginDependent ( ) const

Retrieve the array of pointers to all dependent entities, which are only dependent species for a reduced model.

Returns
CModelEntities const dependentEntities

Definition at line 217 of file CState.cpp.

References mpBeginDependent.

217 {return mpBeginDependent;}
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity ** CStateTemplate::beginFixed ( )

Retrieve the array of pointers to all fixed entities.

Returns
CModelEntities ** fixedEntities

Definition at line 212 of file CState.cpp.

References mpBeginFixed.

Referenced by CMathContainer::initializeObjects(), and CQUpdatesWidget::loadObjectsTable().

212 {return mpBeginFixed;}
CModelEntity ** mpBeginFixed
Definition: CState.h:272
CModelEntity *const * CStateTemplate::beginFixed ( ) const

Retrieve the array of pointers to all fixed entities.

Returns
CModelEntities const fixedEntities

Definition at line 219 of file CState.cpp.

References mpBeginFixed.

219 {return mpBeginFixed;}
CModelEntity ** mpBeginFixed
Definition: CState.h:272
CModelEntity ** CStateTemplate::beginIndependent ( )
CModelEntity *const * CStateTemplate::beginIndependent ( ) const

Retrieve the array of pointers to all independent entities.

Returns
CModelEntities const independentEntities

Definition at line 215 of file CState.cpp.

References mpBeginIndependent.

215 {return mpBeginIndependent;}
CModelEntity ** mpBeginIndependent
Definition: CState.h:262
CModelEntity ** CStateTemplate::endDependent ( )

Retrieve pointer just beyond the dependent entities.

Returns
CModelEntities ** endDependentEntities

Definition at line 211 of file CState.cpp.

References mpBeginFixed.

Referenced by CModel::buildSimulatedSequence(), CModel::calculateElasticityMatrix(), CMathModel::compile(), CMathContainer::initializeObjects(), CModel::isStateVariable(), and CQUpdatesWidget::loadObjectsTable().

211 {return mpBeginFixed;}
CModelEntity ** mpBeginFixed
Definition: CState.h:272
CModelEntity *const * CStateTemplate::endDependent ( ) const

Retrieve pointer just beyond the dependent entities.

Returns
CModelEntities ** endDependentEntities

Definition at line 218 of file CState.cpp.

References mpBeginFixed.

218 {return mpBeginFixed;}
CModelEntity ** mpBeginFixed
Definition: CState.h:272
CModelEntity ** CStateTemplate::endFixed ( )
CModelEntity *const * CStateTemplate::endFixed ( ) const

Retrieve pointer just beyond the fixed entities.

Returns
CModelEntities const endFixedEntities

Definition at line 220 of file CState.cpp.

References mpEnd.

220 {return mpEnd;}
CModelEntity ** mpEnd
Definition: CState.h:277
CModelEntity ** CStateTemplate::endIndependent ( )

Retrieve pointer just beyond the independent entities.

Returns
CModelEntities ** endIndependentEntities

Definition at line 209 of file CState.cpp.

References mpBeginDependent.

Referenced by CModel::buildSimulatedSequence(), CMathContainer::initializeObjects(), CMCAMethod::isValidProblem(), CStochDirectMethod::isValidProblem(), CTrajAdaptiveSA::isValidProblem(), and CQUpdatesWidget::loadObjectsTable().

209 {return mpBeginDependent;}
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity *const * CStateTemplate::endIndependent ( ) const

Retrieve pointer just beyond the independent entities.

Returns
CModelEntities const endIndependentEntities

Definition at line 216 of file CState.cpp.

References mpBeginDependent.

216 {return mpBeginDependent;}
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity ** CStateTemplate::getEntities ( )
CModelEntity *const * CStateTemplate::getEntities ( ) const

Retrieve the array of pointers to all entities.

Returns
CModelEntities const entities

Definition at line 205 of file CState.cpp.

References mpEntities.

205 {return mpEntities;}
CModelEntity ** mpEntities
Definition: CState.h:252
size_t CStateTemplate::getIndex ( const CModelEntity entity) const

Retrieve the index of an entity in the template. Returns C_INVALID_INDEX if the entity is not found.

Parameters
constCModelEntity * entity
Returns
size_t index

Definition at line 231 of file CState.cpp.

References C_INVALID_INDEX, and mIndexMap.

Referenced by CTimeSeries::compile(), CCopasiXMLParser::InitialStateElement::end(), setUserOrder(), CTauLeapMethod::start(), CHybridMethod::start(), CStochDirectMethod::start(), CTrajAdaptiveSA::start(), CStochMethod::start(), and CTrajectoryMethodDsaLsodar::start().

232 {
233  std::map< CModelEntity *, size_t >::const_iterator found =
234  mIndexMap.find(const_cast< CModelEntity * >(entity));
235 
236  if (found != mIndexMap.end())
237  return found->second;
238 
239  return C_INVALID_INDEX;
240 }
#define C_INVALID_INDEX
Definition: copasi.h:222
std::map< CModelEntity *, size_t > mIndexMap
Definition: CState.h:287
size_t CStateTemplate::getNumDependent ( ) const

Retrieve the number of dependent entities.

Returns
size_t numDependent

Definition at line 224 of file CState.cpp.

References mpBeginDependent, and mpBeginFixed.

Referenced by CSteadyStateTask::updateMatrices().

225 {return mpBeginFixed - mpBeginDependent;}
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity ** mpBeginFixed
Definition: CState.h:272
size_t CStateTemplate::getNumFixed ( ) const

Retrieve the number of fixed entities.

Returns
size_t numFixed

Definition at line 228 of file CState.cpp.

References mpBeginFixed, and mpEnd.

229 {return mpEnd - mpBeginFixed;}
CModelEntity ** mpEnd
Definition: CState.h:277
CModelEntity ** mpBeginFixed
Definition: CState.h:272
size_t CStateTemplate::getNumIndependent ( ) const

Retrieve the number of independent entities.

Returns
size_t numIndependent

Definition at line 222 of file CState.cpp.

References mpBeginDependent, and mpBeginIndependent.

Referenced by CModel::buildUserOrder(), CModel::calculateDerivatives(), CModel::calculateDerivativesX(), CMathModel::calculateRootDerivatives(), CNewtonMethod::initialize(), CModel::initializeAtolVector(), and CSteadyStateTask::updateMatrices().

CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity ** mpBeginIndependent
Definition: CState.h:262
size_t CStateTemplate::getNumVariable ( ) const

Retrieve the number of variable entities, i.e., the sum of independent and dependent variables.

Returns
size_t numVariable

Definition at line 226 of file CState.cpp.

References mpBeginFixed, and mpBeginIndependent.

CModelEntity ** mpBeginIndependent
Definition: CState.h:262
CModelEntity ** mpBeginFixed
Definition: CState.h:272
const CVector< size_t > & CStateTemplate::getUserOrder ( ) const

Retrieve a pivot vector which can be used to reconstruct the user order.

Returns
const CVector<size_t> & userOrder

Definition at line 201 of file CState.cpp.

References mUserOrder.

Referenced by CModel::buildUserOrder(), CTimeSeries::compile(), CSteadyStateTask::initialize(), and CSteadyStateTask::updateMatrices().

202 {return mUserOrder;}
CVector< size_t > mUserOrder
Definition: CState.h:292
void CStateTemplate::remove ( CModelEntity entity)

Remove an entity from the template.

Parameters
CModelEntity* entity

Definition at line 80 of file CState.cpp.

References mIndexMap, mModel, mpEntities, CModel::setCompileFlag(), CModelEntity::setInitialValuePtr(), and CModelEntity::setValuePtr().

Referenced by CModelEntity::setObjectParent(), and CModelEntity::~CModelEntity().

81 {
82  std::map< CModelEntity *, size_t >::iterator it =
83  mIndexMap.find(entity);
84 
85  if (it == mIndexMap.end())
86  return;
87 
88  entity->setInitialValuePtr(NULL);
89  entity->setValuePtr(NULL);
90 
91  mpEntities[it->second] = NULL;
92 
93  mIndexMap.erase(it);
94 
95  mModel.setCompileFlag(true);
96 }
void setValuePtr(C_FLOAT64 *pValue)
CModelEntity ** mpEntities
Definition: CState.h:252
void setCompileFlag(bool flag=true)
Definition: CModel.cpp:607
std::map< CModelEntity *, size_t > mIndexMap
Definition: CState.h:287
void setInitialValuePtr(C_FLOAT64 *pInitialValue)
CModel & mModel
Definition: CState.h:237
void CStateTemplate::reorder ( const CVector< CModelEntity * > &  newOrder)

Reorder the template.

Parameters
constCVector< CModelEntity * > & newOrder

Definition at line 98 of file CState.cpp.

References CVectorCore< CType >::array(), CModelEntity::ASSIGNMENT, C_FLOAT64, CModelEntity::FIXED, mCurrentState, mIndexMap, mInitialState, mInsert, mpBeginDependent, mpBeginFixed, mpBeginIndependent, mpCurrentValues, mpEnd, mpEntities, mpInitialValues, CModelEntity::ODE, CModelEntity::REACTIONS, CVectorCore< CType >::size(), CModelEntity::TIME, and CState::updateIterator().

Referenced by CModel::buildSimulatedSequence(), and CModel::buildStateTemplate().

99 {
100  assert(entitiesX.size() + 1 == mIndexMap.size());
101 
102  // Update mpEntities to reflect the new order;
103 
104  memcpy(mpEntities + 1, entitiesX.array(), sizeof(CModelEntity *) * entitiesX.size());
105  mInsert = entitiesX.size() + 1;
106 
107  std::map< CModelEntity *, size_t >::iterator found;
108  CVector<C_FLOAT64> InitialValues(entitiesX.size());
109  CVector<C_FLOAT64> CurrentValues(entitiesX.size());
110 
111  CModelEntity *const*it = entitiesX.array();
112  CModelEntity *const*end = it + entitiesX.size();
113 
114  size_t i;
115  size_t Independent, Dependent, Fixed;
116  Independent = Dependent = Fixed = 0;
117 
118  for (i = 1; it != end; ++it, i++)
119  {
120  found = mIndexMap.find(*it);
121  assert(found != mIndexMap.end());
122 
123  // Build new order
124  InitialValues[i - 1] = *(mpInitialValues + found->second);
125  CurrentValues[i - 1] = *(mpCurrentValues + found->second);
126 
127  // Update pointer if necessary
128  if (i != found->second)
129  {
130  found->second = i;
131  found->first->setInitialValuePtr(mpInitialValues + found->second);
132  found->first->setValuePtr(mpCurrentValues + found->second);
133  }
134 
135  // Count numbers for each status type;
136  if ((*it)->isUsed())
137  switch ((*it)->getStatus())
138  {
139  case CModelEntity::FIXED:
140  Fixed++;
141  break;
142 
144 
145  if (static_cast< CMetab * >(*it)->isDependent())
146  {
147  assert(Fixed == 0);
148  Dependent++;
149  }
150  else
151  {
152  assert(Dependent == 0);
153  Independent++;
154  }
155 
156  break;
157 
158  case CModelEntity::ODE:
159  assert(Dependent == 0);
160  Independent++;
161  break;
162 
164  assert(Fixed == 0);
165  Dependent++;
166  break;
167 
168  case CModelEntity::TIME:
169  assert(false);
170  break;
171  }
172  else
173  Fixed++;
174  }
175 
177  mpBeginDependent = mpBeginIndependent + Independent;
178  mpBeginFixed = mpBeginDependent + Dependent;
179  mpEnd = mpBeginFixed + Fixed;
180 
181  memcpy(mpInitialValues + 1, InitialValues.array(), sizeof(C_FLOAT64) * entitiesX.size());
182  memcpy(mpCurrentValues + 1, CurrentValues.array(), sizeof(C_FLOAT64) * entitiesX.size());
183 
184  // Update the iterators of the states
185  mInitialState.updateIterator(Independent, Dependent, Fixed);
186  mCurrentState.updateIterator(Independent, Dependent, Fixed);
187 }
CModelEntity ** mpEnd
Definition: CState.h:277
CModelEntity ** mpBeginDependent
Definition: CState.h:267
CModelEntity ** mpBeginIndependent
Definition: CState.h:262
C_FLOAT64 * mpCurrentValues
Definition: CState.h:302
CModelEntity ** mpEntities
Definition: CState.h:252
CState & mInitialState
Definition: CState.h:242
CState & mCurrentState
Definition: CState.h:247
std::map< CModelEntity *, size_t > mIndexMap
Definition: CState.h:287
size_t size() const
Definition: CVector.h:100
#define C_FLOAT64
Definition: copasi.h:92
void updateIterator(const size_t &numIndependent, const size_t &numDependent, const size_t &numFixed)
Definition: CState.cpp:388
size_t mInsert
Definition: CState.h:282
CModelEntity ** mpBeginFixed
Definition: CState.h:272
C_FLOAT64 * mpInitialValues
Definition: CState.h:297
void CStateTemplate::resize ( )
protected

Resize the template

Definition at line 245 of file CState.cpp.

References C_FLOAT64, mCurrentState, mInitialState, mInsert, mpCurrentValues, mpEntities, mpInitialValues, mSize, pdeletev, and CState::resize().

Referenced by add().

246 {
247  size_t OldSize = mSize;
248 
249  if (mSize)
250  mSize *= 2;
251  else
252  mSize = 16;
253 
254  // Resize the entities array.
255  CModelEntity ** pTmp = mpEntities;
256  mpEntities = new CModelEntity * [mSize];
257  memcpy(mpEntities, pTmp, sizeof(CModelEntity *) * OldSize);
258  pdeletev(pTmp);
259 
260  // Resize the states
261  C_FLOAT64 * pInitialValues = mpInitialValues = mInitialState.resize(mSize);
262  C_FLOAT64 * pCurrentValues = mpCurrentValues = mCurrentState.resize(mSize);
263 
264  // Update all pointers in the entities
265  pTmp = mpEntities;
266  CModelEntity ** pEnd = pTmp + mInsert;
267 
268  for (; pTmp != pEnd; ++pTmp, ++pInitialValues, ++pCurrentValues)
269  if (*pTmp != NULL)
270  {
271  (*pTmp)->setInitialValuePtr(pInitialValues);
272  (*pTmp)->setValuePtr(pCurrentValues);
273  }
274 }
#define pdeletev(p)
Definition: copasi.h:216
C_FLOAT64 * mpCurrentValues
Definition: CState.h:302
CModelEntity ** mpEntities
Definition: CState.h:252
CState & mInitialState
Definition: CState.h:242
CState & mCurrentState
Definition: CState.h:247
#define C_FLOAT64
Definition: copasi.h:92
size_t mInsert
Definition: CState.h:282
size_t mSize
Definition: CState.h:257
C_FLOAT64 * resize(const size_t &size)
Definition: CState.cpp:365
C_FLOAT64 * mpInitialValues
Definition: CState.h:297
void CStateTemplate::setUserOrder ( const CVector< CModelEntity * > &  userOrder)

Set the user preferred order of the entities.

Parameters
constCVector< CModelEntity * > & userOrder

Definition at line 189 of file CState.cpp.

References CVectorCore< CType >::array(), getIndex(), mUserOrder, CVector< CType >::resize(), and CVectorCore< CType >::size().

Referenced by CModel::buildUserOrder().

190 {
191  mUserOrder.resize(entities.size() + 1);
192  size_t * pUserOrder = mUserOrder.array();
193  *pUserOrder++ = 0; // for time
194 
195  CModelEntity *const *it = entities.array();
196  CModelEntity *const *end = it + entities.size();
197 
198  while (it != end) *pUserOrder++ = getIndex(*it++);
199 }
CVector< size_t > mUserOrder
Definition: CState.h:292
void resize(size_t size, const bool &copy=false)
Definition: CVector.h:301
size_t getIndex(const CModelEntity *entity) const
Definition: CState.cpp:231
CType * array()
Definition: CVector.h:139
const size_t & CStateTemplate::size ( ) const

Retrieve size of the template, i.e., the number of entities.

Returns
size_t size

Definition at line 242 of file CState.cpp.

References mInsert.

Referenced by CMathContainer::allocate(), CMathModel::buildDependendRefreshList(), CModel::buildSimulatedSequence(), CFixLocalReactionParameters::checkModel(), CModel::getTreesWithDiscontinuities(), CQUpdatesWidget::loadObjectsTable(), and CCopasiXML::saveModel().

243 {return mInsert;}
size_t mInsert
Definition: CState.h:282

Member Data Documentation

CState& CStateTemplate::mCurrentState
private

A reference to the current state of the model

Definition at line 247 of file CState.h.

Referenced by reorder(), and resize().

std::map< CModelEntity *, size_t > CStateTemplate::mIndexMap
private

A map of pointer to entities to the index it appear in the template

Definition at line 287 of file CState.h.

Referenced by add(), getIndex(), remove(), and reorder().

CState& CStateTemplate::mInitialState
private

A reference to the initial state of the model

Definition at line 242 of file CState.h.

Referenced by reorder(), and resize().

size_t CStateTemplate::mInsert
private

The index in which the next added entity must be inserted.

Definition at line 282 of file CState.h.

Referenced by add(), reorder(), resize(), and size().

CModel& CStateTemplate::mModel
private

A reference to the model

Definition at line 237 of file CState.h.

Referenced by add(), and remove().

CModelEntity** CStateTemplate::mpBeginDependent
private

A pointer to the dependent entities

Definition at line 267 of file CState.h.

Referenced by beginDependent(), endIndependent(), getNumDependent(), getNumIndependent(), and reorder().

CModelEntity** CStateTemplate::mpBeginFixed
private

A pointer to the fixed entities

Definition at line 272 of file CState.h.

Referenced by beginFixed(), endDependent(), getNumDependent(), getNumFixed(), getNumVariable(), and reorder().

CModelEntity** CStateTemplate::mpBeginIndependent
private

A pointer to the independent entities

Definition at line 262 of file CState.h.

Referenced by beginIndependent(), getNumIndependent(), getNumVariable(), and reorder().

C_FLOAT64* CStateTemplate::mpCurrentValues
private

The array of current values of all entities

Definition at line 302 of file CState.h.

Referenced by add(), reorder(), and resize().

CModelEntity** CStateTemplate::mpEnd
private

A pointer just beyond the entities

Definition at line 277 of file CState.h.

Referenced by endFixed(), getNumFixed(), and reorder().

CModelEntity** CStateTemplate::mpEntities
private

The array of entities

Definition at line 252 of file CState.h.

Referenced by add(), getEntities(), remove(), reorder(), resize(), and ~CStateTemplate().

C_FLOAT64* CStateTemplate::mpInitialValues
private

The array of initial values of all entities

Definition at line 297 of file CState.h.

Referenced by add(), reorder(), and resize().

size_t CStateTemplate::mSize
private

The allocate size of the template

Definition at line 257 of file CState.h.

Referenced by add(), and resize().

CVector<size_t> CStateTemplate::mUserOrder
private

A pivot vector storing the user order of the entities

Definition at line 292 of file CState.h.

Referenced by getUserOrder(), and setUserOrder().


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