COPASI API  4.16.103
Public Types | Public Member Functions | Private Member Functions | List of all members
COptions::COptionValueTemplate< CType > Class Template Reference
Inheritance diagram for COptions::COptionValueTemplate< CType >:
Inheritance graph
[legend]
Collaboration diagram for COptions::COptionValueTemplate< CType >:
Collaboration graph
[legend]

Public Types

typedef CType valueType
 
- Public Types inherited from COptions::COptionValue
typedef void valueType
 

Public Member Functions

 COptionValueTemplate (const valueType &value)
 
virtual ~COptionValueTemplate ()
 
- Public Member Functions inherited from COptions::COptionValue
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 ()
 

Private Member Functions

 COptionValueTemplate ()
 

Additional Inherited Members

- Protected Member Functions inherited from COptions::COptionValue
 COptionValue ()
 
- Protected Attributes inherited from COptions::COptionValue
valueTypempValue
 

Detailed Description

template<class CType>
class COptions::COptionValueTemplate< CType >

Definition at line 76 of file COptions.h.

Member Typedef Documentation

template<class CType >
typedef CType COptions::COptionValueTemplate< CType >::valueType

Definition at line 79 of file COptions.h.

Constructor & Destructor Documentation

template<class CType >
COptions::COptionValueTemplate< CType >::COptionValueTemplate ( )
inlineprivate

Definition at line 83 of file COptions.h.

References CONSTRUCTOR_TRACE, and COptions::COptionValue::mpValue.

83  :
84  COptionValue()
85  {
87  mpValue = new valueType;
88  }
valueType * mpValue
Definition: COptions.h:49
#define CONSTRUCTOR_TRACE
Definition: copasi.h:202
template<class CType >
COptions::COptionValueTemplate< CType >::COptionValueTemplate ( const valueType value)
inline

Definition at line 91 of file COptions.h.

References CONSTRUCTOR_TRACE, and COptions::COptionValue::mpValue.

91  :
92  COptionValue()
93  {
95  mpValue = new valueType;
96  *(valueType *) mpValue = value;
97  }
valueType * mpValue
Definition: COptions.h:49
#define CONSTRUCTOR_TRACE
Definition: copasi.h:202
template<class CType >
virtual COptions::COptionValueTemplate< CType >::~COptionValueTemplate ( )
inlinevirtual

Definition at line 99 of file COptions.h.

References DESTRUCTOR_TRACE, and COptions::COptionValue::mpValue.

100  {
101  if (mpValue) {delete(valueType *) mpValue; mpValue = NULL;}
102 
104  }
#define DESTRUCTOR_TRACE
Definition: copasi.h:206
valueType * mpValue
Definition: COptions.h:49

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