This interface represents simple numeric types. More...
#include <inumber.h>
Public Member Functions | |
virtual void | get_value (bool &val) const =0 |
Returns the value of the object as bool. More... | |
virtual void | set_value (bool val)=0 |
Sets the value of the object via a parameter of type bool. More... | |
virtual void | get_value (Uint8 &val) const =0 |
Returns the value of the object as mi::Uint8. More... | |
virtual void | set_value (Uint8 val)=0 |
Sets the value of the object via a parameter of type mi::Uint8. More... | |
virtual void | get_value (Uint16 &val) const =0 |
Returns the value of the object as mi::Uint16. More... | |
virtual void | set_value (Uint16 val)=0 |
Sets the value of the object via a parameter of type mi::Uint16. More... | |
virtual void | get_value (Uint32 &val) const =0 |
Returns the value of the object as mi::Uint32. More... | |
virtual void | set_value (Uint32 val)=0 |
Sets the value of the object via a parameter of type mi::Uint32. More... | |
virtual void | get_value (Uint64 &val) const =0 |
Returns the value of the object as mi::Uint64. More... | |
virtual void | set_value (Uint64 val)=0 |
Sets the value of the object via a parameter of type mi::Uint64. More... | |
virtual void | get_value (Sint8 &val) const =0 |
Returns the value of the object as mi::Sint8. More... | |
virtual void | set_value (Sint8 val)=0 |
Sets the value of the object via a parameter of type mi::Sint8. More... | |
virtual void | get_value (Sint16 &val) const =0 |
Returns the value of the object as mi::Sint16. More... | |
virtual void | set_value (Sint16 val)=0 |
Sets the value of the object via a parameter of type mi::Sint16. More... | |
virtual void | get_value (Sint32 &val) const =0 |
Returns the value of the object as mi::Sint32. More... | |
virtual void | set_value (Sint32 val)=0 |
Sets the value of the object via a parameter of type mi::Sint32. More... | |
virtual void | get_value (Sint64 &val) const =0 |
Returns the value of the object as mi::Sint64. More... | |
virtual void | set_value (Sint64 val)=0 |
Sets the value of the object via a parameter of type mi::Sint64. More... | |
virtual void | get_value (Float32 &val) const =0 |
Returns the value of the object as mi::Float32. More... | |
virtual void | set_value (Float32 val)=0 |
Sets the value of the object via a parameter of type mi::Float32. More... | |
virtual void | get_value (Float64 &val) const =0 |
Returns the value of the object as mi::Float64. More... | |
virtual void | set_value (Float64 val)=0 |
Sets the value of the object via a parameter of type mi::Float64. More... | |
template<class T> | |
T | get_value () const |
Returns the value of the object. More... | |
Public Member Functions inherited from mi::IData | |
virtual const char * | get_type_name () const =0 |
Returns the type name. More... | |
Public Member Functions inherited from mi::base::IInterface | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0x07366a82, ... > | |
typedef Interface_declare< id1, ... > | Self |
Own type. More... | |
typedef Uuid_t< id1, ... > | IID |
Declares the interface ID (IID) of this interface. More... | |
Public Types inherited from mi::base::Interface_declare< 0xc33c5a05, ... > | |
typedef Interface_declare< id1, ... > | Self |
Own type. More... | |
typedef Uuid_t< id1, ... > | IID |
Declares the interface ID (IID) of this interface. More... | |
Public Types inherited from mi::base::Interface_declare< 0x2e5f84bc, ... > | |
typedef Interface_declare< id1, ... > | Self |
Own type. More... | |
typedef Uuid_t< id1, ... > | IID |
Declares the interface ID (IID) of this interface. More... | |
Public Types inherited from mi::base::IInterface | |
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> | IID |
Declares the interface ID (IID) of this interface. More... | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0x07366a82, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0xc33c5a05, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0x2e5f84bc, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::IInterface | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
This interface represents simple numeric types.
The methods get_value() and set_value() are overloaded for the various numeric types. If necessary a conversion as defined by the C/C++ standard is performed.
|
inline |
Returns the value of the object.
The type of the object represented by the interface is indicated by the template parameter.
This templated member function is a wrapper of the other functions of the same name for the user's convenience. It allows you to write
instead of
|
pure virtual |
Returns the value of the object as bool.
|
pure virtual |
Returns the value of the object as mi::Float32.
|
pure virtual |
Returns the value of the object as mi::Float64.
|
pure virtual |
Returns the value of the object as mi::Sint16.
|
pure virtual |
Returns the value of the object as mi::Sint32.
|
pure virtual |
Returns the value of the object as mi::Sint64.
|
pure virtual |
Returns the value of the object as mi::Sint8.
|
pure virtual |
Returns the value of the object as mi::Uint16.
|
pure virtual |
Returns the value of the object as mi::Uint32.
|
pure virtual |
Returns the value of the object as mi::Uint64.
|
pure virtual |
Returns the value of the object as mi::Uint8.
|
pure virtual |
Sets the value of the object via a parameter of type bool.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Float32.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Float64.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Sint16.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Sint32.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Sint64.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Sint8.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Uint16.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Uint32.
|
pure virtual |
Sets the value of the object via a parameter of type mi::Uint64.