| 
    OpenLexocad
    28.0
    
   | 
 
Utility class to create snapshots from a registry. More...
#include <entt.hpp>
Public Member Functions | |
| basic_snapshot (basic_snapshot &&)=default | |
| Default move constructor.  More... | |
| basic_snapshot & | operator= (basic_snapshot &&)=default | 
| Default move assignment operator.  More... | |
| template<typename Archive > | |
| const basic_snapshot & | entities (Archive &archive) const | 
| Puts aside all the entities that are still in use.  More... | |
| template<typename Archive > | |
| const basic_snapshot & | destroyed (Archive &archive) const | 
| Puts aside destroyed entities.  More... | |
| template<typename... Component, typename Archive > | |
| const basic_snapshot & | component (Archive &archive) const | 
| Puts aside the given components.  More... | |
| template<typename... Component, typename Archive , typename It > | |
| const basic_snapshot & | component (Archive &archive, It first, It last) const | 
| Puts aside the given components for the entities in a range.  More... | |
Friends | |
| class | basic_registry< Entity > | 
| A registry is allowed to create snapshots.  More... | |
Utility class to create snapshots from a registry.
A snapshot can be either a dump of the entire registry or a narrower selection of components of interest.
 This type can be used in both cases if provided with a correctly configured output archive.
| Entity | A valid entity type (see entt_traits for more details). | 
      
  | 
  default | 
Default move constructor.
      
  | 
  inline | 
Puts aside the given components.
Each instance is serialized together with the entity to which it belongs. Entities are serialized along with their versions.
| Component | Types of components to serialize. | 
| Archive | Type of output archive. | 
| archive | A valid reference to an output archive. | 
      
  | 
  inline | 
Puts aside the given components for the entities in a range.
Each instance is serialized together with the entity to which it belongs. Entities are serialized along with their versions.
| Component | Types of components to serialize. | 
| Archive | Type of output archive. | 
| It | Type of input iterator. | 
| 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. | 
      
  | 
  inline | 
Puts aside destroyed entities.
Entities are serialized along with their versions. Entities that are still in use are not taken in consideration by this function.
| Archive | Type of output archive. | 
| archive | A valid reference to an output archive. | 
      
  | 
  inline | 
Puts aside all the entities that are still in use.
Entities are serialized along with their versions. Destroyed entities are not taken in consideration by this function.
| Archive | Type of output archive. | 
| archive | A valid reference to an output archive. | 
      
  | 
  default | 
Default move assignment operator.
      
  | 
  friend | 
A registry is allowed to create snapshots.