NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IFunctor_base Class Referenceabstract

Base class for functors. More...

Inheritance diagram for mi::neuraylib::IFunctor_base:
Inheritance graph
[legend]

Public Member Functions

virtual IDictionary get_default_options () const =0
  Returns the default options for this functor. More...
 
virtual bool  options_valid (const IDictionary *options)=0
  Checks whether the options are valid for the functor. More...
 
virtual const IDictionary get_options_type () const =0
  Returns the types of all options. More...
 
virtual const IDictionary get_options_description () const =0
  Returns the descriptions of all options. More...
 
virtual const char *  error_text () const =0
  Returns a descriptive string for the last error. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xee412b14, 0x7c51, 0x4430, 0xb0, 0xb9, 0x05, 0xc8, 0x62, 0x64, 0xd0, 0xb7 >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
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< 0xee412b14, 0x7c51, 0x4430, 0xb0, 0xb9, 0x05, 0xc8, 0x62, 0x64, 0xd0, 0xb7 >
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

Base class for functors.

This base class provides common support for options handling and similar things. Functors are interfaces whose purpose is a single computation, like a conventional function call.

Member Function Documentation

virtual const char* mi::neuraylib::IFunctor_base::error_text ( ) const
pure virtual

Returns a descriptive string for the last error.

The returned pointer is valid until the next function call or until this interface is released, whichever happens first.

Returns
A description of the error from the last function call, or NULL if the last function call was successful.
virtual IDictionary* mi::neuraylib::IFunctor_base::get_default_options ( ) const
pure virtual

Returns the default options for this functor.

Returns
A dictionary that contains all permissible options keys and their default values for this functor.
virtual const IDictionary* mi::neuraylib::IFunctor_base::get_options_description ( ) const
pure virtual

Returns the descriptions of all options.

Returns
A dictionary that maps the key names of the default options to a corresponding description describing the meaning of the value.
virtual const IDictionary* mi::neuraylib::IFunctor_base::get_options_type ( ) const
pure virtual

Returns the types of all options.

Returns
A dictionary that maps the key names of the default options to the corresponding types.
virtual bool mi::neuraylib::IFunctor_base::options_valid ( const IDictionary options)
pure virtual

Checks whether the options are valid for the functor.

Returns
true if and only if the options are valid, i.e., all keys and their values are permissible for the functor.