Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
es::skeletal::HandleTable< T > Class Template Reference

#include <SkeletalModule.hpp>

Public Member Functions

int add (T value)
T * find (int id)
bool erase (int id)
template<class Pred>
void eraseIf (Pred pred)
void clear ()

Detailed Description

template<class T>
class es::skeletal::HandleTable< T >

Integer handles to owned objects.

Ids are never reused within a run: a caller holding a stale handle gets null rather than somebody else's skeleton, which is the difference between a bug that reports itself and one that renders the wrong character.

Definition at line 221 of file SkeletalModule.hpp.

Member Function Documentation

◆ add()

template<class T>
int es::skeletal::HandleTable< T >::add ( T value)
inline

Definition at line 223 of file SkeletalModule.hpp.

◆ clear()

template<class T>
void es::skeletal::HandleTable< T >::clear ( )
inline

Definition at line 245 of file SkeletalModule.hpp.

◆ erase()

template<class T>
bool es::skeletal::HandleTable< T >::erase ( int id)
inline

Definition at line 234 of file SkeletalModule.hpp.

◆ eraseIf()

template<class T>
template<class Pred>
void es::skeletal::HandleTable< T >::eraseIf ( Pred pred)
inline

Drop every entry matching pred — how a skeleton takes its instances with it, since they hold data it owns and must not outlive it.

Definition at line 239 of file SkeletalModule.hpp.

◆ find()

template<class T>
T * es::skeletal::HandleTable< T >::find ( int id)
inline

Definition at line 229 of file SkeletalModule.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/bindings/modules/spine/SkeletalModule.hpp