|
CeresEngine 0.2.0
A game development framework
|
A class that represents context for a serializer. More...
#include <CeresEngine/Serialization/Serializer.hpp>
Public Attributes | |
| SerializedObjectID | nextObjectID = 0 |
| Determines the next object ID to be allocated. | |
| HashMap< Pair< TypeID, const void * >, SerializedObjectID > | serializedObjects |
| Maps all known serialized objects to a known ID, so they can be re-used later. | |
Additional Inherited Members | |
Public Member Functions inherited from CeresEngine::SerializationState | |
| 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. | |
A class that represents context for a serializer.
| SerializedObjectID CeresEngine::SerializerState::nextObjectID = 0 |
Determines the next object ID to be allocated.
| HashMap<Pair<TypeID, const void*>, SerializedObjectID> CeresEngine::SerializerState::serializedObjects |
Maps all known serialized objects to a known ID, so they can be re-used later.