Material Definition Language API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IExpression_constant Class Referenceabstract

A constant expression. More...

Inheritance diagram for mi::neuraylib::IExpression_constant:
mi::base::Interface_declare< 0x9da8d465, 0x4058, 0x46cb, 0x83, 0x6e, 0x0e, 0x38, 0xa6, 0x7f, 0xcd, 0xef, neuraylib::IExpression > mi::neuraylib::IExpression mi::base::Interface_declare< 0x0f4a7542, 0x9b27, 0x4924, 0xbd, 0x8d, 0x82, 0xe3, 0xa9, 0xa7, 0xa9, 0xd6 > mi::base::IInterface

Public Member Functions

virtual const IValueget_value () const =0
 Returns the value of the constant. More...
 
template<class T >
const T * get_value () const
 Returns the value of the constant. More...
 
virtual IValueget_value ()=0
 Returns the value of the constant. More...
 
template<class T >
T * get_value ()
 Returns the value of the constant. More...
 
virtual Sint32 set_value (IValue *value)=0
 Sets the value of the constant. More...
 

Static Public Attributes

static const Kind s_kind = EK_CONSTANT
 The kind of this subclass. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x9da8d465, 0x4058, 0x46cb, 0x83, 0x6e, 0x0e, 0x38, 0xa6, 0x7f, 0xcd, 0xef, neuraylib::IExpression >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
neuraylib::IExpression
Self
 Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
 Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x9da8d465, 0x4058, 0x46cb, 0x83, 0x6e, 0x0e, 0x38, 0xa6, 0x7f, 0xcd, 0xef, neuraylib::IExpression >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

A constant expression.

Constant expressions appear as defaults of material or function definitions, as arguments of material instances or function calls, as arguments of annotations, and in fields and temporaries of compiled materials.

Member Function Documentation

virtual const IValue* mi::neuraylib::IExpression_constant::get_value ( ) const
pure virtual

Returns the value of the constant.

template<class T >
const T* mi::neuraylib::IExpression_constant::get_value ( ) const
inline

Returns the value of the constant.

virtual IValue* mi::neuraylib::IExpression_constant::get_value ( )
pure virtual

Returns the value of the constant.

template<class T >
T* mi::neuraylib::IExpression_constant::get_value ( )
inline

Returns the value of the constant.

virtual Sint32 mi::neuraylib::IExpression_constant::set_value ( IValue value)
pure virtual

Sets the value of the constant.

Returns
  • 0: Success.
  • -1: Invalid parameter (NULL pointer).
  • -2: The type of value does not match the type of the constant.

Member Data Documentation

const Kind mi::neuraylib::IExpression_constant::s_kind = EK_CONSTANT
static

The kind of this subclass.