#include <SEArray.h>

Inherits SEProperty.

Inherited by SEArrayPressure, SEArrayVolume, and SEArrayVolumePerTime.

Public Member Functions

 SEArray ()
 
 ~SEArray ()
 
virtual std::shared_ptr< CDM::PropertyData > UnloadData ()
 
std::shared_ptr< CDM::ArrayData > Unload ()
 
void Unload (std::shared_ptr< CDM::ArrayData > data)
 
bool Load (std::shared_ptr< CDM::ArrayData > in)
 
virtual bool IsValid ()
 
virtual void Invalidate ()
 
virtual bool IsValidUnit (const std::string &unit)
 
virtual bool IsValidUnit (const std::shared_ptr< CCompoundUnit > &unit)
 
unsigned int Size ()
 
std::string GetStringData (const std::string &unit=SEScalar::unitless)
 
bool SetStringData (const std::string &data, const std::string &unit=SEScalar::unitless)
 
bool SetDoubleData (double *data, int len, const std::string &unit=SEScalar::unitless)
 
bool GetDoubleData (double *&data, int &len, const std::string &unit=SEScalar::unitless)
 
double GetIndex (unsigned int idx, const std::string &unit=SEScalar::unitless)
 
void SetIndex (unsigned int idx, double value, const std::string &unit=SEScalar::unitless)
 
bool Append (double value, const std::string &unit=SEScalar::unitless)
 
bool SetVectorData (std::vector< double > data, const std::string &unit=SEScalar::unitless)
 
bool GetVectorData (std::vector< double > data, const std::string &unit=SEScalar::unitless)
 
- Public Member Functions inherited from SEProperty
 SEProperty ()
 
virtual ~SEProperty ()
 
virtual void Clear ()
 
virtual bool IsValid () const =0
 

Protected Attributes

std::vector< double > m_dData
 
std::shared_ptr< CCompoundUnitm_unit
 

Constructor & Destructor Documentation

◆ SEArray()

SEArray::SEArray ( )

◆ ~SEArray()

SEArray::~SEArray ( )

Member Function Documentation

◆ Append()

bool SEArray::Append ( double  value,
const std::string &  unit = SEScalar::unitless 
)

◆ GetDoubleData()

bool SEArray::GetDoubleData ( double *&  data,
int &  len,
const std::string &  unit = SEScalar::unitless 
)

Returns a Copy of the data, caller is responsable for cleaning up the array recieved

◆ GetIndex()

double SEArray::GetIndex ( unsigned int  idx,
const std::string &  unit = SEScalar::unitless 
)

◆ GetStringData()

std::string SEArray::GetStringData ( const std::string &  unit = SEScalar::unitless)

◆ GetVectorData()

bool SEArray::GetVectorData ( std::vector< double >  data,
const std::string &  unit = SEScalar::unitless 
)

◆ Invalidate()

void SEArray::Invalidate ( )
virtual

Implements SEProperty.

◆ IsValid()

bool SEArray::IsValid ( )
virtual

◆ IsValidUnit() [1/2]

virtual bool SEArray::IsValidUnit ( const std::string &  unit)
inlinevirtual

◆ IsValidUnit() [2/2]

virtual bool SEArray::IsValidUnit ( const std::shared_ptr< CCompoundUnit > &  unit)
virtual

◆ Load()

bool SEArray::Load ( std::shared_ptr< CDM::ArrayData >  in)

◆ SetDoubleData()

bool SEArray::SetDoubleData ( double *  data,
int  len,
const std::string &  unit = SEScalar::unitless 
)

◆ SetIndex()

void SEArray::SetIndex ( unsigned int  idx,
double  value,
const std::string &  unit = SEScalar::unitless 
)

◆ SetStringData()

bool SEArray::SetStringData ( const std::string &  data,
const std::string &  unit = SEScalar::unitless 
)

◆ SetVectorData()

bool SEArray::SetVectorData ( std::vector< double >  data,
const std::string &  unit = SEScalar::unitless 
)

◆ Size()

unsigned int SEArray::Size ( )

◆ Unload() [1/2]

std::shared_ptr< CDM::ArrayData > SEArray::Unload ( )

◆ Unload() [2/2]

void SEArray::Unload ( std::shared_ptr< CDM::ArrayData >  data)

◆ UnloadData()

std::shared_ptr< CDM::PropertyData > SEArray::UnloadData ( )
virtual

Member Data Documentation

◆ m_dData

std::vector<double> SEArray::m_dData
protected

◆ m_unit

std::shared_ptr<CCompoundUnit> SEArray::m_unit
protected