Easys
A minimalist, header-only C++ ECS library for efficient and fuss-free entity and component management.
|
#include <sparse_set.hpp>
Public Member Functions | |
void | accommodate (const Key key) |
void | set (const Key key, const Value &value) |
void | set (const Key key, Value &&value) |
const Value & | get (const Key key) const |
Value & | get (const Key key) |
const Value & | operator[] (const Key key) const |
Value & | operator[] (const Key key) |
void | remove (const Key key) |
template<typename Func > | |
void | forEach (Func f) |
constexpr bool | contains (const Key key) const |
constexpr size_t | size () const |
const std::vector< Key > & | getKeys () const |
std::vector< Value > & | getValues () |
const std::vector< Value > & | getValues () const |
constexpr size_t | maxSize () const noexcept |
void | clear () |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexprnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |