foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::list_const_cast_t< to, from >

#include <list.h>

+ Inheritance diagram for pfc::list_const_cast_t< to, from >:

Public Member Functions

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

Private Attributes

const list_base_const_t< from > & m_from
 

Additional Inherited Members

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

Detailed Description

template<typename to, typename from>
class pfc::list_const_cast_t< to, from >

Definition at line 142 of file list.h.

Constructor & Destructor Documentation

template<typename to , typename from >
pfc::list_const_cast_t< to, from >::list_const_cast_t ( const list_base_const_t< from > &  p_from)
inline

Definition at line 145 of file list.h.

145 : m_from(p_from) {}
const list_base_const_t< from > & m_from
Definition: list.h:154

Member Function Documentation

template<typename to , typename from >
t_size pfc::list_const_cast_t< to, from >::get_count ( ) const
inlinevirtual

Implements pfc::list_base_const_t< to >.

Definition at line 146 of file list.h.

146 {return m_from.get_count();}
const list_base_const_t< from > & m_from
Definition: list.h:154
virtual t_size get_count() const =0
template<typename to , typename from >
void pfc::list_const_cast_t< to, from >::get_item_ex ( to &  p_out,
t_size  n 
) const
inlinevirtual

Implements pfc::list_base_const_t< to >.

Definition at line 147 of file list.h.

148  {
149  from temp;
150  m_from.get_item_ex(temp,n);
151  p_out = temp;
152  }
const list_base_const_t< from > & m_from
Definition: list.h:154
virtual void get_item_ex(T &p_out, t_size n) const =0

Field Documentation

template<typename to , typename from >
const list_base_const_t<from>& pfc::list_const_cast_t< to, from >::m_from
private

Definition at line 154 of file list.h.


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