jubilant-funicular
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
nta::ComponentRegistry Class Reference

A store of every Component type in use by an ECS. More...

#include <ECS.h>

Collaboration diagram for nta::ComponentRegistry:
Collaboration graph
[legend]

Classes

struct  Record
 

Public Types

using iterator = std::unordered_map< std::size_t, Record >::iterator
 
using const_iterator = std::unordered_map< std::size_t, Record >::const_iterator
 

Public Member Functions

template<typename T >
void register_component ()
 
template<typename T >
utils::Option< Recordget_record () const
 
utils::Option< Recordoperator[] (std::size_t hash) const
 
std::size_t size () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 

Private Attributes

std::unordered_map< std::size_t, Recordm_records
 

Detailed Description

A store of every Component type in use by an ECS.

Definition at line 37 of file ECS.h.


The documentation for this class was generated from the following file: