foobar2000 SDK
2015-08-03
|
#include <bit_array.h>
Public Member Functions | |
t_size | calc_count (bool val, t_size start, t_size count, t_size count_max=~0) const |
virtual t_size | find (bool val, t_size start, t_ssize count) const |
t_size | find_first (bool val, t_size start, t_size max) const |
t_size | find_next (bool val, t_size previous, t_size max) const |
virtual bool | get (t_size n) const =0 |
bool | operator[] (t_size n) const |
Protected Member Functions | |
bit_array () | |
~bit_array () | |
Bit array interface class, constant version (you can only retrieve values).
Range of valid indexes depends on the context. When passing a bit_array as a parameter to some code, valid index range must be signaled independently.
Definition at line 6 of file bit_array.h.
|
inlineprotected |
Definition at line 34 of file bit_array.h.
|
inlineprotected |
Definition at line 35 of file bit_array.h.
|
inline |
Definition at line 22 of file bit_array.h.
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.
Reimplemented in bit_array_one, bit_array_val, bit_array_false, bit_array_true, bit_array_not, pfc::bit_array_flatIndexList, and pfc::bit_array_var_impl.
Definition at line 11 of file bit_array.h.
Definition at line 31 of file bit_array.h.
Definition at line 32 of file bit_array.h.
|
pure virtual |
Implemented in bit_array_order_changed, bit_array_bittable, bit_array_one, bit_array_val, bit_array_false, bit_array_true, bit_array_not, bit_array_xor, bit_array_or, bit_array_and, bit_array_range, bit_array_wrapper_permutation, metadb_io_hintlist::metadb_io_hintlist_wrapper_part4, bit_array_var_table_t< T >, pfc::bit_array_flatIndexList, bit_array_table_t< T >, and pfc::bit_array_var_impl.
|
inline |
Definition at line 20 of file bit_array.h.