COPASI API  4.16.103
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
COptions::COptionValue Class Reference
Inheritance diagram for COptions::COptionValue:
Inheritance graph
[legend]

Public Types

typedef void valueType
 

Public Member Functions

template<class CType >
bool compareValue (CType &value) const
 
template<class CType >
void getValue (CType &value) const
 
template<class CType >
void setValue (const CType &value)
 
virtual ~COptionValue ()
 

Protected Member Functions

 COptionValue ()
 

Protected Attributes

valueTypempValue
 

Detailed Description

Definition at line 42 of file COptions.h.

Member Typedef Documentation

Definition at line 45 of file COptions.h.

Constructor & Destructor Documentation

COptions::COptionValue::COptionValue ( )
inlineprotected

Definition at line 53 of file COptions.h.

References CONSTRUCTOR_TRACE.

53  :
54  mpValue(NULL)
valueType * mpValue
Definition: COptions.h:49
#define CONSTRUCTOR_TRACE
Definition: copasi.h:202
virtual COptions::COptionValue::~COptionValue ( )
inlinevirtual

Definition at line 58 of file COptions.h.

References DESTRUCTOR_TRACE.

#define DESTRUCTOR_TRACE
Definition: copasi.h:206

Member Function Documentation

template<class CType >
bool COptions::COptionValue::compareValue ( CType &  value) const
inline

Definition at line 69 of file COptions.h.

References mpValue.

70  {
71  if (this && mpValue) return (value == *(CType *) mpValue);
72  else return false;
73  }
valueType * mpValue
Definition: COptions.h:49
template<class CType >
void COptions::COptionValue::getValue ( CType &  value) const
inline

Definition at line 63 of file COptions.h.

References mpValue.

64  {
65  if (this && mpValue) value = *(CType *) mpValue;
66  else value = CType();
67  }
valueType * mpValue
Definition: COptions.h:49
template<class CType >
void COptions::COptionValue::setValue ( const CType &  value)
inline

Definition at line 60 of file COptions.h.

References mpValue.

61  {*(CType *) mpValue = value;}
valueType * mpValue
Definition: COptions.h:49

Member Data Documentation

valueType* COptions::COptionValue::mpValue
protected

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