Document::DocumentDelta Class Reference

Abstract base class for changes that can be made to a track. More...

#include <DocumentDelta.h>

Inheritance diagram for Document::DocumentDelta:

Document::ChangeLightingDelta Document::ChangePropertyDelta< Identifier, Data > Document::InsertDelta< InsertRemoveIdentifer, Object > Document::RemoveDelta< InsertRemoveIdentifer, Object > Document::StackableDelta Document::SymmetricDelta Document::ChangeVertexSegmentDelta Document::ClearVertexDelta Document::RemoveVertexDelta Document::SetStartPositionsDelta Document::FlipEdgeDelta List of all members.

Public Member Functions

 DocumentDelta ()
virtual ~DocumentDelta ()
virtual void apply (Track::Track &track)=0
 Perform the associated reverable action on the track.
virtual void unapply (Track::Track &track)=0
 Reverse the action.

Detailed Description

Abstract base class for changes that can be made to a track.

Definition at line 24 of file DocumentDelta.h.


Constructor & Destructor Documentation

Document::DocumentDelta::DocumentDelta (  ) 

Definition at line 17 of file DocumentDelta.cpp.

Document::DocumentDelta::~DocumentDelta (  )  [virtual]

Definition at line 21 of file DocumentDelta.cpp.


Member Function Documentation

virtual void Document::DocumentDelta::apply ( Track::Track track  )  [pure virtual]

Perform the associated reverable action on the track.

Parameters:
track The track to apply the changes to.

Implemented in Document::ChangeLightingDelta, Document::ChangePropertyDelta< Identifier, Data >, Document::ChangeVertexSegmentDelta, Document::ClearVertexDelta, Document::FlipEdgeDelta, Document::InsertDelta< InsertRemoveIdentifer, Object >, Document::RemoveVertexDelta, Document::RemoveDelta< InsertRemoveIdentifer, Object >, Document::SetStartPositionsDelta, and Document::StackableDelta.

virtual void Document::DocumentDelta::unapply ( Track::Track track  )  [pure virtual]

Reverse the action.

This will only be called when the track is in the same state having just called

 apply(track) 
, and must take the track back to the state it was in before calling apply.
Parameters:
track The track to apply the changes to.

Implemented in Document::ChangeLightingDelta, Document::ChangePropertyDelta< Identifier, Data >, Document::InsertDelta< InsertRemoveIdentifer, Object >, Document::RemoveDelta< InsertRemoveIdentifer, Object >, Document::StackableDelta, and Document::SymmetricDelta.


The documentation for this class was generated from the following files:
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.