Generated on Mon Nov 30 23:53:46 2009 for Gecode by doxygen 1.6.1

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

The copied handle. More...

#include <core.hpp>

List of all members.

Classes

class  Object
 The copied object. More...

Public Member Functions

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

Protected Member Functions

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

Detailed Description

The copied handle.

A copied handle provides access to an object that lives in a space, and is used by entities inside the space. The handle has an update mechanism that makes sure that a single copy of the object is created when the space is copied.

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

Definition at line 80 of file core.hpp.


Constructor & Destructor Documentation

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

Create shared handle with no object pointing to.

Definition at line 2219 of file core.hpp.

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

Create shared handle that points to shared object so.

Definition at line 2221 of file core.hpp.

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

Copy constructor maintaining reference count.

Definition at line 2223 of file core.hpp.


Member Function Documentation

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

Assignment operator mainitaining reference count.

Reimplemented in Gecode::SharedHandle.

Definition at line 2225 of file core.hpp.

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

Updating during cloning.

Reimplemented in Gecode::SharedHandle.

Definition at line 2230 of file core.hpp.

void Gecode::CopiedHandle::dispose ( Space home  )  [inline]

Deallocate object.

Definition at line 2243 of file core.hpp.

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

Access to the shared object.

Reimplemented in Gecode::SharedHandle.

Definition at line 2247 of file core.hpp.

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

Modify shared object.

Definition at line 2251 of file core.hpp.


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