foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
bit_array_table_t< T >

#include <bit_array_impl.h>

+ Inheritance diagram for bit_array_table_t< T >:

Public Member Functions

 bit_array_table_t (const T *p_data, t_size p_count, bool p_after=false)
 
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

bool after
 
t_size count
 
const Tdata
 

Additional Inherited Members

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

Detailed Description

template<class T>
class bit_array_table_t< T >

Definition at line 5 of file bit_array_impl.h.

Constructor & Destructor Documentation

template<class T >
bit_array_table_t< T >::bit_array_table_t ( const T p_data,
t_size  p_count,
bool  p_after = false 
)
inline

Definition at line 11 of file bit_array_impl.h.

12  : data(p_data), count(p_count), after(p_after)
13  {
14  }

Member Function Documentation

template<class T >
bool bit_array_table_t< T >::get ( t_size  n) const
inlinevirtual

Implements pfc::bit_array.

Definition at line 16 of file bit_array_impl.h.

17  {
18  if (n<count) return !!data[n];
19  else return after;
20  }

Field Documentation

template<class T >
bool bit_array_table_t< T >::after
private

Definition at line 9 of file bit_array_impl.h.

template<class T >
t_size bit_array_table_t< T >::count
private

Definition at line 8 of file bit_array_impl.h.

template<class T >
const T* bit_array_table_t< T >::data
private

Definition at line 7 of file bit_array_impl.h.


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