A simple serializable data container that keeps a history of previous values, and can fetch those old values on request. More...
#include <RewindableObject.h>
Public Member Functions | |
RewindableObject (const BASE_TYPE &value) | |
RewindableObject (const BASE_TYPE &value, AzNetworking::ConnectionId owningConnectionId) | |
RewindableObject (const RewindableObject &rhs) | |
RewindableObject & | operator= (const BASE_TYPE &rhs) |
RewindableObject & | operator= (const RewindableObject &rhs) |
void | SetOwningConnectionId (AzNetworking::ConnectionId owningConnectionId) |
operator const BASE_TYPE & () const | |
const BASE_TYPE & | Get () const |
const BASE_TYPE & | GetPrevious () const |
const BASE_TYPE & | GetLastSerializedValue () const |
BASE_TYPE & | Modify () |
bool | operator== (const BASE_TYPE &rhs) const |
bool | operator!= (const BASE_TYPE &rhs) const |
bool | Serialize (AzNetworking::ISerializer &serializer) |
A simple serializable data container that keeps a history of previous values, and can fetch those old values on request.
|
inline |
Constructor.
value | base type value to construct from |
|
inlineexplicit |
Copy construct from underlying base type.
value | base type value to construct from |
owningConnectionId | the entity id of the owning object |
|
inline |
Copy construct from another rewindable history buffer.
rhs | rewindable history buffer to construct from |
|
inline |
Const base type retriever.
|
inline |
Const base type retriever for value at last known serialized value or the nearest to it.
|
inline |
|
inline |
Base type retriever.
|
inline |
Const base type operator.
|
inline |
Inequality operator.
rhs | base type value to compare against |
|
inline |
Assignment from underlying base type.
rhs | base type value to assign from |
|
inline |
Assignment from rewindable history buffer.
rhs | rewindable history buffer to assign from |
|
inline |
Equality operator.
rhs | base type value to compare against |
|
inline |
Base serialize method for all serializable structures or classes to implement
serializer | ISerializer instance to use for serialization |
|
inline |
Sets the owning connectionId for the given rewindable object instance.
owningConnectionId | the new connectionId to use as the owning connectionId. |