#include <jupiter_undo.hpp>
Public Types | |
| typedef Document | document_type |
| typedef operation< document_type > | operation_type |
Public Member Functions | |
| jupiter_undo (const document_type &doc) | |
| ~jupiter_undo () | |
| void | client_add (const user &client) |
| void | client_remove (const user &client) |
| void | local_op (const operation_type &op, const user *from) |
| void | remote_op (const operation_type &op, const user *from) |
| bool | can_undo () |
| std::auto_ptr< operation_type > | undo () |
Protected Attributes | |
| const document_type & | m_doc |
TODO: IMPLEMENT ME!
Definition at line 35 of file jupiter_undo.hpp.
| typedef Document obby::jupiter_undo< Document >::document_type |
Definition at line 38 of file jupiter_undo.hpp.
| typedef operation<document_type> obby::jupiter_undo< Document >::operation_type |
Definition at line 39 of file jupiter_undo.hpp.
| obby::jupiter_undo< Document >::jupiter_undo | ( | const document_type & | doc | ) |
Definition at line 72 of file jupiter_undo.hpp.
| obby::jupiter_undo< Document >::~jupiter_undo | ( | ) |
Definition at line 78 of file jupiter_undo.hpp.
| void obby::jupiter_undo< Document >::client_add | ( | const user & | client | ) |
Adds a new client to the undo manager.
Definition at line 83 of file jupiter_undo.hpp.
Referenced by obby::jupiter_client< Document >::client_add().
| void obby::jupiter_undo< Document >::client_remove | ( | const user & | client | ) |
Removes a client from the undo manager.
Definition at line 88 of file jupiter_undo.hpp.
Referenced by obby::jupiter_client< Document >::client_remove().
| void obby::jupiter_undo< Document >::local_op | ( | const operation_type & | op, | |
| const user * | from | |||
| ) |
Operation op has been performed locally by from.
Definition at line 93 of file jupiter_undo.hpp.
Referenced by obby::jupiter_server< Document >::local_op(), and obby::jupiter_client< Document >::local_op().
| void obby::jupiter_undo< Document >::remote_op | ( | const operation_type & | op, | |
| const user * | from | |||
| ) |
Operation op has been performed remotely by from.
Definition at line 99 of file jupiter_undo.hpp.
Referenced by obby::jupiter_server< Document >::remote_op(), and obby::jupiter_client< Document >::remote_op().
| bool obby::jupiter_undo< Document >::can_undo | ( | ) |
Returns TRUE if the user can undo its last operation.
Definition at line 105 of file jupiter_undo.hpp.
| std::auto_ptr< typename jupiter_undo< Document >::operation_type > obby::jupiter_undo< Document >::undo | ( | ) |
Returns an operation that undoes the last operation of this user.
Definition at line 112 of file jupiter_undo.hpp.
Referenced by obby::jupiter_server< Document >::undo_op(), and obby::jupiter_client< Document >::undo_op().
const document_type& obby::jupiter_undo< Document >::m_doc [protected] |
Definition at line 68 of file jupiter_undo.hpp.
1.5.1