coco::semantics_undelta Class Reference
[Deltas]

The semantics undelta class for undoing changes to the node semantics in a model. More...

#include <semantics_delta.h>

Inheritance diagram for coco::semantics_undelta:

Inheritance graph
[legend]
Collaboration diagram for coco::semantics_undelta:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 semantics_undelta (const std::vector< unsigned int > &__i, const std::vector< uint32_t > &__s)
 semantics_undelta (const std::vector< unsigned int > &__i)
 semantics_undelta (const semantics_undelta &__d)
semantics_undeltanew_copy () const
void destroy_copy (undelta_base *__d) const
bool unapply (work_node &_x, const delta_id &_did) const
undelta make_undelta ()
virtual bool unapply3 (work_node &_x, const work_node &_y, const delta_id &_d) const

Friends

class semantics_delta


Detailed Description

This class is used to specify undo information for changes to the node semantics within a model. This class undoes the apply of a semantics_delta.

Definition at line 41 of file semantics_delta.h.


Constructor & Destructor Documentation

coco::semantics_undelta::semantics_undelta ( const std::vector< unsigned int > &  __i,
const std::vector< uint32_t > &  __s 
) [inline]

Constructor, setting indices to __i, the old_f_sem to __s.

Definition at line 55 of file semantics_delta.h.

coco::semantics_undelta::semantics_undelta ( const std::vector< unsigned int > &  __i  )  [inline]

Constructor, setting indices to __i, and leaving old_f_sem empty.

Definition at line 61 of file semantics_delta.h.

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

Standard Copy Constructor

Definition at line 65 of file semantics_delta.h.


Member Function Documentation

void coco::semantics_undelta::destroy_copy ( undelta_base __d  )  const [inline]

Clone Destructor

Definition at line 77 of file semantics_delta.h.

undelta coco::undelta_base::make_undelta (  )  [inline, inherited]

Construct an undelta from this undelta_base.

Definition at line 283 of file api_deltabase.h.

semantics_undelta* coco::semantics_undelta::new_copy (  )  const [inline, virtual]

Clone Operation

Reimplemented from coco::undelta_base.

Definition at line 75 of file semantics_delta.h.

bool coco::semantics_undelta::unapply ( work_node _x,
const delta_id _did 
) const [virtual]

Undo the semantics_delta with delta_id _i in work node _x

Reimplemented from coco::undelta_base.

Definition at line 253 of file semantics_delta.cc.

bool coco::undelta_base::unapply3 ( work_node _x,
const work_node _y,
const delta_id _d 
) const [inline, virtual, inherited]

Undo the delta with delta_id _d in work node _x, constructing in the process work_node _y, without changing _x. This method should be overloaded in the specializations of this class for maximal efficiency, but it need not since a standard procedure is available, which uses the work_node copy constructur and the unapply method.

Definition at line 94 of file api_delta.h.


Friends And Related Function Documentation

friend class semantics_delta [friend]

Definition at line 82 of file semantics_delta.h.


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

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