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

An indirect call expression. More...

Inheritance diagram for mi::neuraylib::IExpression_call:
mi::base::Interface_declare< 0xcf625aec, 0x8eb8, 0x4743, 0x9f, 0xf6, 0x76, 0x82, 0x2c, 0x02, 0x54, 0xa3, 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 char * get_call () const =0
 Returns the DB name of the referenced function call or material instance. More...
 
virtual Sint32 set_call (const char *name)=0
 Sets the name of the referenced function call or material instance. More...
 

Static Public Attributes

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

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xcf625aec, 0x8eb8, 0x4743, 0x9f, 0xf6, 0x76, 0x82, 0x2c, 0x02, 0x54, 0xa3, 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< 0xcf625aec, 0x8eb8, 0x4743, 0x9f, 0xf6, 0x76, 0x82, 0x2c, 0x02, 0x54, 0xa3, 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

An indirect call expression.

This call expression is called indirect since it just references another DB element representing the actual call. See also mi::neuraylib::IExpression_direct_call for direct call expressions.

Indirect call expressions appear as defaults of material or function definitions and as arguments of material instances or function calls.

Member Function Documentation

virtual const char* mi::neuraylib::IExpression_call::get_call ( ) const
pure virtual

Returns the DB name of the referenced function call or material instance.

virtual Sint32 mi::neuraylib::IExpression_call::set_call ( const char *  name)
pure virtual

Sets the name of the referenced function call or material instance.

Parameters
nameThe DB name of the function call or material instance.
Returns
  • 0: Success.
  • -1: Invalid parameter (NULL pointer).
  • -2: There is no DB element with that name.
  • -3: The DB element has not the correct type.
  • -4: The return type of the DB element does not match the type of this expression.
  • -5: The material instance or function call referenced by "name" is a parameter default and therefore cannot be used in a call.

Member Data Documentation

const Kind mi::neuraylib::IExpression_call::s_kind = EK_CALL
static

The kind of this subclass.