Generated on Thu Feb 21 2013 23:11:56 for Gecode by doxygen 1.8.3.1
Gecode::SharedHandle Class Reference

The shared handle. More...

#include <core.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...
 
SharedHandleoperator= (const SharedHandle &sh)
 Assignment operator mainitaining reference count. More...
 
void update (Space &home, bool share, SharedHandle &sh)
 Updating during cloning. More...
 
 ~SharedHandle (void)
 Destructor that maintains reference count. More...
 

Protected Member Functions

SharedHandle::Objectobject (void) const
 Access to the shared object. More...
 
void object (SharedHandle::Object *n)
 Modify shared object. More...
 

Detailed Description

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. The handle has an update mechanism that supports updates with and without sharing. An update without sharing makes sure that a single copy of the object is created when the space is copied.

This is the base class that all shared handles must inherit from.

Definition at line 77 of file core.hpp.

Constructor & Destructor Documentation

Gecode::SharedHandle::SharedHandle ( void  )
inline

Create shared handle with no object pointing to.

Definition at line 2287 of file core.hpp.

Gecode::SharedHandle::SharedHandle ( SharedHandle::Object so)
inline

Create shared handle that points to shared object so.

Definition at line 2289 of file core.hpp.

Gecode::SharedHandle::SharedHandle ( const SharedHandle sh)
inline

Copy constructor maintaining reference count.

Definition at line 2293 of file core.hpp.

Gecode::SharedHandle::~SharedHandle ( void  )
inline

Destructor that maintains reference count.

Definition at line 2320 of file core.hpp.

Member Function Documentation

SharedHandle & Gecode::SharedHandle::operator= ( const SharedHandle sh)
inline

Assignment operator mainitaining reference count.

Definition at line 2297 of file core.hpp.

void Gecode::SharedHandle::update ( Space home,
bool  share,
SharedHandle sh 
)
inline

Updating during cloning.

Definition at line 2304 of file core.hpp.

SharedHandle::Object * Gecode::SharedHandle::object ( void  ) const
inlineprotected

Access to the shared object.

Definition at line 2267 of file core.hpp.

void Gecode::SharedHandle::object ( SharedHandle::Object n)
inlineprotected

Modify shared object.

Definition at line 2281 of file core.hpp.


The documentation for this class was generated from the following file: