MDL SDK API nvidia_logo_transpbg.gif Up
mi::INumber Class Referenceabstract

This interface represents simple numeric types. More...

#include <inumber.h>

Inheritance diagram for mi::INumber:

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>
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 IInterfaceget_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 IInterfaceget_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...
 

Detailed Description

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.

Member Function Documentation

 get_value() [1/12]

template<class T>
T mi::INumber::get_value ( ) const
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

mi::Uint32 x = ivalue->get_value<mi::Uint32>();
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49

instead of

ivalue->get_value( x)

 get_value() [2/12]

virtual void mi::INumber::get_value ( bool &  val) const
pure virtual

Returns the value of the object as bool.

 get_value() [3/12]

virtual void mi::INumber::get_value ( Float32 val) const
pure virtual

Returns the value of the object as mi::Float32.

 get_value() [4/12]

virtual void mi::INumber::get_value ( Float64 val) const
pure virtual

Returns the value of the object as mi::Float64.

 get_value() [5/12]

virtual void mi::INumber::get_value ( Sint16 val) const
pure virtual

Returns the value of the object as mi::Sint16.

 get_value() [6/12]

virtual void mi::INumber::get_value ( Sint32 val) const
pure virtual

Returns the value of the object as mi::Sint32.

 get_value() [7/12]

virtual void mi::INumber::get_value ( Sint64 val) const
pure virtual

Returns the value of the object as mi::Sint64.

 get_value() [8/12]

virtual void mi::INumber::get_value ( Sint8 val) const
pure virtual

Returns the value of the object as mi::Sint8.

 get_value() [9/12]

virtual void mi::INumber::get_value ( Uint16 val) const
pure virtual

Returns the value of the object as mi::Uint16.

 get_value() [10/12]

virtual void mi::INumber::get_value ( Uint32 val) const
pure virtual

Returns the value of the object as mi::Uint32.

 get_value() [11/12]

virtual void mi::INumber::get_value ( Uint64 val) const
pure virtual

Returns the value of the object as mi::Uint64.

 get_value() [12/12]

virtual void mi::INumber::get_value ( Uint8 val) const
pure virtual

Returns the value of the object as mi::Uint8.

 set_value() [1/11]

virtual void mi::INumber::set_value ( bool  val)
pure virtual

Sets the value of the object via a parameter of type bool.

 set_value() [2/11]

virtual void mi::INumber::set_value ( Float32  val)
pure virtual

Sets the value of the object via a parameter of type mi::Float32.

 set_value() [3/11]

virtual void mi::INumber::set_value ( Float64  val)
pure virtual

Sets the value of the object via a parameter of type mi::Float64.

 set_value() [4/11]

virtual void mi::INumber::set_value ( Sint16  val)
pure virtual

Sets the value of the object via a parameter of type mi::Sint16.

 set_value() [5/11]

virtual void mi::INumber::set_value ( Sint32  val)
pure virtual

Sets the value of the object via a parameter of type mi::Sint32.

 set_value() [6/11]

virtual void mi::INumber::set_value ( Sint64  val)
pure virtual

Sets the value of the object via a parameter of type mi::Sint64.

 set_value() [7/11]

virtual void mi::INumber::set_value ( Sint8  val)
pure virtual

Sets the value of the object via a parameter of type mi::Sint8.

 set_value() [8/11]

virtual void mi::INumber::set_value ( Uint16  val)
pure virtual

Sets the value of the object via a parameter of type mi::Uint16.

 set_value() [9/11]

virtual void mi::INumber::set_value ( Uint32  val)
pure virtual

Sets the value of the object via a parameter of type mi::Uint32.

 set_value() [10/11]

virtual void mi::INumber::set_value ( Uint64  val)
pure virtual

Sets the value of the object via a parameter of type mi::Uint64.

 set_value() [11/11]

virtual void mi::INumber::set_value ( Uint8  val)
pure virtual

Sets the value of the object via a parameter of type mi::Uint8.