RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
UndoableAction< TargetType, ValueType > Class Template Reference

#include <undoableaction.h>

Inheritance diagram for UndoableAction< TargetType, ValueType >:
IUndoableAction CObject

Public Member Functions

 UndoableAction (TargetType target, ValueType &value)
 
void setTarget (TargetType target)
 
TargetType getTarget () const
 
void setValue (ValueType &value)
 
ValueType getValue () const
 
virtual ~UndoableAction ()
 
- Public Member Functions inherited from IUndoableAction
virtual void performAction ()
 
virtual IUndoableActiongetOppositeAction ()
 
virtual const char * getHint () const
 
- Public Member Functions inherited from CObject
 CObject ()
 
 CObject (const CObject &object)
 
CObjectoperator= (const CObject &object)
 
CObjectretain ()
 
unsigned int release () const
 
CObjectautorelease ()
 
unsigned int retainCount () const
 
bool isValidCObject () const
 
virtual ~CObject ()
 

Protected Attributes

TargetType m_target
 
ValueType m_value
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static void safeRetain (void *pointer)
 
template<class T >
static void safeRelease (T *pointer)
 
template<class T >
static void safeReleaseArray (T *array)
 
static void safeRelease (const char *pointer)
 
- Protected Member Functions inherited from CObject
virtual void copyValuesFromObject (const CObject &object)
 

Detailed Description

template<class TargetType, class ValueType>
class UndoableAction< TargetType, ValueType >

Base class for any Undoable Action, it is used to specify the Target & Value types, as well as the behaviour of the Undoable Action.

Definition at line 60 of file undoableaction.h.

Constructor & Destructor Documentation

template<class TargetType, class ValueType>
UndoableAction< TargetType, ValueType >::UndoableAction ( TargetType  target,
ValueType &  value 
)
inline

Definition at line 62 of file undoableaction.h.

template<class TargetType, class ValueType>
virtual UndoableAction< TargetType, ValueType >::~UndoableAction ( )
inlinevirtual

Definition at line 83 of file undoableaction.h.

Member Function Documentation

template<class TargetType, class ValueType>
TargetType UndoableAction< TargetType, ValueType >::getTarget ( ) const
inline

Definition at line 71 of file undoableaction.h.

template<class TargetType, class ValueType>
ValueType UndoableAction< TargetType, ValueType >::getValue ( ) const
inline

Definition at line 79 of file undoableaction.h.

template<class TargetType, class ValueType>
void UndoableAction< TargetType, ValueType >::setTarget ( TargetType  target)
inline

Definition at line 67 of file undoableaction.h.

template<class TargetType, class ValueType>
void UndoableAction< TargetType, ValueType >::setValue ( ValueType &  value)
inline

Definition at line 75 of file undoableaction.h.

Member Data Documentation

template<class TargetType, class ValueType>
TargetType UndoableAction< TargetType, ValueType >::m_target
protected

Definition at line 87 of file undoableaction.h.

template<class TargetType, class ValueType>
ValueType UndoableAction< TargetType, ValueType >::m_value
protected

Definition at line 88 of file undoableaction.h.


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