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

Class to create an object in a Track. More...

#include <InsertDelta.h>

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

Document::DocumentDelta List of all members.

Public Member Functions

 InsertDelta (const Object &object)
 Create a delta instructing the addition of the object.
virtual ~InsertDelta ()
virtual void apply (Track::Track &track)
 Insert the object into a track.
virtual void unapply (Track::Track &track)
 Remove it again.

Protected Attributes

Object object
InsertRemoveIdentifer identifier

Detailed Description

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

Class to create an object in a Track.

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.

Definition at line 26 of file InsertDelta.h.


Constructor & Destructor Documentation

template<class InsertRemoveIdentifer, class Object>
Document::InsertDelta< InsertRemoveIdentifer, Object >::InsertDelta ( const Object &  object  )  [inline]

Create a delta instructing the addition of the object.

Definition at line 32 of file InsertDelta.h.

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

Definition at line 38 of file InsertDelta.h.


Member Function Documentation

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

Insert the object into a track.

Implements Document::DocumentDelta.

Definition at line 43 of file InsertDelta.h.

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

Remove it again.

Implements Document::DocumentDelta.

Definition at line 49 of file InsertDelta.h.


Member Data Documentation

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

Definition at line 55 of file InsertDelta.h.

template<class InsertRemoveIdentifer, class Object>
Object Document::InsertDelta< InsertRemoveIdentifer, Object >::object [protected]

Definition at line 54 of file InsertDelta.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:16 2010 by Doxygen version 1.4.7 for Racer version svn335.