|
CeresEngine 0.2.0
A game development framework
|
A base class for serializer and deserializer states. More...
#include <CeresEngine/Serialization/Serialization.hpp>
Public Member Functions | |
| virtual | ~SerializationState () noexcept=default |
| virtual bool | isSerializerState () const noexcept |
| Checks if the state represents a serializer state. | |
| virtual bool | isDeserializerState () const noexcept |
| Checks if the state represents a deserializer state. | |
| template<typename T , typename... Args> | |
| T & | pushObjectValue (Args &&... args) |
| Pushes a new object value to the state. | |
| template<typename T > | |
| T & | pushObject (T &object) |
| Pushes a new object value to the state. | |
| template<typename T > | |
| T & | getObject () |
| Gets an object from tge state. | |
| template<typename T > | |
| const T & | getObject () const |
| Gets an object from tge state. | |
| template<typename T > | |
| T * | getObjectIf () |
| Gets an object from tge state. | |
| template<typename T > | |
| const T * | getObjectIf () const |
| Gets an object from tge state. | |
| template<typename T > | |
| void | popObject () |
| Pops an object value from the state. | |
Private Attributes | |
| MultiMap< Type, Box > | mObjects |
A base class for serializer and deserializer states.
|
virtualdefaultnoexcept |
Gets an object from tge state.
Objects can be pushed on the state by calling pushObject and removed by calling popObject.
Gets an object from tge state.
Objects can be pushed on the state by calling pushObject and removed by calling popObject.
Gets an object from tge state.
Objects can be pushed on the state by calling pushObject and removed by calling popObject.
Gets an object from tge state.
Objects can be pushed on the state by calling pushObject and removed by calling popObject.
Checks if the state represents a deserializer state.
Checks if the state represents a serializer state.
Pops an object value from the state.
Pushes a new object value to the state.
This value will be available until pop by calling popObject.
|
inline |
Pushes a new object value to the state.
This value will be available until pop by calling popObject.