foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
pfc::sort_callback_impl_auto_wrap_t< t_container >

#include <sort.h>

+ Inheritance diagram for pfc::sort_callback_impl_auto_wrap_t< t_container >:

Public Member Functions

 sort_callback_impl_auto_wrap_t (t_container &p_data)
 
int compare (t_size p_index1, t_size p_index2) const
 
void swap (t_size p_index1, t_size p_index2)
 
- Public Member Functions inherited from pfc::sort_callback
void swap_check (t_size p_index1, t_size p_index2)
 

Private Attributes

t_container & m_data
 

Detailed Description

template<typename t_container>
class pfc::sort_callback_impl_auto_wrap_t< t_container >

Definition at line 124 of file sort.h.

Constructor & Destructor Documentation

template<typename t_container>
pfc::sort_callback_impl_auto_wrap_t< t_container >::sort_callback_impl_auto_wrap_t ( t_container &  p_data)
inline

Definition at line 127 of file sort.h.

127 : m_data(p_data) {}

Member Function Documentation

template<typename t_container>
int pfc::sort_callback_impl_auto_wrap_t< t_container >::compare ( t_size  p_index1,
t_size  p_index2 
) const
inlinevirtual

Implements pfc::sort_callback.

Definition at line 128 of file sort.h.

129  {
130  return compare_t(m_data[p_index1],m_data[p_index2]);
131  }
int compare_t(const hasher_md5_result &p_item1, const hasher_md5_result &p_item2)
Definition: hasher_md5.h:20
template<typename t_container>
void pfc::sort_callback_impl_auto_wrap_t< t_container >::swap ( t_size  p_index1,
t_size  p_index2 
)
inlinevirtual

Implements pfc::sort_callback.

Definition at line 133 of file sort.h.

134  {
135  swap_t(m_data[p_index1],m_data[p_index2]);
136  }
void swap_t(T &p_item1, T &p_item2)
Definition: primitives.h:285

Field Documentation

template<typename t_container>
t_container& pfc::sort_callback_impl_auto_wrap_t< t_container >::m_data
private

Definition at line 138 of file sort.h.


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