10 void set(
t_size n,
bool val);
35 bool _findNearestUp(
size_t val,
size_t & outIdx )
const;
36 bool _findNearestDown(
size_t val,
size_t & outIdx )
const;
37 bool _find(
size_t val,
size_t & outIdx )
const {
t_size get_true_count() const
pfc::array_t< size_t, pfc::alloc_fast > m_content
t_size find(bool val, t_size start, t_ssize count) const
Returns the first occurance of val between start and start+count (excluding start+count), or start+count if not found; count may be negative to search back rather than forward. Can be overridden by bit_array implementations for improved speed in specific cases.
Bit array interface class, constant version (you can only retrieve values). Range of valid indexes d...
bool bsearch_simple_inline_t(const t_buffer &p_buffer, t_size p_count, t_value const &p_value, t_size &p_result)
avltree_t< t_size > m_data
Bit array interface class, variable version (you can both set and retrieve values). As with the constant version, valid index range depends on the context.
bool _find(size_t val, size_t &outIdx) const
pfc::sized_int_t< sizeof(size_t) >::t_signed t_ssize
Generic variable bit array implementation. Not very efficient to handle lots of items set to true bu...
Specialized implementation of bit_array. Indended for scenarios where fast searching for true values...