Document::RemoveDelta< InsertRemoveIdentifer, Object > Class Template Reference

Class to remove something from a track. More...

#include <RemoveDelta.h>

Inheritance diagram for Document::RemoveDelta< InsertRemoveIdentifer, Object >:

Document::DocumentDelta List of all members.

Public Member Functions

 RemoveDelta (InsertRemoveIdentifer identifier)
 Create a delta instructing the removal of the object found by identifier.
virtual ~RemoveDelta ()
virtual void apply (Track::Track &track)
 Remove the object found by the identifier.
virtual void unapply (Track::Track &track)
 Add the object back again.

Protected Attributes

boost::shared_ptr< Object > object
InsertRemoveIdentifer identifier

Detailed Description

template<class InsertRemoveIdentifer, class Object>
class Document::RemoveDelta< InsertRemoveIdentifer, Object >

Class to remove something from a track.

If removing an object also requires the alteration of dependant objects, make a Document::StackableDelta to find and remove the dependents, then apply a Document::RemoveDelta. InsertRemoveIdentifer class to identify an object and insert or remove it. Should behave like a Document::InsertRemoveIdentifier. Object the class of object that is added and removed. Must be assignable.

Definition at line 32 of file RemoveDelta.h.


Constructor & Destructor Documentation

template<class InsertRemoveIdentifer, class Object>
Document::RemoveDelta< InsertRemoveIdentifer, Object >::RemoveDelta ( InsertRemoveIdentifer  identifier  )  [inline]

Create a delta instructing the removal of the object found by identifier.

Definition at line 38 of file RemoveDelta.h.

template<class InsertRemoveIdentifer, class Object>
virtual Document::RemoveDelta< InsertRemoveIdentifer, Object >::~RemoveDelta (  )  [inline, virtual]

Definition at line 43 of file RemoveDelta.h.


Member Function Documentation

template<class InsertRemoveIdentifer, class Object>
virtual void Document::RemoveDelta< InsertRemoveIdentifer, Object >::apply ( Track::Track track  )  [inline, virtual]

Remove the object found by the identifier.

Implements Document::DocumentDelta.

Definition at line 48 of file RemoveDelta.h.

template<class InsertRemoveIdentifer, class Object>
virtual void Document::RemoveDelta< InsertRemoveIdentifer, Object >::unapply ( Track::Track track  )  [inline, virtual]

Add the object back again.

Implements Document::DocumentDelta.

Definition at line 55 of file RemoveDelta.h.


Member Data Documentation

template<class InsertRemoveIdentifer, class Object>
InsertRemoveIdentifer Document::RemoveDelta< InsertRemoveIdentifer, Object >::identifier [protected]

Definition at line 61 of file RemoveDelta.h.

template<class InsertRemoveIdentifer, class Object>
boost::shared_ptr<Object> Document::RemoveDelta< InsertRemoveIdentifer, Object >::object [protected]

Definition at line 60 of file RemoveDelta.h.


The documentation for this class was generated from the following file:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.