DiCE API nvidia_logo_transpbg.gif Up
mi::neuraylib::Job< id1, ... > Class Template Reference

This mixin class can be used to implement the mi::neuraylib::IJob interface. More...

#include <dice.h>

Inheritance diagram for mi::neuraylib::Job< id1, ... >:

Public Member Functions

virtual Size get_size () const
 Assumes that the size of the database job is given by sizeof. More...
 
virtual bool is_local_only () const
 Returns false. More...
 
virtual bool is_shared () const
 Returns false. More...
 
virtual bool is_parent () const
 Returns false. More...
 
virtual Float32 get_cpu_load () const
 Returns 1.0. More...
 
virtual Float32 get_gpu_load () const
 Returns 0.0. More...
 
- Public Member Functions inherited from mi::neuraylib::Base< id1, ... >
virtual const base::IInterfaceget_interface (const base::Uuid &interface_id) const
 Acquires a const interface. More...
 
virtual base::IInterfaceget_interface (const base::Uuid &interface_id)
 Acquires a mutable interface. More...
 
virtual base::Uuid get_class_id () const
 Returns the class ID corresponding to the template parameters of this mixin class. More...
 
- Public Member Functions inherited from mi::base::Interface_implement<IJob>
 Interface_implement (Uint32 initial=1)
 Constructor. More...
 
 Interface_implement (const Interface_implement<IJob> &other)
 Copy constructor. More...
 
 Interface_implement (Interface_implement &&other)
 Move constructor. More...
 
Interface_implement<IJob> & operator= (const Interface_implement<IJob> &other)
 Assignment operator. More...
 
Interface_implementoperator= (Interface_implement &&other)
 Move assignment. More...
 
virtual Uint32 retain () const
 Increments the reference count. More...
 
virtual Uint32 release () const
 Decrements the reference count. More...
 
virtual const IInterfaceget_interface (const Uuid &interface_id) const
 Acquires a const interface. More...
 
virtual IInterfaceget_interface (const Uuid &interface_id)
 Acquires a mutable interface. More...
 
Uuid get_iid () const
 Returns the interface ID of the most derived interface. More...
 

Additional Inherited Members

- Public Types inherited from mi::neuraylib::Base< id1, ... >
typedef Base< id1, ... > Self
 Own type. More...
 
typedef base::Uuid_t< id1, ... > IID
 Declares the interface ID. More...
 
- Static Public Member Functions inherited from mi::neuraylib::Base< id1, ... >
static bool compare_iid (const base::Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and its ancestors. More...
 
- Protected Member Functions inherited from mi::base::Interface_implement<IJob>
Atom32refcount () const
 Get the current refcount. More...
 

Detailed Description

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
class mi::neuraylib::Job< id1, ... >

This mixin class can be used to implement the mi::neuraylib::IJob interface.

This mixin class provides a default implementation of some of the pure virtual methods of the mi::neuraylib::IJob interface. The documentation here just lists the behavior of the default implementation, see mi::neuraylib::IJob for the documentation of the methods themselves.

Member Function Documentation

 get_cpu_load()

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
virtual Float32 mi::neuraylib::Job< id1, ... >::get_cpu_load ( ) const
inlinevirtual

Returns 1.0.

 get_gpu_load()

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
virtual Float32 mi::neuraylib::Job< id1, ... >::get_gpu_load ( ) const
inlinevirtual

Returns 0.0.

 get_size()

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
virtual Size mi::neuraylib::Job< id1, ... >::get_size ( ) const
inlinevirtual

Assumes that the size of the database job is given by sizeof.

 is_local_only()

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
virtual bool mi::neuraylib::Job< id1, ... >::is_local_only ( ) const
inlinevirtual

Returns false.

 is_parent()

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
virtual bool mi::neuraylib::Job< id1, ... >::is_parent ( ) const
inlinevirtual

Returns false.

 is_shared()

template<Uint32 id1, Uint16 id2, Uint16 id3, Uint8 id4, Uint8 id5, Uint8 id6, Uint8 id7, Uint8 id8, Uint8 id9, Uint8 id10, Uint8 id11, class I = IJob>
virtual bool mi::neuraylib::Job< id1, ... >::is_shared ( ) const
inlinevirtual

Returns false.