foobar2000 SDK  2015-01-14
Public Member Functions
bit_array_true

#include <bit_array_impl.h>

+ Inheritance diagram for bit_array_true:

Public Member Functions

t_size find (bool 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
 

Additional Inherited Members

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

Detailed Description

Definition at line 111 of file bit_array_impl.h.

Member Function Documentation

t_size bit_array_true::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 115 of file bit_array_impl.h.

116  {return val ? start : start+count;}
bool bit_array_true::get ( t_size  n) const
inlinevirtual

Implements pfc::bit_array.

Definition at line 114 of file bit_array_impl.h.

114 {return true;}

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