This mixin class provides a default implementation for some of the methods needed by mi::bridge::IServer_job. More...
#include <ibridge_server.h>
Public Types | |
typedef Server_job<i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I> | Self |
Own type. More... | |
typedef base::Uuid_t<i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11> | IID |
Declares the interface ID. More... | |
Public Member Functions | |
virtual const base::IInterface * | get_interface (const base::Uuid &interface_id) const |
Acquires a const interface. More... | |
virtual base::IInterface * | get_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... | |
virtual void | serialize (neuraylib::ISerializer *serializer) const |
Empty body. This method from the base class is not needed for client jobs. More... | |
virtual void | cancel () |
Does nothing in the default implementation. More... | |
Public Member Functions inherited from mi::base::Interface_implement<IServer_job> | |
Interface_implement (Uint32 initial=1) | |
Constructor. More... | |
Interface_implement (const Interface_implement<IServer_job> &other) | |
Copy constructor. More... | |
Interface_implement (Interface_implement &&other) | |
Move constructor. More... | |
Interface_implement<IServer_job> & | operator= (const Interface_implement<IServer_job> &other) |
Assignment operator. More... | |
Interface_implement & | operator= (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 IInterface * | get_interface (const Uuid &interface_id) const |
Acquires a const interface. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id) |
Acquires a mutable interface. More... | |
Uuid | get_iid () const |
Returns the interface ID of the most derived interface. More... | |
Static Public Member Functions | |
static bool | compare_iid (const base::Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and its ancestors. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mi::base::Interface_implement<IServer_job> | |
Atom32 & | refcount () const |
Get the current refcount. More... | |
This mixin class provides a default implementation for some of the methods needed by mi::bridge::IServer_job.
It is recommended to derive from this class rather than from mi::bridge::IServer_job directly.
typedef base::Uuid_t<i_id1,i_id2,i_id3,i_id4,i_id5,i_id6,i_id7,i_id8,i_id9,i_id10,i_id11> mi::bridge::Server_job<i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::IID |
Declares the interface ID.
typedef Server_job<i_id1,i_id2,i_id3,i_id4,i_id5,i_id6,i_id7,i_id8,i_id9,i_id10,i_id11,I> mi::bridge::Server_job<i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::Self |
Own type.
|
inlinevirtual |
Does nothing in the default implementation.
|
inlinestatic |
Compares the interface ID iid
against the interface ID of this interface and its ancestors.
true
if iid
== IID()
or is equal to one of the interface IDs of its ancestors, and false
otherwise.
|
inlinevirtual |
Returns the class ID corresponding to the template parameters of this mixin class.
|
inlinevirtual |
Acquires a mutable interface.
If this interface is derived from or is the interface with the passed interface_id
, then return a non-NULL
mi::base::IInterface* that can be casted via static_cast
to an interface pointer of the interface type corresponding to the passed interface_id
. Otherwise return NULL
.
In the case of a non-NULL
return value, the caller receives ownership of the new interface pointer, whose reference count has been retained once. The caller must release the returned interface pointer at the end to prevent a memory leak.
Reimplemented from mi::base::Interface_implement<IServer_job>.
|
inlinevirtual |
Acquires a const interface.
If this interface is derived from or is the interface with the passed interface_id
, then return a non-NULL
const
mi::base::IInterface* that can be casted via static_cast
to an interface pointer of the interface type corresponding to the passed interface_id
. Otherwise return NULL
.
In the case of a non-NULL
return value, the caller receives ownership of the new interface pointer, whose reference count has been retained once. The caller must release the returned interface pointer at the end to prevent a memory leak.
Reimplemented from mi::base::Interface_implement<IServer_job>.
|
inlinevirtual |
Empty body. This method from the base class is not needed for client jobs.