foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
bit_array_not

#include <bit_array_impl.h>

+ Inheritance diagram for bit_array_not:

Public Member Functions

 bit_array_not (const bit_array &p_a1)
 
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
 

Private Attributes

const bit_arraya1
 

Additional Inherited Members

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

Detailed Description

Negation of another array.
Valid index range is the same as valid index range of the parameter array.

Definition at line 100 of file bit_array_impl.h.

Constructor & Destructor Documentation

bit_array_not::bit_array_not ( const bit_array p_a1)
inline

Definition at line 104 of file bit_array_impl.h.

104 : a1(p_a1) {}
const bit_array & a1

Member Function Documentation

t_size bit_array_not::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 106 of file bit_array_impl.h.

107  {return a1.find(!val,start,count);}
virtual 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.
Definition: bit_array.h:11
const bit_array & a1
bool bit_array_not::get ( t_size  n) const
inlinevirtual

Implements pfc::bit_array.

Definition at line 105 of file bit_array_impl.h.

105 {return !a1.get(n);}
virtual bool get(t_size n) const =0
const bit_array & a1

Field Documentation

const bit_array& bit_array_not::a1
private

Definition at line 102 of file bit_array_impl.h.


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