- Gecode
- SharedHandle

The shared handle. More...
#include <shared-object.hpp>
Classes | |
| class | Object |
| The shared object. More... | |
Public Member Functions | |
| SharedHandle (void) | |
| Create shared handle with no object pointing to. More... | |
| SharedHandle (SharedHandle::Object *so) | |
| Create shared handle that points to shared object so. More... | |
| SharedHandle (const SharedHandle &sh) | |
| Copy constructor maintaining reference count. More... | |
| SharedHandle & | operator= (const SharedHandle &sh) |
| Assignment operator maintaining reference count. More... | |
| ~SharedHandle (void) | |
| Destructor that maintains reference count. More... | |
| operator bool (void) const | |
| Whether handle points to an object. More... | |
Protected Member Functions | |
| SharedHandle::Object * | object (void) const |
| Access to the shared object. More... | |
| void | object (SharedHandle::Object *n) |
| Modify shared object. More... | |
The shared handle.
A shared handle provides access to an object that lives outside a space, and is shared between entities that possibly reside inside different spaces.
This is the base class that all shared handles must inherit from.
Definition at line 46 of file shared-object.hpp.
|
inline |
Create shared handle with no object pointing to.
Definition at line 122 of file shared-object.hpp.
|
inline |
Create shared handle that points to shared object so.
Definition at line 124 of file shared-object.hpp.
|
inline |
Copy constructor maintaining reference count.
Definition at line 128 of file shared-object.hpp.
|
inline |
Destructor that maintains reference count.
Definition at line 143 of file shared-object.hpp.
|
inline |
Assignment operator maintaining reference count.
Definition at line 132 of file shared-object.hpp.
|
inlineexplicit |
Whether handle points to an object.
Definition at line 139 of file shared-object.hpp.
|
inlineprotected |
Access to the shared object.
Definition at line 102 of file shared-object.hpp.
|
inlineprotected |
Modify shared object.
Definition at line 116 of file shared-object.hpp.