|
copasi API
0.1
|
#include <CCopasiVector.h>
Public Types | |
| typedef std::vector< CType * > ::value_type | value_type |
| typedef std::vector< CType * > ::iterator | iterator |
| typedef std::vector< CType * > ::const_iterator | const_iterator |
Public Member Functions | |
| CCopasiVectorN (const std::string &name="NoName", const CCopasiContainer *pParent=NULL) | |
| CCopasiVectorN (const CCopasiVectorN< CType > &src, const CCopasiContainer *pParent=NULL) | |
| virtual | ~CCopasiVectorN () |
| CCopasiVectorN< CType > & | operator= (const std::vector< CType * > &rhs) |
| virtual bool | add (const CType &src) |
| virtual bool | add (CType *src, const bool &adopt=false) |
| virtual void | remove (const std::string &name) |
| value_type & | operator[] (const unsigned C_INT32 &index) |
| const value_type & | operator[] (const unsigned C_INT32 &index) const |
| value_type & | operator[] (const std::string &name) |
| const value_type & | operator[] (const std::string &name) const |
| virtual const CCopasiObject * | getObject (const CCopasiObjectName &name) const |
| virtual unsigned C_INT32 | getIndex (const std::string &name) const |
| typedef std::vector< CType * >::const_iterator CCopasiVectorN< CType >::const_iterator |
Reimplemented from CCopasiVector< CType >.
Reimplemented in CCopasiVectorNS< CType >, CCopasiVectorNS< CReaction >, CCopasiVectorNS< CFunctionParameter >, CCopasiVectorNS< CCompartment >, and CCopasiVectorNS< CMetab >.
| typedef std::vector< CType * >::iterator CCopasiVectorN< CType >::iterator |
Reimplemented from CCopasiVector< CType >.
Reimplemented in CCopasiVectorNS< CType >, CCopasiVectorNS< CReaction >, CCopasiVectorNS< CFunctionParameter >, CCopasiVectorNS< CCompartment >, and CCopasiVectorNS< CMetab >.
| typedef std::vector< CType * >::value_type CCopasiVectorN< CType >::value_type |
Reimplemented from CCopasiVector< CType >.
Reimplemented in CCopasiVectorNS< CType >, CCopasiVectorNS< CReaction >, CCopasiVectorNS< CFunctionParameter >, CCopasiVectorNS< CCompartment >, and CCopasiVectorNS< CMetab >.
| CCopasiVectorN< CType >::CCopasiVectorN | ( | const std::string & | name = "NoName", |
| const CCopasiContainer * | pParent = NULL |
||
| ) | [inline] |
Default constructor
| const | std::string & name (Default: "NoName") |
| const | CCopasiContainer * pParent (Default: NULL) |
| CCopasiVectorN< CType >::CCopasiVectorN | ( | const CCopasiVectorN< CType > & | src, |
| const CCopasiContainer * | pParent = NULL |
||
| ) | [inline] |
Copy constructor
| const | CCopasiVectorN < CType > & src |
| const | CCopasiContainer * pParent (Default: NULL) |
| virtual CCopasiVectorN< CType >::~CCopasiVectorN | ( | ) | [inline, virtual] |
Destructor
| virtual bool CCopasiVectorN< CType >::add | ( | const CType & | src | ) | [inline, virtual] |
Add a copy of the object to the end of the vector.
| const | CType & src |
Reimplemented from CCopasiVector< CType >.
| virtual bool CCopasiVectorN< CType >::add | ( | CType * | src, |
| const 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.
| CType | * src |
| const | bool & adopt (Default: false) |
| virtual unsigned C_INT32 CCopasiVectorN< CType >::getIndex | ( | const std::string & | name | ) | const [inline, virtual] |
Retrieve the index of the named object in the vector. If an object with the given name is not found C_INVALID_INDEX is returned.
| const | std::string & name |
| virtual const CCopasiObject* CCopasiVectorN< CType >::getObject | ( | const CCopasiObjectName & | name | ) | const [inline, virtual] |
Retrieve a pointer to the named object.
| const | std::string & name |
Reimplemented from CCopasiVector< CType >.
| CCopasiVectorN< CType >& CCopasiVectorN< CType >::operator= | ( | const std::vector< CType * > & | rhs | ) | [inline] |
Assignment operator.
| const | std::vector< CType * > & rhs |
Reimplemented from CCopasiVector< CType >.
| value_type& CCopasiVectorN< CType >::operator[] | ( | const unsigned C_INT32 & | index | ) | [inline] |
Retrieve the indexed object.
| const | unsigned C_INT32 & index |
Reimplemented from CCopasiVector< CType >.
| const value_type& CCopasiVectorN< CType >::operator[] | ( | const unsigned C_INT32 & | index | ) | const [inline] |
Retrieve the indexed object.
| const | unsigned C_INT32 & index |
Reimplemented from CCopasiVector< CType >.
| value_type& CCopasiVectorN< CType >::operator[] | ( | const std::string & | name | ) | [inline] |
Retrieve the named object.
| const | std::string & name |
| const value_type& CCopasiVectorN< CType >::operator[] | ( | const std::string & | name | ) | const [inline] |
Retrieve the named object.
| const | std::string & name |
| virtual void CCopasiVectorN< CType >::remove | ( | const std::string & | name | ) | [inline, virtual] |
Remove the object with the given name from the vector.
| const | std::string & name |
1.7.5.1