gwnavgeneration/common/bitarray_1024.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_BitArray_1024_H
10 #define GwNavGen_BitArray_1024_H
27 BitArray_1024(MemoryHeap* heap =
KY_NULL) : m_wordsCount(0), m_rootWord(0), m_words(
KY_NULL), m_allocated(false), m_heap(heap)
40 KY_DEBUG_ASSERTN(bit_idx >= 0, (
"bit_idx must be greater or equal to 0"));
43 KyUInt32 bit_idx_in_word = bit_idx & 0x1F;
45 KY_DEBUG_ASSERTN(word_idx < (
KyUInt32)m_wordsCount, (
"word_idx out of bounds"));
47 m_rootWord |= (1 << word_idx);
48 m_words[word_idx] |= (1 << bit_idx_in_word);
54 KyUInt32 bit_idx_in_word = bit_idx & 0x1F;
55 return m_words[word_idx] & (1 << bit_idx_in_word);
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36