Primitive data value.
More...
#include <Primitive.h>
template<class repr_t, class val_t>
class stromx::runtime::Primitive< repr_t, val_t >
Primitive data value.
§ Primitive() [1/2]
template<class repr_t, class val_t>
Constructs a primitive and initializes it with 0.
§ Primitive() [2/2]
template<class repr_t, class val_t>
Constructs a primitive and initializes it with value.
§ clone()
template<class repr_t, class val_t>
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
-
| out | The input which the data obtained from. |
| version | The version of the data class which serialized the input. |
Reimplemented from stromx::runtime::Data.
§ get()
template<class repr_t, class val_t>
Returns the value of the primitive.
§ operator repr_t()
template<class repr_t, class val_t>
Returns the value of the primitive.
§ operator=()
template<class repr_t, class val_t>
Assigns value to the primitive.
§ package()
template<class repr_t, class val_t>
§ serialize()
| STROMX_RUNTIME_API void stromx::runtime::Float32::serialize |
( |
OutputProvider & |
out | ) |
const |
|
virtual |
Serializes this data object.
- Parameters
-
| out | The output which the data is sent to. |
Reimplemented from stromx::runtime::Data.
§ type()
template<class repr_t, class val_t>
§ variant()
| STROMX_RUNTIME_API const VariantHandle & stromx::runtime::Float32::variant |
( |
| ) |
const |
|
virtual |
§ version()
template<class repr_t, class val_t>
§ 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:
- stromx/runtime/Primitive.h
- stromx/runtime/Primitive.cpp