foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::reorder_callback_impl_delta

#include <sort.h>

+ Inheritance diagram for pfc::reorder_callback_impl_delta:

Public Member Functions

 reorder_callback_impl_delta (reorder_callback &p_data, t_size p_delta)
 
void swap (t_size p_index1, t_size p_index2)
 

Private Attributes

reorder_callbackm_data
 
t_size m_delta
 

Detailed Description

Definition at line 28 of file sort.h.

Constructor & Destructor Documentation

pfc::reorder_callback_impl_delta::reorder_callback_impl_delta ( reorder_callback p_data,
t_size  p_delta 
)
inline

Definition at line 31 of file sort.h.

31 : m_data(p_data), m_delta(p_delta) {}
reorder_callback & m_data
Definition: sort.h:37

Member Function Documentation

void pfc::reorder_callback_impl_delta::swap ( t_size  p_index1,
t_size  p_index2 
)
inlinevirtual

Implements pfc::reorder_callback.

Definition at line 32 of file sort.h.

33  {
34  m_data.swap(p_index1+m_delta,p_index2+m_delta);
35  }
reorder_callback & m_data
Definition: sort.h:37
virtual void swap(t_size p_index1, t_size p_index2)=0

Field Documentation

reorder_callback& pfc::reorder_callback_impl_delta::m_data
private

Definition at line 37 of file sort.h.

t_size pfc::reorder_callback_impl_delta::m_delta
private

Definition at line 38 of file sort.h.


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