vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::ISparseSet Class Referenceabstract

Type-erased interface for SparseSet, so one registry holds every type. More...

#include <sparse_set.h>

Inheritance diagram for Vkm::Engine::ISparseSet:
Vkm::Engine::SparseSet< T >

Public Member Functions

virtual void removeIfPresent (uint32_t key)=0
 Remove the element at the given key, if this set holds one.
virtual void compact ()=0
 Release the sparse array's slack, keeping every live element.

Detailed Description

Type-erased interface for SparseSet, so one registry holds every type.

Member Function Documentation

◆ removeIfPresent()

virtual void Vkm::Engine::ISparseSet::removeIfPresent ( uint32_t key)
pure virtual

Remove the element at the given key, if this set holds one.

Parameters
keyExternal sparse key.

Implemented in Vkm::Engine::SparseSet< T >.

◆ compact()

virtual void Vkm::Engine::ISparseSet::compact ( )
pure virtual

Release the sparse array's slack, keeping every live element.

For after a bulk build (see Scene::compact).

Implemented in Vkm::Engine::SparseSet< T >.


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