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

#include <bit_array_impl.h>

+ Inheritance diagram for bit_array_var_table_t< T >:

Public Member Functions

 bit_array_var_table_t (T *p_data, t_size p_count, bool p_after=false)
 
bool get (t_size n) const
 
void set (t_size n, bool val)
 
- 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
 
Tdata
 

Additional Inherited Members

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

Detailed Description

template<class T>
class bit_array_var_table_t< T >

Definition at line 24 of file bit_array_impl.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file bit_array_impl.h.

31  : data(p_data), count(p_count), after(p_after)
32  {
33  }

Member Function Documentation

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

Implements pfc::bit_array.

Definition at line 35 of file bit_array_impl.h.

35  {
36  if (n<count) return !!data[n];
37  else return after;
38  }
template<class T >
void bit_array_var_table_t< T >::set ( t_size  n,
bool  val 
)
inlinevirtual

Implements pfc::bit_array_var.

Definition at line 40 of file bit_array_impl.h.

40  {
41  if (n<count) data[n] = !!val;
42  }

Field Documentation

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

Definition at line 28 of file bit_array_impl.h.

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

Definition at line 27 of file bit_array_impl.h.

template<class T >
T* bit_array_var_table_t< T >::data
private

Definition at line 26 of file bit_array_impl.h.


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