foobar2000 SDK  2015-08-03
Public Types | Public Member Functions | Private Attributes
service_instance_array_t< T >

#include <service.h>

Public Types

typedef service_ptr_t< Tt_ptr
 

Public Member Functions

 service_instance_array_t ()
 
t_size get_size () const
 
const t_ptroperator[] (t_size p_index) const
 
t_ptroperator[] (t_size p_index)
 

Private Attributes

pfc::array_t< t_ptrm_data
 

Detailed Description

template<typename T>
class service_instance_array_t< T >

Helper; simulates array with instance of each available implementation of given service class.

Definition at line 553 of file service.h.

Member Typedef Documentation

template<typename T >
typedef service_ptr_t<T> service_instance_array_t< T >::t_ptr

Definition at line 555 of file service.h.

Constructor & Destructor Documentation

template<typename T >
service_instance_array_t< T >::service_instance_array_t ( )
inline

Definition at line 556 of file service.h.

556  {
558  const t_size count = helper.get_count();
559  m_data.set_size(count);
560  for(t_size n=0;n<count;n++) m_data[n] = helper.create(n);
561  }
t_size get_count() const
Definition: service.h:472
bool create(service_ptr_t< T > &p_out, t_size p_index) const
Definition: service.h:476
size_t t_size
Definition: int_types.h:48
pfc::array_t< t_ptr > m_data
Definition: service.h:569

Member Function Documentation

template<typename T >
t_size service_instance_array_t< T >::get_size ( ) const
inline

Definition at line 563 of file service.h.

563 {return m_data.get_size();}
pfc::array_t< t_ptr > m_data
Definition: service.h:569
template<typename T >
const t_ptr& service_instance_array_t< T >::operator[] ( t_size  p_index) const
inline

Definition at line 564 of file service.h.

564 {return m_data[p_index];}
pfc::array_t< t_ptr > m_data
Definition: service.h:569
template<typename T >
t_ptr& service_instance_array_t< T >::operator[] ( t_size  p_index)
inline

Definition at line 567 of file service.h.

567 {return m_data[p_index];}
pfc::array_t< t_ptr > m_data
Definition: service.h:569

Field Documentation

template<typename T >
pfc::array_t<t_ptr> service_instance_array_t< T >::m_data
private

Definition at line 569 of file service.h.


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