foobar2000 SDK  2015-08-03
Public Member Functions | Private Types | Private Attributes
pfc::syncd_storage< t_object >

#include <syncd_storage.h>

Public Member Functions

 syncd_storage ()
 
template<typename t_source >
 syncd_storage (const t_source &p_source)
 
template<typename t_destination >
void get (t_destination &p_out) const
 
t_object get () const
 
template<typename t_source >
const t_selfoperator= (t_source const &p_source)
 
template<typename t_source >
void set (t_source const &p_in)
 

Private Types

typedef syncd_storage< t_object > t_self
 

Private Attributes

t_object m_object
 
mutable::pfc::readWriteLock m_sync
 

Detailed Description

template<typename t_object>
class pfc::syncd_storage< t_object >

Definition at line 4 of file syncd_storage.h.

Member Typedef Documentation

template<typename t_object >
typedef syncd_storage<t_object> pfc::syncd_storage< t_object >::t_self
private

Definition at line 6 of file syncd_storage.h.

Constructor & Destructor Documentation

template<typename t_object >
pfc::syncd_storage< t_object >::syncd_storage ( )
inline

Definition at line 8 of file syncd_storage.h.

8 {}
template<typename t_object >
template<typename t_source >
pfc::syncd_storage< t_object >::syncd_storage ( const t_source &  p_source)
inline

Definition at line 10 of file syncd_storage.h.

10 : m_object(p_source) {}

Member Function Documentation

template<typename t_object >
template<typename t_destination >
void pfc::syncd_storage< t_object >::get ( t_destination &  p_out) const
inline

Definition at line 17 of file syncd_storage.h.

17  {
18  inReadSync(m_sync);
19  p_out = m_object;
20  }
mutable::pfc::readWriteLock m_sync
Definition: syncd_storage.h:28
template<typename t_object >
t_object pfc::syncd_storage< t_object >::get ( ) const
inline

Definition at line 21 of file syncd_storage.h.

21  {
22  inReadSync(m_sync);
23  return m_object;
24  }
mutable::pfc::readWriteLock m_sync
Definition: syncd_storage.h:28
template<typename t_object >
template<typename t_source >
const t_self& pfc::syncd_storage< t_object >::operator= ( t_source const &  p_source)
inline

Definition at line 26 of file syncd_storage.h.

26 {set(p_source); return *this;}
template<typename t_object >
template<typename t_source >
void pfc::syncd_storage< t_object >::set ( t_source const &  p_in)
inline

Definition at line 12 of file syncd_storage.h.

12  {
13  inWriteSync(m_sync);
14  m_object = p_in;
15  }
mutable::pfc::readWriteLock m_sync
Definition: syncd_storage.h:28

Field Documentation

template<typename t_object >
t_object pfc::syncd_storage< t_object >::m_object
private

Definition at line 29 of file syncd_storage.h.

template<typename t_object >
mutable ::pfc::readWriteLock pfc::syncd_storage< t_object >::m_sync
private

Definition at line 28 of file syncd_storage.h.


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