foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
CGlobalLockScopeT< TItem >

#include <win-objects.h>

Public Member Functions

 CGlobalLockScopeT (HGLOBAL handle)
 
TItem * GetPtr () const
 
t_size GetSize () const
 

Private Attributes

CGlobalLockScope m_scope
 

Detailed Description

template<typename TItem>
class CGlobalLockScopeT< TItem >

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

Constructor & Destructor Documentation

template<typename TItem >
CGlobalLockScopeT< TItem >::CGlobalLockScopeT ( HGLOBAL  handle)
inline

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

88 : m_scope(handle) {}
CGlobalLockScope m_scope
Definition: win-objects.h:96

Member Function Documentation

template<typename TItem >
TItem* CGlobalLockScopeT< TItem >::GetPtr ( ) const
inline

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

89 {return reinterpret_cast<TItem*>(m_scope.GetPtr());}
void * GetPtr() const
Definition: win-objects.h:77
CGlobalLockScope m_scope
Definition: win-objects.h:96
template<typename TItem >
t_size CGlobalLockScopeT< TItem >::GetSize ( ) const
inline

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

90  {
91  const t_size val = m_scope.GetSize();
92  PFC_ASSERT( val % sizeof(TItem) == 0 );
93  return val / sizeof(TItem);
94  }
CGlobalLockScope m_scope
Definition: win-objects.h:96
size_t t_size
Definition: int_types.h:48
t_size GetSize() const
Definition: win-objects.h:78

Field Documentation

template<typename TItem >
CGlobalLockScope CGlobalLockScopeT< TItem >::m_scope
private

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


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