foobar2000 SDK  2015-08-03
Public Member Functions | Private Types
metadb_handle_list_t< t_alloc >

#include <metadb_handle.h>

+ Inheritance diagram for metadb_handle_list_t< t_alloc >:

Public Member Functions

 metadb_handle_list_t (const t_self &p_source)
 
 metadb_handle_list_t (const t_interface &p_source)
 
 metadb_handle_list_t ()
 
 metadb_handle_list_t (t_self &&p_source)
 
t_size bsearch_by_pointer (const metadb_handle_ptr &val) const
 
double calc_total_duration () const
 
bool extract_single_path (const char *&path) const
 
t_selfoperator+= (const t_interface &source)
 
t_selfoperator+= (const metadb_handle_ptr &source)
 
const t_selfoperator= (const t_self &p_source)
 
const t_selfoperator= (const t_interface &p_source)
 
const t_selfoperator= (t_self &&p_source)
 
void remove_duplicates ()
 
void sort_by_format (const char *spec, titleformat_hook *p_hook)
 
void sort_by_format (const service_ptr_t< titleformat_object > &p_script, titleformat_hook *p_hook, int direction=1)
 
void sort_by_format_get_order (t_size *order, const char *spec, titleformat_hook *p_hook) const
 
void sort_by_format_get_order (t_size *order, const service_ptr_t< titleformat_object > &p_script, titleformat_hook *p_hook) const
 
void sort_by_path ()
 
void sort_by_path_quick ()
 
void sort_by_pointer ()
 
void sort_by_pointer_remove_duplicates ()
 
void sort_by_relative_path ()
 
void sort_by_relative_path_get_order (t_size *order) const
 
- Public Member Functions inherited from pfc::list_t< service_ptr_t< metadb_handle >, t_alloc >
t_selfoperator+= (t_in const &p_source)
 
t_selfoperator= (t_in const &source)
 
t_selfoperator|= (t_in const &p_source)
 
- Public Member Functions inherited from pfc::list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > >
 list_impl_t ()
 
 list_impl_t (const t_self &p_source)
 
t_size _insert_item_t (const t_in &item, t_size idx)
 
t_size _insert_items_v (const list_base_const_t< service_ptr_t< metadb_handle > > &source, t_size base)
 
t_size add_item (const service_ptr_t< metadb_handle > &item)
 
t_size add_item (const t_in &item)
 
void add_items (const t_in &in)
 
void filter_mask (const bit_array &mask)
 
void filter_mask (const bool *mask)
 
t_size find_duplicates_sorted_permutation_t (t_compare p_compare, t_permutation 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
 
t_size get_count () const
 
service_ptr_t< metadb_handleget_item (t_size n) const
 
void get_item_ex (service_ptr_t< metadb_handle > &p_out, t_size n) const
 
const service_ptr_t< metadb_handle > & get_item_ref (t_size n) const
 
void get_items_mask (list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > > &out, const bit_array &mask)
 
const service_ptr_t< metadb_handle > * get_ptr () const
 
service_ptr_t< metadb_handle > * get_ptr ()
 
t_size get_size () const
 
bool have_item (const t_search &p_item) const
 
t_size insert_item (const t_in &item, t_size idx)
 
t_size insert_item (const service_ptr_t< metadb_handle > &item, t_size idx)
 
t_size insert_items (const list_base_const_t< service_ptr_t< metadb_handle > > &source, t_size base)
 
t_size insert_items (const list_base_t< service_ptr_t< metadb_handle > > &source, t_size base)
 
t_size insert_items (const t_in &source, t_size base)
 
void move_from (t_self &other)
 
t_selfoperator+= (t_in const &p_source)
 
t_selfoperator= (t_in const &source)
 
const service_ptr_t< metadb_handle > & operator[] (t_size n) const
 
service_ptr_t< metadb_handle > & operator[] (t_size n)
 
t_selfoperator|= (t_in const &p_source)
 
void prealloc (t_size count)
 
void remove_all ()
 
service_ptr_t< metadb_handleremove_by_idx (t_size idx)
 
void remove_from_idx (t_size idx, t_size num)
 
void remove_item (const service_ptr_t< metadb_handle > &item)
 
void remove_mask (const bit_array &mask)
 
void remove_mask (const bool *mask)
 
void reorder_partial (t_size p_base, const t_size *p_order, t_size p_count)
 
void replace_item (t_size idx, const service_ptr_t< metadb_handle > &item)
 
void set_count (t_size p_count)
 
void set_size (t_size p_count)
 
void sort ()
 
void sort (typename t_base::sort_callback &p_callback)
 
void sort_stable (typename t_base::sort_callback &p_callback)
 
void sort_stable_t (t_compare p_compare)
 
void sort_t (t_compare p_compare)
 
void swap_item_with (t_size p_index, service_ptr_t< metadb_handle > &p_item)
 
void swap_items (t_size p_index1, t_size p_index2)
 
- Public Member Functions inherited from pfc::list_base_t< service_ptr_t< metadb_handle > >
t_size add_item (const service_ptr_t< metadb_handle > &item)
 
t_size add_items (const list_base_const_t< service_ptr_t< metadb_handle > > &items)
 
t_size add_items_fromptr (const service_ptr_t< metadb_handle > *source, t_size num)
 
t_size add_items_repeat (service_ptr_t< metadb_handle >item, t_size num)
 
void for_each (t_func p_func)
 
void for_each (t_func p_func, const bit_array &p_mask)
 
t_size insert_item (const service_ptr_t< metadb_handle > &item, t_size base)
 
t_size insert_items_fromptr (const service_ptr_t< metadb_handle > *source, t_size num, t_size base)
 
t_size insert_items_repeat (const service_ptr_t< metadb_handle > &item, t_size num, t_size base)
 
t_selfoperator+= (t_in const &p_source)
 
t_selfoperator= (t_in const &source)
 
service_ptr_t< metadb_handleoperator[] (t_size n) const
 
t_selfoperator|= (t_in const &p_source)
 
void remove_all ()
 
void remove_all_ex (t_releasefunc p_func)
 
void remove_duplicates_t (t_compare p_compare)
 
void remove_mask (const bit_array &mask)
 
void remove_mask_ex (const bit_array &p_mask, t_releasefunc p_func)
 
void reorder (const t_size *p_data)
 
service_ptr_t< metadb_handlereplace_item_ex (t_size p_index, const service_ptr_t< metadb_handle > &p_item)
 
virtual void sort (sort_callback &p_callback)=0
 
void sort ()
 
void sort_remove_duplicates_t (t_compare p_compare)
 
virtual void sort_stable (sort_callback &p_callback)=0
 
void sort_stable_remove_duplicates_t (t_compare p_compare)
 
void sort_stable_t (t_compare p_compare)
 
void sort_t (t_compare p_compare)
 
void truncate (t_size val)
 
- Public Member Functions inherited from pfc::list_base_const_t< service_ptr_t< metadb_handle > >
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
 
service_ptr_t< metadb_handleget_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
 
service_ptr_t< metadb_handleoperator[] (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 Types

typedef list_base_const_t< metadb_handle_ptrt_interface
 
typedef metadb_handle_list_t< t_alloc > t_self
 

Additional Inherited Members

- Public Types inherited from pfc::list_t< service_ptr_t< metadb_handle >, t_alloc >
typedef list_t< service_ptr_t< metadb_handle >, t_alloc > t_self
 
- Public Types inherited from pfc::list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > >
typedef list_base_t< service_ptr_t< metadb_handle > > t_base
 
typedef list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > > t_self
 
- Public Types inherited from pfc::list_base_const_t< service_ptr_t< metadb_handle > >
typedef service_ptr_t< metadb_handlet_item
 
- Static Public Member Functions inherited from pfc::list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > >
static void g_swap (list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > > &p_item1, list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > > &p_item2)
 
- Static Public Member Functions inherited from pfc::list_base_const_t< service_ptr_t< metadb_handle > >
static bool g_equals (const t_self &item1, const t_self &item2)
 
- Protected Member Functions inherited from pfc::list_base_t< service_ptr_t< metadb_handle > >
 list_base_t ()
 
 list_base_t (const t_self &)
 
 ~list_base_t ()
 
void operator= (const t_self &)
 
- Protected Member Functions inherited from pfc::list_base_const_t< service_ptr_t< metadb_handle > >
 list_base_const_t ()
 
 list_base_const_t (const t_self &)
 
 ~list_base_const_t ()
 
void operator= (const t_self &)
 
- Protected Attributes inherited from pfc::list_impl_t< service_ptr_t< metadb_handle >, array_t< service_ptr_t< metadb_handle >, t_alloc > >
array_t< service_ptr_t< metadb_handle >, t_alloc > m_buffer
 

Detailed Description

template<template< typename > class t_alloc = pfc::alloc_fast>
class metadb_handle_list_t< t_alloc >

Definition at line 169 of file metadb_handle.h.

Member Typedef Documentation

template<template< typename > class t_alloc = pfc::alloc_fast>
typedef list_base_const_t<metadb_handle_ptr> metadb_handle_list_t< t_alloc >::t_interface
private

Definition at line 172 of file metadb_handle.h.

template<template< typename > class t_alloc = pfc::alloc_fast>
typedef metadb_handle_list_t<t_alloc> metadb_handle_list_t< t_alloc >::t_self
private

Definition at line 171 of file metadb_handle.h.

Constructor & Destructor Documentation

template<template< typename > class t_alloc = pfc::alloc_fast>
metadb_handle_list_t< t_alloc >::metadb_handle_list_t ( const t_self p_source)
inline
template<template< typename > class t_alloc = pfc::alloc_fast>
metadb_handle_list_t< t_alloc >::metadb_handle_list_t ( const t_interface p_source)
inline
template<template< typename > class t_alloc = pfc::alloc_fast>
metadb_handle_list_t< t_alloc >::metadb_handle_list_t ( )
inline

Definition at line 211 of file metadb_handle.h.

211 {}
template<template< typename > class t_alloc = pfc::alloc_fast>
metadb_handle_list_t< t_alloc >::metadb_handle_list_t ( t_self &&  p_source)
inline

Member Function Documentation

template<template< typename > class t_alloc = pfc::alloc_fast>
t_size metadb_handle_list_t< t_alloc >::bsearch_by_pointer ( const metadb_handle_ptr val) const
inline

Definition at line 200 of file metadb_handle.h.

t_size bsearch_by_pointer(const pfc::list_base_const_t< metadb_handle_ptr > &p_list, const metadb_handle_ptr &val)
template<template< typename > class t_alloc = pfc::alloc_fast>
double metadb_handle_list_t< t_alloc >::calc_total_duration ( ) const
inline

Definition at line 202 of file metadb_handle.h.

double calc_total_duration(const pfc::list_base_const_t< metadb_handle_ptr > &p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
bool metadb_handle_list_t< t_alloc >::extract_single_path ( const char *&  path) const
inline

Definition at line 218 of file metadb_handle.h.

bool extract_single_path(metadb_handle_list_cref list, const char *&path)
template<template< typename > class t_alloc = pfc::alloc_fast>
t_self& metadb_handle_list_t< t_alloc >::operator+= ( const t_interface source)
inline

Definition at line 215 of file metadb_handle.h.

template<template< typename > class t_alloc = pfc::alloc_fast>
t_self& metadb_handle_list_t< t_alloc >::operator+= ( const metadb_handle_ptr source)
inline

Definition at line 216 of file metadb_handle.h.

216 {add_item(source); return *this;}
template<template< typename > class t_alloc = pfc::alloc_fast>
const t_self& metadb_handle_list_t< t_alloc >::operator= ( const t_self p_source)
inline
template<template< typename > class t_alloc = pfc::alloc_fast>
const t_self& metadb_handle_list_t< t_alloc >::operator= ( const t_interface p_source)
inline
template<template< typename > class t_alloc = pfc::alloc_fast>
const t_self& metadb_handle_list_t< t_alloc >::operator= ( t_self &&  p_source)
inline

Definition at line 208 of file metadb_handle.h.

template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::remove_duplicates ( )
inline

Definition at line 195 of file metadb_handle.h.

void remove_duplicates(pfc::list_base_t< metadb_handle_ptr > &p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_format ( const char *  spec,
titleformat_hook p_hook 
)
inline

Definition at line 174 of file metadb_handle.h.

174  {
175  return metadb_handle_list_helper::sort_by_format(*this, spec, p_hook);
176  }
void sort_by_format(metadb_handle_list_ref p_list, const char *spec, titleformat_hook *p_hook)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_format ( const service_ptr_t< titleformat_object > &  p_script,
titleformat_hook p_hook,
int  direction = 1 
)
inline

Definition at line 181 of file metadb_handle.h.

181  {
182  metadb_handle_list_helper::sort_by_format(*this, p_script, p_hook, direction);
183  }
void sort_by_format(metadb_handle_list_ref p_list, const char *spec, titleformat_hook *p_hook)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_format_get_order ( t_size order,
const char *  spec,
titleformat_hook p_hook 
) const
inline

Definition at line 177 of file metadb_handle.h.

177  {
178  metadb_handle_list_helper::sort_by_format_get_order(*this, order, spec, p_hook);
179  }
void sort_by_format_get_order(metadb_handle_list_cref p_list, t_size *order, const char *spec, titleformat_hook *p_hook)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_format_get_order ( t_size order,
const service_ptr_t< titleformat_object > &  p_script,
titleformat_hook p_hook 
) const
inline

Definition at line 184 of file metadb_handle.h.

184  {
185  metadb_handle_list_helper::sort_by_format_get_order(*this, order, p_script, p_hook);
186  }
void sort_by_format_get_order(metadb_handle_list_cref p_list, t_size *order, const char *spec, titleformat_hook *p_hook)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_path ( )
inline

Definition at line 204 of file metadb_handle.h.

void sort_by_path(pfc::list_base_t< metadb_handle_ptr > &p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_path_quick ( )
inline

Definition at line 197 of file metadb_handle.h.

void sort_by_path_quick(pfc::list_base_t< metadb_handle_ptr > &p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_pointer ( )
inline

Definition at line 199 of file metadb_handle.h.

void sort_by_pointer(pfc::list_base_t< metadb_handle_ptr > &p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_pointer_remove_duplicates ( )
inline

Definition at line 196 of file metadb_handle.h.

void sort_by_pointer_remove_duplicates(pfc::list_base_t< metadb_handle_ptr > &p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_relative_path ( )
inline

Definition at line 188 of file metadb_handle.h.

188  {
190  }
void sort_by_relative_path(metadb_handle_list_ref p_list)
template<template< typename > class t_alloc = pfc::alloc_fast>
void metadb_handle_list_t< t_alloc >::sort_by_relative_path_get_order ( t_size order) const
inline

Definition at line 191 of file metadb_handle.h.

191  {
193  }
void sort_by_relative_path_get_order(metadb_handle_list_cref p_list, t_size *order)

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