gwnavgeneration/common/bitarray_1024.h Source File
Go to the documentation of this file.
25 BitArray_1024(MemoryHeap* heap =
nullptr) : m_wordsCount(0), m_rootWord(0), m_words(
nullptr), m_allocated(false), m_heap(heap)
38 KY_DEBUG_ASSERTN(bit_idx >= 0, (
"bit_idx must be greater or equal to 0"));
41 KyUInt32 bit_idx_in_word = bit_idx & 0x1F;
43 KY_DEBUG_ASSERTN(word_idx < (
KyUInt32)m_wordsCount, (
"word_idx out of bounds"));
45 m_rootWord |= (1 << word_idx);
46 m_words[word_idx] |= (1 << bit_idx_in_word);
52 KyUInt32 bit_idx_in_word = bit_idx & 0x1F;
53 return m_words[word_idx] & (1 << bit_idx_in_word);
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
std::int32_t KyInt32
int32_t
Definition: types.h:24