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

#include <bit_array_impl.h>

+ Inheritance diagram for bit_array_order_changed:

Public Member Functions

 bit_array_order_changed (const t_size *p_order)
 
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
 
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
 
bool operator[] (t_size n) const
 

Private Attributes

const t_sizem_order
 

Additional Inherited Members

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

Detailed Description

Bit array that takes a permutation and signals indexes reordered by the permutation.
Valid index range same as length of the permutation.

Definition at line 225 of file bit_array_impl.h.

Constructor & Destructor Documentation

bit_array_order_changed::bit_array_order_changed ( const t_size p_order)
inline

Definition at line 227 of file bit_array_impl.h.

227 : m_order(p_order) {}

Member Function Documentation

bool bit_array_order_changed::get ( t_size  n) const
inlinevirtual

Implements pfc::bit_array.

Definition at line 228 of file bit_array_impl.h.

229  {
230  return m_order[n] != n;
231  }

Field Documentation

const t_size* bit_array_order_changed::m_order
private

Definition at line 234 of file bit_array_impl.h.


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