Public Member Functions | List of all members
imeas::CGeneralDataSequence Class Reference

General implementation of sample sequence interface IDataSequence. More...

#include <CGeneralDataSequence.h>

Inheritance diagram for imeas::CGeneralDataSequence:
imeas::IDataSequence imath::TISampledFunction< ArgumentDimensions, ResultDimensions > iser::ISerializable imath::TIMathFunction< istd::TIndex< ArgumentDimensions >, TVector< ResultDimensions > > istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Member Functions

 CGeneralDataSequence ()
 
const double * GetSamplesBuffer () const
 
double * GetSamplesBuffer ()
 
int GetSamplesBufferSize () const
 
virtual bool CreateSequence (int samplesCount, int channelsCount=1)
 Create container for sample sequence with specified number of samples, channels and sample depth. More...
 
virtual bool CreateSequenceWithInfo (const istd::TTransPtr< const IDataSequenceInfo > &infoPtr, int samplesCount=-1, int channelsCount=-1)
 Create sequence and set the info object. More...
 
virtual const IDataSequenceInfoGetSequenceInfo () const
 Get additional information about this sequence. More...
 
virtual bool IsEmpty () const
 Return true if this sequence has no sample. More...
 
virtual void ResetSequence ()
 Reset this sequence. More...
 
virtual int GetSamplesCount () const
 Get size of this raster sequence. More...
 
virtual int GetChannelsCount () const
 Get number of channels. More...
 
virtual double GetSample (int index, int channel=0) const
 Get sample value at specified index. More...
 
virtual void SetSample (int index, int channel, double value)
 Set sample value at specified index. More...
 
virtual bool CreateFunction (double *dataPtr, const ArgumentType &sizes)
 
virtual int GetTotalSamplesCount () const
 
virtual int GetGridSize (int dimensionIndex) const
 
virtual istd::CRange GetLogicalRange (int dimensionIndex) const
 
virtual istd::CRange GetResultValueRange (int dimensionIndex, int resultDimension=-1) const
 
virtual bool GetValueAt (const ArgumentType &argument, ResultType &result) const
 
virtual ResultType GetValueAt (const ArgumentType &argument) const
 
virtual bool Serialize (iser::IArchive &archive)
 
virtual int GetSupportedOperations () const
 
virtual bool CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 
virtual istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 

Detailed Description

General implementation of sample sequence interface IDataSequence.

Definition at line 22 of file CGeneralDataSequence.h.

Constructor & Destructor Documentation

imeas::CGeneralDataSequence::CGeneralDataSequence ( )

Member Function Documentation

virtual istd::IChangeable* imeas::CGeneralDataSequence::CloneMe ( CompatibilityMode  mode = CM_WITHOUT_REFS) const
virtual
virtual bool imeas::CGeneralDataSequence::CopyFrom ( const istd::IChangeable object,
CompatibilityMode  mode = CM_WITHOUT_REFS 
)
virtual
virtual bool imeas::CGeneralDataSequence::CreateFunction ( double *  dataPtr,
const ArgumentType &  sizes 
)
virtual
virtual bool imeas::CGeneralDataSequence::CreateSequence ( int  samplesCount,
int  channelsCount = 1 
)
virtual

Create container for sample sequence with specified number of samples, channels and sample depth.

Parameters
samplesCountnumber of samples.
channelsCountnumber of channels.
Returns
true if sample sequence was created correctly.

Implements imeas::IDataSequence.

virtual bool imeas::CGeneralDataSequence::CreateSequenceWithInfo ( const istd::TTransPtr< const IDataSequenceInfo > &  infoPtr,
int  samplesCount = -1,
int  channelsCount = -1 
)
virtual

Create sequence and set the info object.

Parameters
infoPtrsequence info object.
samplesCountnumber of samples. If it is negative, default value will be taken.
channelsCountnumber of channels. If it is negative, default value will be taken.

Implements imeas::IDataSequence.

virtual int imeas::CGeneralDataSequence::GetChannelsCount ( ) const
virtual

Get number of channels.

Implements imeas::IDataSequence.

virtual int imeas::CGeneralDataSequence::GetGridSize ( int  dimensionIndex) const
virtual
virtual istd::CRange imeas::CGeneralDataSequence::GetLogicalRange ( int  dimensionIndex) const
virtual
virtual istd::CRange imeas::CGeneralDataSequence::GetResultValueRange ( int  dimensionIndex,
int  resultDimension = -1 
) const
virtual
virtual double imeas::CGeneralDataSequence::GetSample ( int  index,
int  channel = 0 
) const
virtual

Get sample value at specified index.

Implements imeas::IDataSequence.

const double * imeas::CGeneralDataSequence::GetSamplesBuffer ( ) const
inline

Definition at line 78 of file CGeneralDataSequence.h.

double * imeas::CGeneralDataSequence::GetSamplesBuffer ( )
inline

Definition at line 84 of file CGeneralDataSequence.h.

int imeas::CGeneralDataSequence::GetSamplesBufferSize ( ) const
inline

Definition at line 90 of file CGeneralDataSequence.h.

virtual int imeas::CGeneralDataSequence::GetSamplesCount ( ) const
virtual

Get size of this raster sequence.

Implements imeas::IDataSequence.

virtual const IDataSequenceInfo* imeas::CGeneralDataSequence::GetSequenceInfo ( ) const
virtual

Get additional information about this sequence.

Implements imeas::IDataSequence.

virtual int imeas::CGeneralDataSequence::GetSupportedOperations ( ) const
virtual
virtual int imeas::CGeneralDataSequence::GetTotalSamplesCount ( ) const
virtual
virtual bool imeas::CGeneralDataSequence::GetValueAt ( const ArgumentType &  argument,
ResultType &  result 
) const
virtual
virtual ResultType imeas::CGeneralDataSequence::GetValueAt ( const ArgumentType &  argument) const
virtual
virtual bool imeas::CGeneralDataSequence::IsEmpty ( ) const
virtual

Return true if this sequence has no sample.

Implements imeas::IDataSequence.

virtual void imeas::CGeneralDataSequence::ResetSequence ( )
virtual

Reset this sequence.

After this operation sequence is set to initial state.

Implements imeas::IDataSequence.

virtual bool imeas::CGeneralDataSequence::Serialize ( iser::IArchive archive)
virtual
virtual void imeas::CGeneralDataSequence::SetSample ( int  index,
int  channel,
double  value 
)
virtual

Set sample value at specified index.

Implements imeas::IDataSequence.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy