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

#include <bsearch.h>

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

Public Member Functions

 bsearch_callback_impl_simple_t (const t_container &p_container, t_compare p_compare, const t_param &p_param)
 
int test (t_size p_index) const
 

Private Attributes

t_compare m_compare
 
const t_container & m_container
 
const t_param & m_param
 

Detailed Description

template<typename t_container, typename t_compare, typename t_param>
class pfc::bsearch_callback_impl_simple_t< t_container, t_compare, t_param >

Definition at line 14 of file bsearch.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file bsearch.h.

20  : m_container(p_container), m_compare(p_compare), m_param(p_param)
21  {
22  }
const t_container & m_container
Definition: bsearch.h:24

Member Function Documentation

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

Implements pfc::bsearch_callback.

Definition at line 16 of file bsearch.h.

16  {
17  return m_compare(m_container[p_index],m_param);
18  }
const t_container & m_container
Definition: bsearch.h:24

Field Documentation

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

Definition at line 25 of file bsearch.h.

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

Definition at line 24 of file bsearch.h.

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

Definition at line 26 of file bsearch.h.


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