COPASI API  4.16.103
Public Member Functions | Private Attributes | List of all members
SpecificUpdateMethod< CType, VType > Class Template Reference

#include <CCopasiObject.h>

Inheritance diagram for SpecificUpdateMethod< CType, VType >:
Inheritance graph
[legend]
Collaboration diagram for SpecificUpdateMethod< CType, VType >:
Collaboration graph
[legend]

Public Member Functions

virtual void operator() (const VType &value)
 
 SpecificUpdateMethod (CType *pType, void(CType::*method)(const VType &))
 
virtual ~SpecificUpdateMethod ()
 
- Public Member Functions inherited from UpdateMethod
virtual void operator() (const C_FLOAT64 &C_UNUSED(value))
 
virtual void operator() (const C_INT32 &C_UNUSED(value))
 
virtual void operator() (const bool &C_UNUSED(value))
 
virtual ~UpdateMethod ()
 

Private Attributes

void(CType::* mMethod )(const VType &)
 
CType * mpType
 

Detailed Description

template<class CType, class VType>
class SpecificUpdateMethod< CType, VType >

Definition at line 67 of file CCopasiObject.h.

Constructor & Destructor Documentation

template<class CType, class VType>
SpecificUpdateMethod< CType, VType >::SpecificUpdateMethod ( CType *  pType,
void(CType::*)(const VType &)  method 
)
inline

Definition at line 77 of file CCopasiObject.h.

References SpecificUpdateMethod< CType, VType >::mMethod, and SpecificUpdateMethod< CType, VType >::mpType.

79  {
80  mpType = pType;
81  mMethod = method;
82  };
void(CType::* mMethod)(const VType &)
Definition: CCopasiObject.h:70
template<class CType, class VType>
virtual SpecificUpdateMethod< CType, VType >::~SpecificUpdateMethod ( )
inlinevirtual

Definition at line 84 of file CCopasiObject.h.

84 {};

Member Function Documentation

template<class CType, class VType>
virtual void SpecificUpdateMethod< CType, VType >::operator() ( const VType &  value)
inlinevirtual

Definition at line 87 of file CCopasiObject.h.

References SpecificUpdateMethod< CType, VType >::mMethod, and SpecificUpdateMethod< CType, VType >::mpType.

88  {(*mpType.*mMethod)(value);} ; // execute member function
void(CType::* mMethod)(const VType &)
Definition: CCopasiObject.h:70

Member Data Documentation

template<class CType, class VType>
void(CType::* SpecificUpdateMethod< CType, VType >::mMethod)(const VType &)
private
template<class CType, class VType>
CType* SpecificUpdateMethod< CType, VType >::mpType
private

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