4#include "../Foundation/PrimitiveTypes.h"
33 bool operator==(
const Generation other)
const {
return used == other.used and generation == other.generation; }
34 bool operator!=(
const Generation other)
const {
return used != other.used or generation != other.generation; }
36 Generation generation;
45 bool isValid()
const {
return generation.used != 0; }
51 key.generation.used = generation.used;
52 key.generation.generation = generation.generation;
60 return index == other.index and generation.used == other.generation.used and
61 generation.generation == other.generation.generation;
65 static constexpr uint32_t MaxIndex = 0xffffffff;
#define SC_COMPILER_EXPORT
Macro for symbol visibility in non-MSVC compilers.
Definition: Compiler.h:78
unsigned int uint32_t
Platform independent (4) bytes unsigned int.
Definition: PrimitiveTypes.h:38
A sparse vector keeping objects at a stable memory location.
Definition: ArenaMap.h:27
A sparse vector keeping objects at a stable memory location.
Definition: ArenaMapKey.h:22