stromx  0.8.0
Public Member Functions | Static Public Attributes | List of all members
stromx::runtime::Primitive< repr_t, val_t > Class Template Reference

Primitive data value. More...

#include <Primitive.h>

Inheritance diagram for stromx::runtime::Primitive< repr_t, val_t >:
stromx::runtime::Data stromx::runtime::DataInterface

Public Member Functions

 Primitive ()
 
 Primitive (const repr_t value)
 
virtual const std::string & type () const
 
virtual const Versionversion () const
 
virtual const std::string & package () const
 
virtual const VariantHandlevariant () const
 
virtual Dataclone () const
 
virtual void serialize (OutputProvider &out) const
 
virtual void deserialize (InputProvider &in, const Version &version)
 
const repr_t get () const
 
 operator repr_t () const
 
const Primitive operator= (const repr_t value)
 
- Public Member Functions inherited from stromx::runtime::DataInterface
bool isVariant (const VariantInterface &v) const
 

Static Public Attributes

static const Primitive MIN = Int8(INT8_MIN)
 
static const Primitive MAX = Int8(INT8_MAX)
 

Detailed Description

template<class repr_t, class val_t>
class stromx::runtime::Primitive< repr_t, val_t >

Primitive data value.

Constructor & Destructor Documentation

§ Primitive() [1/2]

template<class repr_t, class val_t>
stromx::runtime::Primitive< repr_t, val_t >::Primitive ( )
inlineexplicit

Constructs a primitive and initializes it with 0.

§ Primitive() [2/2]

template<class repr_t, class val_t>
stromx::runtime::Primitive< repr_t, val_t >::Primitive ( const repr_t  value)
inlineexplicit

Constructs a primitive and initializes it with value.

Member Function Documentation

§ clone()

template<class repr_t, class val_t>
virtual Data* stromx::runtime::Primitive< repr_t, val_t >::clone ( ) const
inlinevirtual

Returns a copy of the data object, i.e. a object of the same type is allocated and the data of the original object is copied to the new object. A pointer to the new object is returned.

Implements stromx::runtime::DataInterface.

Reimplemented in stromx::runtime::Enum.

§ deserialize()

STROMX_RUNTIME_API void stromx::runtime::Float32::deserialize ( InputProvider in,
const Version version 
)
virtual

Deserializes a data object.

Parameters
outThe input which the data obtained from.
versionThe version of the data class which serialized the input.

Reimplemented from stromx::runtime::Data.

§ get()

template<class repr_t, class val_t>
const repr_t stromx::runtime::Primitive< repr_t, val_t >::get ( ) const
inline

Returns the value of the primitive.

§ operator repr_t()

template<class repr_t, class val_t>
stromx::runtime::Primitive< repr_t, val_t >::operator repr_t ( ) const
inline

Returns the value of the primitive.

§ operator=()

template<class repr_t, class val_t>
const Primitive stromx::runtime::Primitive< repr_t, val_t >::operator= ( const repr_t  value)
inline

Assigns value to the primitive.

§ package()

template<class repr_t, class val_t>
virtual const std::string& stromx::runtime::Primitive< repr_t, val_t >::package ( ) const
inlinevirtual

Returns the package of the class of this data object.

Implements stromx::runtime::DataInterface.

§ serialize()

STROMX_RUNTIME_API void stromx::runtime::Float32::serialize ( OutputProvider out) const
virtual

Serializes this data object.

Parameters
outThe output which the data is sent to.

Reimplemented from stromx::runtime::Data.

§ type()

template<class repr_t, class val_t>
virtual const std::string& stromx::runtime::Primitive< repr_t, val_t >::type ( ) const
inlinevirtual

Returns the name of the class of this data object.

Implements stromx::runtime::DataInterface.

Reimplemented in stromx::runtime::Enum.

§ variant()

STROMX_RUNTIME_API const VariantHandle & stromx::runtime::Float32::variant ( ) const
virtual

Returns the data variant of this data object.

Implements stromx::runtime::DataInterface.

Reimplemented in stromx::runtime::Enum.

§ version()

template<class repr_t, class val_t>
virtual const Version& stromx::runtime::Primitive< repr_t, val_t >::version ( ) const
inlinevirtual

Returns the version of the class of this data object.

Implements stromx::runtime::DataInterface.

Member Data Documentation

§ MAX

template<class repr_t, class val_t>
const Float32 stromx::runtime::Float32::MAX = Int8(INT8_MAX)
static

The maximal value which can be stored by this primitive.

§ MIN

template<class repr_t, class val_t>
const Float32 stromx::runtime::Float32::MIN = Int8(INT8_MIN)
static

The minimal value which can be stored by this primitive.


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