|
| basic_snapshot (const registry_type &source) noexcept |
| Constructs an instance that is bound to a given registry.
|
|
| basic_snapshot (const basic_snapshot &)=delete |
| Default copy constructor, deleted on purpose.
|
|
| basic_snapshot (basic_snapshot &&) noexcept=default |
| Default move constructor.
|
|
| ~basic_snapshot ()=default |
| Default destructor.
|
|
basic_snapshot & | operator= (const basic_snapshot &)=delete |
| Default copy assignment operator, deleted on purpose.
|
|
basic_snapshot & | operator= (basic_snapshot &&) noexcept=default |
| Default move assignment operator.
|
|
template<typename Type, typename Archive> |
const basic_snapshot & | get (Archive &archive, const id_type id=type_hash< Type >::value()) const |
| Serializes all elements of a type with associated identifiers.
|
|
template<typename Type, typename Archive, typename It> |
const basic_snapshot & | get (Archive &archive, It first, It last, const id_type id=type_hash< Type >::value()) const |
| Serializes all elements of a type with associated identifiers for the entities in a range.
|
|
template<typename Registry>
class entt::basic_snapshot< Registry >
Utility class to create snapshots from a registry.
A snapshot can be either a dump of the entire registry or a narrower selection of elements of interest.
This type can be used in both cases if provided with a correctly configured output archive.
- Template Parameters
-
Registry | Basic registry type. |
Definition at line 47 of file snapshot.hpp.
template<typename Registry>
template<typename Type, typename Archive, typename It>
Serializes all elements of a type with associated identifiers for the entities in a range.
- Template Parameters
-
Type | Type of elements to serialize. |
Archive | Type of output archive. |
It | Type of input iterator. |
- Parameters
-
archive | A valid reference to an output archive. |
first | An iterator to the first element of the range to serialize. |
last | An iterator past the last element of the range to serialize. |
id | Optional name used to map the storage within the registry. |
- Returns
- An object of this type to continue creating the snapshot.
Definition at line 140 of file snapshot.hpp.