Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::widgets::skeletons::undoable< EnumCommand > Class Template Reference

Public Types

using command = EnumCommand
 
using container = std::deque< std::unique_ptr< undoable_command_interface< command >>>
 

Public Member Functions

void clear () noexcept
 
void max_steps (std::size_t maxs)
 
std::size_t max_steps () const
 
void push (std::unique_ptr< undoable_command_interface< command >> &&ptr)
 
std::size_t count (bool is_undo) const noexcept
 
void undo ()
 
void redo ()
 

Member Typedef Documentation

template<typename EnumCommand>
using nana::widgets::skeletons::undoable< EnumCommand >::command = EnumCommand

Member Function Documentation

template<typename EnumCommand>
void nana::widgets::skeletons::undoable< EnumCommand >::clear ( )
inlinenoexcept
template<typename EnumCommand>
std::size_t nana::widgets::skeletons::undoable< EnumCommand >::count ( bool  is_undo) const
inlinenoexcept
template<typename EnumCommand>
void nana::widgets::skeletons::undoable< EnumCommand >::max_steps ( std::size_t  maxs)
inline
template<typename EnumCommand>
std::size_t nana::widgets::skeletons::undoable< EnumCommand >::max_steps ( ) const
inline
template<typename EnumCommand>
void nana::widgets::skeletons::undoable< EnumCommand >::push ( std::unique_ptr< undoable_command_interface< command >> &&  ptr)
inline
template<typename EnumCommand>
void nana::widgets::skeletons::undoable< EnumCommand >::redo ( )
inline
template<typename EnumCommand>
void nana::widgets::skeletons::undoable< EnumCommand >::undo ( )
inline