#include <CCopasiVector.h>
List of all members.
template<class CType>
class CCopasiVector< CType >
Member Typedef Documentation
Reimplemented in CCopasiVectorNS< CType >, CCopasiVectorNS< CReaction >, CCopasiVectorNS< CFunctionParameter >, CCopasiVectorNS< CCompartment >, CCopasiVectorNS< CMetab >, CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, CCopasiVectorN< CReportDefinition >, CCopasiVectorS< CType >, and CCopasiVectorS< CMetabOld >.
Reimplemented in CCopasiVectorNS< CType >, CCopasiVectorNS< CReaction >, CCopasiVectorNS< CFunctionParameter >, CCopasiVectorNS< CCompartment >, CCopasiVectorNS< CMetab >, CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, CCopasiVectorN< CReportDefinition >, CCopasiVectorS< CType >, and CCopasiVectorS< CMetabOld >.
Reimplemented in CCopasiVectorNS< CType >, CCopasiVectorNS< CReaction >, CCopasiVectorNS< CFunctionParameter >, CCopasiVectorNS< CCompartment >, CCopasiVectorNS< CMetab >, CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, CCopasiVectorN< CReportDefinition >, CCopasiVectorS< CType >, and CCopasiVectorS< CMetabOld >.
Constructor & Destructor Documentation
Default constructor
- Parameters:
-
Copy constructor
- Parameters:
-
Member Function Documentation
template<class CType>
virtual bool CCopasiVector< CType >::add |
( |
const CType & |
src | ) |
[inline, virtual] |
Add a copy of the object to the end of the vector.
- Parameters:
-
- Returns:
- bool success.
Reimplemented in CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, and CCopasiVectorN< CReportDefinition >.
template<class CType>
virtual bool CCopasiVector< CType >::add |
( |
CType * |
src, |
|
|
bool |
adopt = false |
|
) |
| [inline, virtual] |
Add an object to the end of the vector, if adobt is true the vector. becomes the parent of the object.
- Parameters:
-
CType | * src |
const | bool & adopt (Default: false) |
- Returns:
- bool success
template<class CType>
virtual void CCopasiVector< CType >::cleanup |
( |
| ) |
[inline, virtual] |
This creates a deep copy of the source, i.e., all objects are copied and the parent of these copies is the current vector.
- Parameters:
-
const | CCopasiVector< CType > & source |
Retrieve the index of the pointed to object in the vector. If the object is not found C_INVALID_INDEX is returned.
- Parameters:
-
- Returns:
- unsigned C_INT32 index
Retrieve a the CCopasiObject with the given name.
- Parameters:
-
- Returns:
- const CCopasiObject * object
Reimplemented from CCopasiContainer.
Reimplemented in CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, and CCopasiVectorN< CReportDefinition >.
Assignment operator. The effect of this operator is that both vectors will share the same objects. However, the parentship of the objects is not affected This means that the assigned vector must be used with some care.
- Parameters:
-
const | CCopasiVector< CType > & rhs |
- Returns:
- CCopasiVector< CType > & lhs
Assignment operator.
- Parameters:
-
const | std::vector< CType * > & rhs |
- Returns:
- CCopasiVector< CType > & lhs
Reimplemented in CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, and CCopasiVectorN< CReportDefinition >.
Retrieve the indexed object.
- Parameters:
-
const | unsigned C_INT32 & index |
- Returns:
- const value_type & object
Reimplemented in CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, and CCopasiVectorN< CReportDefinition >.
Retrieve the indexed object.
- Parameters:
-
const | unsigned C_INT32 & index |
- Returns:
- value_type & object
Reimplemented in CCopasiVectorN< CType >, CCopasiVectorN< CEvaluationTree >, CCopasiVectorN< CReaction >, CCopasiVectorN< CEventAssignment >, CCopasiVectorN< CFunctionParameter >, CCopasiVectorN< CCopasiTask >, CCopasiVectorN< CPlotSpecification >, CCopasiVectorN< CCompartment >, CCopasiVectorN< CEvent >, CCopasiVectorN< CMetab >, CCopasiVectorN< CModelValue >, and CCopasiVectorN< CReportDefinition >.
template<class CType>
virtual void CCopasiVector< CType >::remove |
( |
const unsigned C_INT32 & |
index | ) |
[inline, virtual] |
Removes the index-th element from the vector
- Parameters:
-
const | unsigned C_INT32 & index |
Removes the pointed to object from the vector
- Parameters:
-
- Returns:
- bool success
Reimplemented from CCopasiContainer.
template<class CType>
virtual void CCopasiVector< CType >::resize |
( |
const unsigned C_INT32 & |
newSize | ) |
[inline, virtual] |
Resizes the vector but does not create new member objects
- Parameters:
-
const | unsigned C_INT32 & newSize |
template<class CType>
virtual unsigned C_INT32 CCopasiVector< CType >::size |
( |
| ) |
const [inline, virtual] |
Retrieves the size of the vector
- Returns:
- unsigned C_INT32 size
template<class CType>
virtual void CCopasiVector< CType >::swap |
( |
const unsigned C_INT32 & |
indexFrom, |
|
|
const unsigned C_INT32 & |
indexTo |
|
) |
| [inline, virtual] |
Swap two objects in the vector.
- Parameters:
-
const | unsigned C_INT32 & indexFrom |
const | unsigned C_INT32 & indexTo |
Friends And Related Function Documentation
template<class CType>
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const CCopasiVector< CType > & |
d |
|
) |
| [friend] |
ostream operator
- Parameters:
-
std::ostream | & os |
const | CCopasiVector<CType> & d |
- Returns:
- std::ostream & os
The documentation for this class was generated from the following file: