foobar2000 SDK  2015-01-14
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 84 of file win-objects.h.

Constructor & Destructor Documentation

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

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

86 : m_scope(handle) {}
CGlobalLockScope m_scope
Definition: win-objects.h:94

Member Function Documentation

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

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

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

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

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

Field Documentation

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

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


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