COPASI API  4.16.103
Classes | Public Types | Public Member Functions | List of all members
CCallParameters< Type > Class Template Reference

#include <CCallParameters.h>

Inheritance diagram for CCallParameters< Type >:
Inheritance graph
[legend]
Collaboration diagram for CCallParameters< Type >:
Collaboration graph
[legend]

Classes

union  UType
 

Public Types

typedef std::vector< UType >
::const_iterator 
const_iterator
 

Public Member Functions

const_iterator begin () const
 
 CCallParameters (const size_t &size=0)
 
 CCallParameters (const CCallParameters &src)
 
void clear ()
 
const_iterator end () const
 
UTypeoperator[] (const size_t &index)
 
const UTypeoperator[] (const size_t &index) const
 
void push_back (const Type *value)
 
void push_back (CCallParameters< Type > *vector)
 
void resize (const size_t &size)
 
size_t size () const
 
 ~CCallParameters ()
 

Detailed Description

template<typename Type>
class CCallParameters< Type >

CFunctionParameterMap

Created for Copasi by Stefan Hoops (C) Stefan Hoops 2002 CCallParameterPointers

This is what is actually passed to a function. Some of the void* can be pointers to vector<const CCopasiObject*>

Definition at line 40 of file CCallParameters.h.

Member Typedef Documentation

template<typename Type>
typedef std::vector< UType >::const_iterator CCallParameters< Type >::const_iterator

Definition at line 50 of file CCallParameters.h.

Constructor & Destructor Documentation

template<typename Type>
CCallParameters< Type >::CCallParameters ( const size_t &  size = 0)
inline

Definition at line 54 of file CCallParameters.h.

54  :
55  std::vector<void *>(size)
56  {}
size_t size() const
template<typename Type>
CCallParameters< Type >::CCallParameters ( const CCallParameters< Type > &  src)
inline

Definition at line 58 of file CCallParameters.h.

58  :
59  std::vector<void *>(src)
60  {}
template<typename Type>
CCallParameters< Type >::~CCallParameters ( )
inline

Definition at line 62 of file CCallParameters.h.

62 {}

Member Function Documentation

template<typename Type>
const_iterator CCallParameters< Type >::begin ( ) const
inline
template<typename Type>
void CCallParameters< Type >::clear ( )
inline

Definition at line 82 of file CCallParameters.h.

Referenced by CFunctionParameterMap::clearCallParameter(), and CFunctionParameterMap::clearCallParameters().

83  {((std::vector<void *> *) this)->clear();}
template<typename Type>
const_iterator CCallParameters< Type >::end ( ) const
inline
template<typename Type>
UType& CCallParameters< Type >::operator[] ( const size_t &  index)
inline

Definition at line 88 of file CCallParameters.h.

89  {return (*(std::vector< UType > *)this)[index];}
template<typename Type>
const UType& CCallParameters< Type >::operator[] ( const size_t &  index) const
inline

Definition at line 91 of file CCallParameters.h.

92  {return (*(const std::vector< UType > *)this)[index];}
template<typename Type>
void CCallParameters< Type >::push_back ( const Type *  value)
inline

Definition at line 76 of file CCallParameters.h.

Referenced by CFunctionParameterMap::addCallParameter().

77  {((std::vector<const Type *> *) this)->push_back(value);}
char * value
Definition: stdsoap2.h:1338
template<typename Type>
void CCallParameters< Type >::push_back ( CCallParameters< Type > *  vector)
inline

Definition at line 79 of file CCallParameters.h.

80  {((std::vector<void *> *) this)->push_back(vector);}
template<typename Type>
void CCallParameters< Type >::resize ( const size_t &  size)
inline

Definition at line 64 of file CCallParameters.h.

Referenced by CFunctionParameterMap::initCallParameters().

65  {
66  ((std::vector<void *> *) this)->resize(size);
67 
68  std::vector<void *>::iterator it
69  = ((std::vector<void *> *) this)->begin();
70  typename std::vector<void *>::iterator end
71  = ((std::vector<void *> *) this)->end();
72 
73  for (; it != end; ++it) *it = NULL;
74  }
size_t size() const
const_iterator end() const
template<typename Type>
size_t CCallParameters< Type >::size ( ) const
inline

Definition at line 85 of file CCallParameters.h.

Referenced by CFunctionParameterMap::checkCallParameters(), CFunctionParameterMap::getObjects(), and main().

86  {return ((std::vector<void *> *) this)->size();}

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