TMCUndoStack< T > Class Template Reference
[MCCore]
List of all members.
Detailed Description
template<class T>
class TMCUndoStack< T >
TMCUndoStack store data in a stack and can return a pointer to previous states using undo/redo. It can be use for a simple auxiliary mecanism of undo/redo
Constructor & Destructor Documentation
Prepare a new TMCUndoStack
- Parameters:
-
| maxSize | maximum number of element in the undo stack |
Member Function Documentation
Creates and adds a new param T to the stack and returns a pointer to it
Return a pointer to the current state to allow modification on it
Gets the number of elements allocated.
Access to the data of the next state.
- Returns:
- a pointer to the next state. NULL if none exist.
template<class T >
void TMCUndoStack< T >::SetMaxSize |
( |
int32 |
maxSize |
) |
[inline] |
Sets the maximum number of element in the undo stack
Access to the data of the previous state.
- Returns:
- a pointer to the previous state. NULL if none exist.
Member Data Documentation
The documentation for this class was generated from the following file: