foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields
CoTaskMemObject< TPtr >

#include <win-objects.h>

Public Member Functions

 CoTaskMemObject ()
 
 ~CoTaskMemObject ()
 
 PFC_CLASS_NOT_COPYABLE (CoTaskMemObject, CoTaskMemObject< TPtr >)
 
TPtr * Receive ()
 
void Reset ()
 

Data Fields

TPtr m_ptr
 

Detailed Description

template<typename TPtr>
class CoTaskMemObject< TPtr >

Definition at line 270 of file win-objects.h.

Constructor & Destructor Documentation

template<typename TPtr >
CoTaskMemObject< TPtr >::CoTaskMemObject ( )
inline

Definition at line 272 of file win-objects.h.

272 : m_ptr() {}
template<typename TPtr >
CoTaskMemObject< TPtr >::~CoTaskMemObject ( )
inline

Definition at line 274 of file win-objects.h.

274 {CoTaskMemFree(m_ptr);}

Member Function Documentation

template<typename TPtr >
CoTaskMemObject< TPtr >::PFC_CLASS_NOT_COPYABLE ( CoTaskMemObject< TPtr >  ,
CoTaskMemObject< TPtr >   
)
template<typename TPtr >
TPtr* CoTaskMemObject< TPtr >::Receive ( )
inline

Definition at line 276 of file win-objects.h.

276 {Reset(); return &m_ptr;}
template<typename TPtr >
void CoTaskMemObject< TPtr >::Reset ( )
inline

Definition at line 275 of file win-objects.h.

275 {CoTaskMemFree(pfc::replace_null_t(m_ptr));}
t_type replace_null_t(t_type &p_var)
Definition: primitives.h:688

Field Documentation

template<typename TPtr >
TPtr CoTaskMemObject< TPtr >::m_ptr

Definition at line 278 of file win-objects.h.


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