HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan > Class Template Reference

#include <pool.h>

Classes

struct  Handle
 

Static Public Member Functions

static Handle Allocate ()
 
static void Free (Handle h)
 

Static Public Attributes

static constexpr uint64_t ElemsPerRegion = 1ull << (32-RegionBits)
 
static constexpr uint32_t MaxIndex = ElemsPerRegion - 1
 
static constexpr uint32_t RegionMask = ((1 << RegionBits)-1)
 

Friends

struct Handle
 

Detailed Description

template<class Tag, unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
class Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >

Definition at line 79 of file pool.h.

Member Function Documentation

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
static Handle Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Allocate ( )
inlinestatic
template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
static void Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Free ( Handle  h)
inlinestatic

Friends And Related Function Documentation

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
friend struct Handle
friend

Definition at line 94 of file pool.h.

Member Data Documentation

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
constexpr uint64_t Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::ElemsPerRegion = 1ull << (32-RegionBits)
static

Definition at line 86 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
constexpr uint32_t Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::MaxIndex = ElemsPerRegion - 1
static

Definition at line 89 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
constexpr uint32_t Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::RegionMask = ((1 << RegionBits)-1)
static

Definition at line 92 of file pool.h.


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