COPASI API  4.16.103
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RefreshTemplate< CClass > Class Template Reference

#include <CCopasiObject.h>

Inheritance diagram for RefreshTemplate< CClass >:
Inheritance graph
[legend]
Collaboration diagram for RefreshTemplate< CClass >:
Collaboration graph
[legend]

Public Member Functions

virtual CCopasiObjectgetObject () const
 
virtual bool isEqual (Refresh *const rhs) const
 
virtual void operator() (void)
 
 RefreshTemplate (CClass *pInstance, void(CClass::*method)(void))
 
virtual ~RefreshTemplate ()
 
- Public Member Functions inherited from Refresh
virtual ~Refresh ()
 

Private Member Functions

 RefreshTemplate ()
 

Private Attributes

void(CClass::* mMethod )(void)
 
CClass * mpInstance
 

Additional Inherited Members

- Protected Member Functions inherited from Refresh
 Refresh ()
 

Detailed Description

template<typename CClass>
class RefreshTemplate< CClass >

Definition at line 110 of file CCopasiObject.h.

Constructor & Destructor Documentation

template<typename CClass>
RefreshTemplate< CClass >::RefreshTemplate ( )
inlineprivate

Definition at line 117 of file CCopasiObject.h.

117  :
118  Refresh(),
119  mpInstance(NULL),
120  mMethod(NULL)
121  {}
void(CClass::* mMethod)(void)
CClass * mpInstance
template<typename CClass>
RefreshTemplate< CClass >::RefreshTemplate ( CClass *  pInstance,
void(CClass::*)(void method 
)
inline

Definition at line 126 of file CCopasiObject.h.

126  :
127  Refresh(),
128  mpInstance(pInstance),
129  mMethod(method)
130  {}
void(CClass::* mMethod)(void)
CClass * mpInstance
template<typename CClass>
virtual RefreshTemplate< CClass >::~RefreshTemplate ( )
inlinevirtual

Definition at line 132 of file CCopasiObject.h.

132 {};

Member Function Documentation

template<typename CClass>
virtual CCopasiObject* RefreshTemplate< CClass >::getObject ( ) const
inlinevirtual

Reimplemented from Refresh.

Definition at line 138 of file CCopasiObject.h.

References RefreshTemplate< CClass >::mpInstance.

139  {return mpInstance;}
CClass * mpInstance
template<typename CClass>
virtual bool RefreshTemplate< CClass >::isEqual ( Refresh *const  rhs) const
inlinevirtual

Reimplemented from Refresh.

Definition at line 141 of file CCopasiObject.h.

References RefreshTemplate< CClass >::mMethod, and RefreshTemplate< CClass >::mpInstance.

142  {
143  const RefreshTemplate< CClass > * pRhs =
144  static_cast< RefreshTemplate< CClass > * >(rhs);
145 
146  return (mpInstance == pRhs->mpInstance && mMethod == pRhs->mMethod);
147  }
void(CClass::* mMethod)(void)
CClass * mpInstance
template<typename CClass>
virtual void RefreshTemplate< CClass >::operator() ( void  )
inlinevirtual

Reimplemented from Refresh.

Definition at line 135 of file CCopasiObject.h.

References RefreshTemplate< CClass >::mMethod, and RefreshTemplate< CClass >::mpInstance.

136  {(*mpInstance.*mMethod)();} // execute member function
void(CClass::* mMethod)(void)
CClass * mpInstance

Member Data Documentation

template<typename CClass>
void(CClass::* RefreshTemplate< CClass >::mMethod)(void)
private
template<typename CClass>
CClass* RefreshTemplate< CClass >::mpInstance
private

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