coco::undelta Class Reference
[Deltas]

The undelta class (undo of updates to work nodes). More...

#include <api_deltabase.h>

Collaboration diagram for coco::undelta:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 undelta ()
 undelta (undelta_base *__d)
 undelta (const undelta &__d)
 ~undelta ()
const undelta_baseget_base () const
bool unapply (work_node &_x, const delta_id &_i) const
bool unapply3 (work_node &_x, const work_node &_y, const delta_id &_i) const
undeltaoperator= (const undelta &_u)


Detailed Description

The undelta class is used to store undo information in the work nodes. It is designed as a wrapper class in order to overcome the problem that copy constructors cannot be overloaded.

Definition at line 223 of file api_deltabase.h.


Constructor & Destructor Documentation

coco::undelta::undelta (  )  [inline]

Standard Constructor

Definition at line 231 of file api_deltabase.h.

coco::undelta::undelta ( undelta_base __d  )  [inline]

Internal Constructor, which just copies the pointer to the undelta_base. This pointer must be allocated by new, since it will be removed with delete in the destructor

Definition at line 235 of file api_deltabase.h.

coco::undelta::undelta ( const undelta __d  )  [inline]

Copy Constructor, which constructs a new undelta from an existing undelta. The clone operation for the undelta_base will be called in that process, effectively overloading the copy constructor for the undelta_base.

Definition at line 197 of file api_delta.h.

coco::undelta::~undelta (  )  [inline]

Destructor, which frees the _d using delete

Definition at line 203 of file api_delta.h.


Member Function Documentation

const undelta_base * coco::undelta::get_base (  )  const [inline]

Return the undelta_base stored in this wrapper

Definition at line 218 of file api_delta.h.

undelta & coco::undelta::operator= ( const undelta _u  )  [inline]

Assignment operator, which uses the clone operation for the undelta_base, effectively overloading the assignment operator for the undelta_base.

Definition at line 209 of file api_delta.h.

bool coco::undelta::unapply ( work_node _x,
const delta_id _i 
) const [inline]

Undo the delta with delta_id _i in work node _x

Definition at line 220 of file api_delta.h.

bool coco::undelta::unapply3 ( work_node _x,
const work_node _y,
const delta_id _i 
) const [inline]

Undo the delta with delta_id _d in work node _x, constructing in the process work_node _y, without changing _x.

Definition at line 223 of file api_delta.h.


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

Generated on Tue Feb 9 14:47:47 2010 for COCONUT API by  doxygen 1.5.8