Nexus Engine  v0.0.1
Loading...
Searching...
No Matches
Nexus::ECS::Registry Class Referenceexport

Classes

class  QueryView

Public Member Functions

 Registry ()=default
 ~Registry ()=default
 Registry (const Registry &)=delete
Registryoperator= (const Registry &)=delete
 Registry (Registry &&) noexcept=default
Registryoperator= (Registry &&) noexcept=default
template<Component T>
ComponentPool< T > & Pool ()
template<Component T>
const ComponentPool< T > & Pool () const
template<Component T>
ComponentPool< T > * TryPool ()
template<Component T>
const ComponentPool< T > * TryPool () const
template<Component T>
bool HasPool () const
template<Component... Components>
std::vector< EntityQuery ()
template<Component... Components>
std::vector< EntityQueryAny ()
template<Component... Components>
QueryView< Components... > View ()
void RemoveEntity (Entity entity)
void Clear ()

Constructor & Destructor Documentation

◆ Registry() [1/3]

Nexus::ECS::Registry::Registry ( )
default

◆ ~Registry()

Nexus::ECS::Registry::~Registry ( )
default

◆ Registry() [2/3]

Nexus::ECS::Registry::Registry ( const Registry & )
delete

◆ Registry() [3/3]

Nexus::ECS::Registry::Registry ( Registry && )
defaultnoexcept

Member Function Documentation

◆ Clear()

void Nexus::ECS::Registry::Clear ( )

◆ HasPool()

template<Component T>
bool Nexus::ECS::Registry::HasPool ( ) const
inline

◆ operator=() [1/2]

Registry & Nexus::ECS::Registry::operator= ( const Registry & )
delete

◆ operator=() [2/2]

Registry & Nexus::ECS::Registry::operator= ( Registry && )
defaultnoexcept

◆ Pool() [1/2]

template<Component T>
ComponentPool< T > & Nexus::ECS::Registry::Pool ( )
inline

◆ Pool() [2/2]

template<Component T>
const ComponentPool< T > & Nexus::ECS::Registry::Pool ( ) const
inline

◆ Query()

template<Component... Components>
std::vector< Entity > Nexus::ECS::Registry::Query ( )
inline

◆ QueryAny()

template<Component... Components>
std::vector< Entity > Nexus::ECS::Registry::QueryAny ( )
inline

◆ RemoveEntity()

void Nexus::ECS::Registry::RemoveEntity ( Entity entity)

◆ TryPool() [1/2]

template<Component T>
ComponentPool< T > * Nexus::ECS::Registry::TryPool ( )
inline

◆ TryPool() [2/2]

template<Component T>
const ComponentPool< T > * Nexus::ECS::Registry::TryPool ( ) const
inline

◆ View()

template<Component... Components>
QueryView< Components... > Nexus::ECS::Registry::View ( )
inline

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