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

#include <bit_array.h>

+ Inheritance diagram for bit_array_wrapper_permutation:

Public Member Functions

 bit_array_wrapper_permutation (const t_size *p_permutation, t_size p_size)
 
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_size *const m_permutation
 
const t_size m_size
 

Additional Inherited Members

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

Detailed Description

Definition at line 52 of file bit_array.h.

Constructor & Destructor Documentation

bit_array_wrapper_permutation::bit_array_wrapper_permutation ( const t_size p_permutation,
t_size  p_size 
)
inline

Definition at line 54 of file bit_array.h.

54 : m_permutation(p_permutation), m_size(p_size) {}
const t_size *const m_permutation
Definition: bit_array.h:63

Member Function Documentation

bool bit_array_wrapper_permutation::get ( t_size  n) const
inlinevirtual

Implements pfc::bit_array.

Definition at line 55 of file bit_array.h.

55  {
56  if (n < m_size) {
57  return m_permutation[n] != n;
58  } else {
59  return false;
60  }
61  }
const t_size *const m_permutation
Definition: bit_array.h:63

Field Documentation

const t_size* const bit_array_wrapper_permutation::m_permutation
private

Definition at line 63 of file bit_array.h.

const t_size bit_array_wrapper_permutation::m_size
private

Definition at line 64 of file bit_array.h.


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