foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
bit_array_val

#include <bit_array_impl.h>

+ Inheritance diagram for bit_array_val:

Public Member Functions

 bit_array_val (bool v)
 
t_size find (bool p_val, t_size start, t_ssize count) const
 
bool get (t_size n) const
 
- Public Member Functions inherited from pfc::bit_array
t_size calc_count (bool val, t_size start, t_size count, t_size count_max=~0) 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
 
bool operator[] (t_size n) const
 

Private Attributes

bool val
 

Additional Inherited Members

- Protected Member Functions inherited from pfc::bit_array
 bit_array ()
 
 ~bit_array ()
 

Detailed Description

Definition at line 127 of file bit_array_impl.h.

Constructor & Destructor Documentation

bit_array_val::bit_array_val ( bool  v)
inline

Definition at line 131 of file bit_array_impl.h.

131 : val(v) {}

Member Function Documentation

t_size bit_array_val::find ( bool  val,
t_size  start,
t_ssize  count 
) const
inlinevirtual

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 from pfc::bit_array.

Definition at line 133 of file bit_array_impl.h.

134  {return val==p_val ? start : start+count;}
bool bit_array_val::get ( t_size  n) const
inlinevirtual

Implements pfc::bit_array.

Definition at line 132 of file bit_array_impl.h.

132 {return val;}

Field Documentation

bool bit_array_val::val
private

Definition at line 129 of file bit_array_impl.h.


The documentation for this class was generated from the following file: