Generated on Mon Aug 25 11:35:49 2008 for Gecode by doxygen 1.5.6

Gecode::SharedHandle Class Reference
[Support for shared objects and handles]

Inherited by Gecode::DFA, Gecode::IntSet, Gecode::SharedArray< T >, Gecode::TupleSet, Gecode::SharedArray< bdd >, Gecode::SharedArray< Gecode::IntSet >, Gecode::SharedArray< Gecode::Iter::Ranges::Cache::Range >, Gecode::SharedArray< Gecode::Iter::Ranges::Minus::Range >, Gecode::SharedArray< Gecode::Projector >, and Gecode::SharedArray< int >.

List of all members.


Detailed Description

The shared handle.

Shared handles must inherit from this base class where Object must be a subclass of SharedObject. Shared handles support that the handle has no object it currently refers to.

Definition at line 71 of file core.icc.


Public Member Functions

 SharedHandle (void)
 Create shared handle with no object pointing to.
 SharedHandle (Object *so)
 Create shared handle that points to shared object so.
 SharedHandle (const SharedHandle &sh)
 Copy constructor maintaining reference count.
SharedHandleoperator= (const SharedHandle &sh)
 Assignment operator mainitaining reference count.
void update (Space *home, bool share, SharedHandle &sh)
 Updating during cloning.
 ~SharedHandle (void)
 Destructor that maintains reference count.

Protected Member Functions

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

Classes

class  Object
 The shared object. More...

Constructor & Destructor Documentation

Gecode::SharedHandle::SharedHandle ( void   )  [inline]

Create shared handle with no object pointing to.

Definition at line 1434 of file core.icc.

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

Create shared handle that points to shared object so.

Definition at line 1436 of file core.icc.

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

Copy constructor maintaining reference count.

Definition at line 1440 of file core.icc.

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

Destructor that maintains reference count.

Definition at line 1467 of file core.icc.


Member Function Documentation

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

Assignment operator mainitaining reference count.

Definition at line 1444 of file core.icc.

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

Updating during cloning.

Definition at line 1451 of file core.icc.

SharedHandle::Object * Gecode::SharedHandle::object ( void   )  const [inline, protected]

Access to the shared object.

Definition at line 1471 of file core.icc.

void Gecode::SharedHandle::object ( SharedHandle::Object n  )  [inline, protected]

Modify shared object.

Definition at line 1475 of file core.icc.


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