foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >

#include <bsearch.h>

+ Inheritance diagram for pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >:

Public Member Functions

 bsearch_callback_impl_permutation_t (const t_container &p_container, t_compare p_compare, const t_param &p_param, const t_permutation &p_permutation)
 
int test (t_size p_index) const
 

Private Attributes

t_compare m_compare
 
const t_container & m_container
 
const t_param & m_param
 
const t_permutation & m_permutation
 

Detailed Description

template<typename t_container, typename t_compare, typename t_param, typename t_permutation>
class pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >

Definition at line 30 of file bsearch.h.

Constructor & Destructor Documentation

template<typename t_container , typename t_compare , typename t_param , typename t_permutation >
pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >::bsearch_callback_impl_permutation_t ( const t_container &  p_container,
t_compare  p_compare,
const t_param &  p_param,
const t_permutation &  p_permutation 
)
inline

Definition at line 35 of file bsearch.h.

36  : m_container(p_container), m_compare(p_compare), m_param(p_param), m_permutation(p_permutation)
37  {
38  }
const t_permutation & m_permutation
Definition: bsearch.h:43

Member Function Documentation

template<typename t_container , typename t_compare , typename t_param , typename t_permutation >
int pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >::test ( t_size  p_index) const
inlinevirtual

Implements pfc::bsearch_callback.

Definition at line 32 of file bsearch.h.

32  {
33  return m_compare(m_container[m_permutation[p_index]],m_param);
34  }
const t_permutation & m_permutation
Definition: bsearch.h:43

Field Documentation

template<typename t_container , typename t_compare , typename t_param , typename t_permutation >
t_compare pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >::m_compare
private

Definition at line 41 of file bsearch.h.

template<typename t_container , typename t_compare , typename t_param , typename t_permutation >
const t_container& pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >::m_container
private

Definition at line 40 of file bsearch.h.

template<typename t_container , typename t_compare , typename t_param , typename t_permutation >
const t_param& pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >::m_param
private

Definition at line 42 of file bsearch.h.

template<typename t_container , typename t_compare , typename t_param , typename t_permutation >
const t_permutation& pfc::bsearch_callback_impl_permutation_t< t_container, t_compare, t_param, t_permutation >::m_permutation
private

Definition at line 43 of file bsearch.h.


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