vSMC
vSMC: Scalable Monte Carlo
|
Base class of Dispatch objects. More...
#include <vsmc/gcd/dispatch_object.hpp>
Public Member Functions | |
DispatchObject (const DispatchType &object, bool retained) | |
Create a DispatchObject from its C-type object. More... | |
DispatchObject (const DispatchObject< DispatchType > &other) | |
DispatchObject (DispatchObject< DispatchType > &&other) | |
~DispatchObject () | |
void * | get_context () const |
DispatchType | object () const |
Return the underlying Dispatch object. More... | |
void | object (DispatchType obj) |
Set the underlying Dispatch object and retain it. More... | |
DispatchObject< DispatchType > & | operator= (const DispatchObject< DispatchType > &other) |
DispatchObject< DispatchType > & | operator= (DispatchObject< DispatchType > &&other) |
void | set_context (void *context) const |
void | set_finalizer_f (::dispatch_function_t finalizer) const |
Base class of Dispatch objects.
All Dispatch objects are reference counting shared objects
Definition at line 45 of file dispatch_object.hpp.
|
inline |
Create a DispatchObject from its C-type object.
object | The raw object to be aquired |
retained | Whether the object is already retained. Some objects are retained at least once when it is created. These objects shall not be retained again by this constructor. Passing true as this argument prevent the constructor to retain the object. |
Definition at line 56 of file dispatch_object.hpp.
|
inline |
Definition at line 59 of file dispatch_object.hpp.
|
inline |
Definition at line 75 of file dispatch_object.hpp.
|
inline |
Definition at line 90 of file dispatch_object.hpp.
|
inline |
Definition at line 105 of file dispatch_object.hpp.
|
inline |
Return the underlying Dispatch object.
Definition at line 93 of file dispatch_object.hpp.
|
inline |
Set the underlying Dispatch object and retain it.
Definition at line 96 of file dispatch_object.hpp.
|
inline |
Definition at line 62 of file dispatch_object.hpp.
|
inline |
Definition at line 78 of file dispatch_object.hpp.
|
inline |
Definition at line 108 of file dispatch_object.hpp.
|
inline |
Definition at line 111 of file dispatch_object.hpp.