foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::list_permutation_t< T >

#include <list.h>

+ Inheritance diagram for pfc::list_permutation_t< T >:

Public Member Functions

 list_permutation_t (const list_base_const_t< T > &p_base, const t_size *p_order, t_size p_count)
 
t_size get_count () const
 
void get_item_ex (T &p_out, t_size n) const
 
- Public Member Functions inherited from pfc::list_base_const_t< T >
template<typename t_compare , typename t_param , typename t_permutation >
bool bsearch_permutation_t (t_compare p_compare, t_param const &p_param, const t_permutation &p_permutation, t_size &p_index) const
 
template<typename t_compare , typename t_param >
bool bsearch_t (t_compare p_compare, t_param const &p_param, t_size &p_index) const
 
template<typename t_callback >
void enumerate (t_callback &p_callback) const
 
template<typename t_compare , typename t_permutation >
t_size find_duplicates_sorted_permutation_t (t_compare p_compare, t_permutation const &p_permutation, bit_array_var &p_out)
 
template<typename t_compare >
t_size find_duplicates_sorted_t (t_compare p_compare, bit_array_var &p_out) const
 
template<typename t_search >
t_size find_item (const t_search &p_item) const
 
T get_item (t_size n) const
 
t_size get_size () const
 
template<typename t_search >
bool have_item (const t_search &p_item) const
 
bool operator!= (const t_self &item2) const
 
bool operator== (const t_self &item2) const
 
T operator[] (t_size n) const
 
template<typename t_compare , typename t_permutation >
void sort_get_permutation_t (t_compare p_compare, t_permutation const &p_permutation) const
 
template<typename t_compare , typename t_permutation >
void sort_stable_get_permutation_t (t_compare p_compare, t_permutation const &p_permutation) const
 

Private Attributes

const list_base_const_t< T > & m_base
 
t_size m_count
 
const t_sizem_order
 

Additional Inherited Members

- Public Types inherited from pfc::list_base_const_t< T >
typedef T t_item
 
- Static Public Member Functions inherited from pfc::list_base_const_t< T >
static bool g_equals (const t_self &item1, const t_self &item2)
 
- Protected Member Functions inherited from pfc::list_base_const_t< T >
 list_base_const_t ()
 
 list_base_const_t (const t_self &)
 
 ~list_base_const_t ()
 
void operator= (const t_self &)
 

Detailed Description

template<class T>
class pfc::list_permutation_t< T >

Definition at line 623 of file list.h.

Constructor & Destructor Documentation

template<class T >
pfc::list_permutation_t< T >::list_permutation_t ( const list_base_const_t< T > &  p_base,
const t_size p_order,
t_size  p_count 
)
inline

Definition at line 628 of file list.h.

629  : m_base(p_base), m_order(p_order), m_count(p_count)
630  {
631  PFC_ASSERT(m_base.get_count() >= m_count);
632  }
const list_base_const_t< T > & m_base
Definition: list.h:634
const t_size * m_order
Definition: list.h:635

Member Function Documentation

template<class T >
t_size pfc::list_permutation_t< T >::get_count ( ) const
inlinevirtual

Implements pfc::list_base_const_t< T >.

Definition at line 626 of file list.h.

626 {return m_count;}
template<class T >
void pfc::list_permutation_t< T >::get_item_ex ( T p_out,
t_size  n 
) const
inlinevirtual

Implements pfc::list_base_const_t< T >.

Definition at line 627 of file list.h.

627 {m_base.get_item_ex(p_out,m_order[n]);}
const list_base_const_t< T > & m_base
Definition: list.h:634
const t_size * m_order
Definition: list.h:635

Field Documentation

template<class T >
const list_base_const_t<T>& pfc::list_permutation_t< T >::m_base
private

Definition at line 634 of file list.h.

template<class T >
t_size pfc::list_permutation_t< T >::m_count
private

Definition at line 636 of file list.h.

template<class T >
const t_size* pfc::list_permutation_t< T >::m_order
private

Definition at line 635 of file list.h.


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