COPASI API
4.40.278
|
#include <CDataValue.h>
Public Types | |
enum | Type { DOUBLE = 0 , INT , UINT , BOOL , STRING , DATA , DATA_VALUES , DATA_VECTOR , VOID_POINTER , INVALID , __SIZE } |
Public Member Functions | |
CDataValue (const bool &value) | |
CDataValue (const C_FLOAT64 &value) | |
CDataValue (const C_INT32 &value) | |
CDataValue (const CData &value) | |
CDataValue (const CDataValue &src) | |
CDataValue (const char *value) | |
CDataValue (const std::string &value) | |
CDataValue (const std::vector< CData > &value) | |
CDataValue (const std::vector< CDataValue > &value) | |
CDataValue (const Type &type=INVALID) | |
CDataValue (const unsigned C_INT32 &value) | |
CDataValue (const void *pVoidPointer) | |
const Type & | getType () const |
bool | operator!= (const CDataValue &rhs) const |
CDataValue & | operator= (const bool &value) |
CDataValue & | operator= (const C_FLOAT64 &value) |
CDataValue & | operator= (const C_INT32 &value) |
CDataValue & | operator= (const CData &value) |
CDataValue & | operator= (const CDataValue &rhs) |
CDataValue & | operator= (const std::string &value) |
CDataValue & | operator= (const std::vector< CData > &value) |
CDataValue & | operator= (const std::vector< CDataValue > &value) |
CDataValue & | operator= (const unsigned C_INT32 &value) |
CDataValue & | operator= (const void *pVoidPointer) |
bool | operator== (const CDataValue &rhs) const |
const void * | raw () const |
const bool & | toBool () const |
const CData & | toData () const |
const std::vector< CDataValue > & | toDataValues () const |
const std::vector< CData > & | toDataVector () const |
const C_FLOAT64 & | toDouble () const |
const C_INT32 & | toInt () const |
size_t | toSizeT () const |
const std::string & | toString () const |
const unsigned C_INT32 & | toUint () const |
const void * | toVoidPointer () const |
~CDataValue () | |
Static Public Attributes | |
static const CEnumAnnotation< std::string, Type > | TypeName |
Private Member Functions | |
void | allocateData (const Type &type) |
void | assignData (const bool &value) |
void | assignData (const C_FLOAT64 &value) |
void | assignData (const C_INT32 &value) |
void | assignData (const CData &value) |
void | assignData (const CDataValue &rhs) |
void | assignData (const std::string &value) |
void | assignData (const std::vector< CData > &value) |
void | assignData (const std::vector< CDataValue > &value) |
void | assignData (const unsigned C_INT32 &value) |
void | assignData (const void *pVoidPointer) |
void | deleteData () |
Private Attributes | |
void * | mpData |
Type | mType |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CDataValue &o) |
std::istream & | operator>> (std::istream &is, CDataValue &i) |
enum CDataValue::Type |
References allocateData().
CDataValue::CDataValue | ( | const CDataValue & | src | ) |
References assignData(), and mType.
CDataValue::CDataValue | ( | const C_FLOAT64 & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const C_INT32 & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const unsigned C_INT32 & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const bool & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const std::string & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const char * | value | ) |
References assignData().
CDataValue::CDataValue | ( | const CData & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const std::vector< CDataValue > & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const std::vector< CData > & | value | ) |
References assignData().
CDataValue::CDataValue | ( | const void * | pVoidPointer | ) |
References assignData().
CDataValue::~CDataValue | ( | ) |
References deleteData().
|
private |
References BOOL, C_FLOAT64, C_INT32, DATA, DATA_VALUES, DATA_VECTOR, deleteData(), DOUBLE, INT, INVALID, mpData, mType, STRING, UINT, and VOID_POINTER.
Referenced by assignData(), and CDataValue().
|
private |
References allocateData(), BOOL, and mpData.
|
private |
References allocateData(), C_FLOAT64, DOUBLE, and mpData.
|
private |
References allocateData(), C_INT32, INT, and mpData.
|
private |
References allocateData(), DATA, and mpData.
|
private |
References BOOL, C_FLOAT64, C_INT32, DATA, DATA_VALUES, DATA_VECTOR, DOUBLE, INT, INVALID, mpData, mType, STRING, UINT, and VOID_POINTER.
Referenced by CDataValue(), and operator=().
|
private |
References allocateData(), mpData, and STRING.
|
private |
References allocateData(), DATA_VECTOR, and mpData.
|
private |
References allocateData(), DATA_VALUES, and mpData.
|
private |
References allocateData(), C_INT32, mpData, and UINT.
|
private |
References allocateData(), mpData, and VOID_POINTER.
|
private |
References BOOL, C_FLOAT64, C_INT32, DATA, DATA_VALUES, DATA_VECTOR, DOUBLE, INT, INVALID, mpData, mType, STRING, UINT, and VOID_POINTER.
Referenced by allocateData(), and ~CDataValue().
const CDataValue::Type & CDataValue::getType | ( | ) | const |
References mType.
Referenced by CModelParameter::applyData(), and CModelParameterGroup::applyData().
bool CDataValue::operator!= | ( | const CDataValue & | rhs | ) | const |
References BOOL, DATA, DATA_VALUES, DATA_VECTOR, DOUBLE, INT, INVALID, mType, raw(), STRING, toBool(), toData(), toDataValues(), toDataVector(), toDouble(), toInt(), toString(), toUint(), toVoidPointer(), UINT, and VOID_POINTER.
CDataValue & CDataValue::operator= | ( | const bool & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const C_FLOAT64 & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const C_INT32 & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const CData & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const CDataValue & | rhs | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const std::string & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const std::vector< CData > & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const std::vector< CDataValue > & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const unsigned C_INT32 & | value | ) |
References assignData().
CDataValue & CDataValue::operator= | ( | const void * | pVoidPointer | ) |
References assignData().
bool CDataValue::operator== | ( | const CDataValue & | rhs | ) | const |
References BOOL, DATA, DATA_VALUES, DATA_VECTOR, DOUBLE, INT, INVALID, mType, raw(), STRING, toBool(), toData(), toDataValues(), toDataVector(), toDouble(), toInt(), toString(), toUint(), toVoidPointer(), UINT, and VOID_POINTER.
const void * CDataValue::raw | ( | ) | const |
References mpData.
Referenced by CCopasiParameter::applyData(), operator!=(), and operator==().
const bool & CDataValue::toBool | ( | ) | const |
References BOOL, mpData, and mType.
Referenced by CFunctionParameter::applyData(), CEvent::applyData(), CReaction::applyData(), CReportDefinition::applyData(), CCopasiTask::applyData(), CModelEntity::applyData(), operator!=(), and operator==().
const CData & CDataValue::toData | ( | ) | const |
References DATA, mpData, and mType.
Referenced by CCompartment::applyData(), CModel::applyData(), CModelParameter::applyData(), CCopasiTask::applyData(), CCompartment::createUndoData(), CModel::createUndoData(), CModelParameter::createUndoData(), CModelParameterSpecies::createUndoData(), CCopasiTask::createUndoData(), operator!=(), operator==(), and CModelParameterSpecies::toData().
const std::vector< CDataValue > & CDataValue::toDataValues | ( | ) | const |
References DATA_VALUES, mpData, and mType.
Referenced by CArrayElementReference::applyData(), CArrayElementReference::fromData(), operator!=(), and operator==().
const std::vector< CData > & CDataValue::toDataVector | ( | ) | const |
References DATA_VECTOR, mpData, and mType.
Referenced by CDataVector< CType >::applyData(), CDataVectorN< CType >::applyData(), CModelParameterGroup::applyData(), CReaction::applyData(), CCopasiParameterGroup::applyData(), CDataObject::applyData(), CReactionInterface::createUndoData(), CModelParameterGroup::createUndoData(), CReaction::createUndoData(), CCopasiParameterGroup::createUndoData(), operator!=(), and operator==().
const C_FLOAT64 & CDataValue::toDouble | ( | ) | const |
References C_FLOAT64, DOUBLE, mpData, and mType.
Referenced by CCompartment::applyData(), CModel::applyData(), CModelParameter::applyData(), CMetab::applyData(), CModelEntity::applyData(), operator!=(), and operator==().
const C_INT32 & CDataValue::toInt | ( | ) | const |
References C_INT32, INT, mpData, and mType.
Referenced by operator!=(), and operator==().
size_t CDataValue::toSizeT | ( | ) | const |
References C_INT32, max, mpData, mType, and UINT.
Referenced by CModelParameter::applyData(), CDataObject::applyData(), CUndoData::getObject(), CDataVector< CType >::insert(), CModelParameterGroup::insert(), CCopasiParameterGroup::insert(), and CUndoData::operator<().
const std::string & CDataValue::toString | ( | ) | const |
References mpData, mType, and STRING.
Referenced by CFunctionParameter::applyData(), CBiologicalDescription::applyData(), CCreator::applyData(), CMIRIAMInfo::applyData(), CModification::applyData(), CReference::applyData(), CAnnotation::applyData(), CCompartment::applyData(), CEventAssignment::applyData(), CEvent::applyData(), CModel::applyData(), CModelParameter::applyData(), CModelValue::applyData(), CReaction::applyData(), CReportDefinition::applyData(), CCopasiTask::applyData(), CUnitDefinition::applyData(), CDataObject::applyData(), CModelEntity::applyData(), CCopasiParameter::applyData(), CUndoData::change(), CCopasiTask::createUndoData(), CCommonName::fromData(), CDataModel::fromData(), CArrayElementReference::fromData(), CDataContainer::fromData(), CDataObject::fromData(), CEvaluationTree::fromData(), CFunctionParameter::fromData(), CLayout::fromData(), CLMetabGlyph::fromData(), CLCompartmentGlyph::fromData(), CLTextGlyph::fromData(), CLGradientBase::fromData(), CLGraphicalObject::fromData(), CLReferenceGlyph::fromData(), CLMetabReferenceGlyph::fromData(), CLGeneralGlyph::fromData(), CLReactionGlyph::fromData(), CCreator::fromData(), CModification::fromData(), CReference::fromData(), CChemEqElement::fromData(), CCompartment::fromData(), CEventAssignment::fromData(), CEvent::fromData(), CMetab::fromData(), CMetabOld::fromData(), CModel::fromData(), CModelParameter::fromData(), CModelParameterSet::fromData(), CModelValue::fromData(), CMoiety::fromData(), CReaction::fromData(), CFittingPoint::fromData(), CPlotItem::fromData(), CPlotSpecification::fromData(), CReportDefinition::fromData(), CCopasiParameter::fromData(), CCopasiTask::fromData(), CSlider::fromData(), CUnitDefinition::fromData(), CUndoData::getObject(), CUndoData::getObjectDisplayName(), CUndoData::getObjectType(), CUndoData::getParent(), CDataVector< CType >::insert(), CModelParameterSet::insert(), operator!=(), CUndoData::operator<(), and operator==().
const unsigned C_INT32 & CDataValue::toUint | ( | ) | const |
References C_INT32, max, mpData, mType, and UINT.
Referenced by CCompartment::applyData(), CReportDefinition::applyData(), CEvaluationTree::fromData(), CPlotItem::fromData(), CPlotSpecification::fromData(), operator!=(), and operator==().
const void * CDataValue::toVoidPointer | ( | ) | const |
References mpData, mType, and VOID_POINTER.
Referenced by CDataVector< CType >::insert(), operator!=(), and operator==().
|
friend |
|
friend |
|
private |
Referenced by allocateData(), assignData(), deleteData(), raw(), toBool(), toData(), toDataValues(), toDataVector(), toDouble(), toInt(), toSizeT(), toString(), toUint(), and toVoidPointer().
|
private |
Referenced by allocateData(), assignData(), CDataValue(), deleteData(), getType(), operator!=(), operator==(), toBool(), toData(), toDataValues(), toDataVector(), toDouble(), toInt(), toSizeT(), toString(), toUint(), and toVoidPointer().
|
static |