Public Types | Public Member Functions | Public Attributes
LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool Struct Reference

List of all members.

Public Types

enum  { kPoolSize = kManagedPointerPoolSize, kDeadPointer = 0xdeadbea7 }

Public Member Functions

ManagedPointerEntryallocEntry (ManagedType *pPointer)
ManagedPointerEntryfindEntry (const ManagedType *pPointer)
void freeEntry (ManagedPointerEntry *pEntry)
uint32_t getNumAllocated () const
uint32_t getNumFree () const
 ManagedPointerPool ()

Public Attributes

ManagedPointerEntry m_aEntryPool [kPoolSize]
uint32_t m_uiNextFree
uint32_t m_uiNumAllocated

Detailed Description

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
struct LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool

Definition at line 645 of file LeapUtil.h.


Member Enumeration Documentation

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
anonymous enum
Enumerator:
kPoolSize 
kDeadPointer 

Definition at line 647 of file LeapUtil.h.


Constructor & Destructor Documentation

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::ManagedPointerPool ( ) [inline]

Definition at line 649 of file LeapUtil.h.


Member Function Documentation

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
ManagedPointerEntry* LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::allocEntry ( ManagedType pPointer) [inline]

Definition at line 661 of file LeapUtil.h.

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
ManagedPointerEntry* LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::findEntry ( const ManagedType pPointer) [inline]

Definition at line 723 of file LeapUtil.h.

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
void LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::freeEntry ( ManagedPointerEntry pEntry) [inline]

Definition at line 699 of file LeapUtil.h.

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
uint32_t LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::getNumAllocated ( ) const [inline]

Definition at line 751 of file LeapUtil.h.

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
uint32_t LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::getNumFree ( ) const [inline]

Definition at line 754 of file LeapUtil.h.


Member Data Documentation

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
ManagedPointerEntry LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::m_aEntryPool[kPoolSize]

Definition at line 757 of file LeapUtil.h.

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
uint32_t LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::m_uiNextFree

Definition at line 760 of file LeapUtil.h.

template<typename T, class Destructor = SmartInstanceDestructor<T>, unsigned int ManagedPointerPoolSize = 512>
uint32_t LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool::m_uiNumAllocated

Definition at line 763 of file LeapUtil.h.


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


leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Sat Jun 8 2019 18:47:26