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

#include <pool.h>

Public Member Functions

constexpr Handle () noexcept=default
 
constexpr Handle (std::nullptr_t) noexcept
 
 Handle (unsigned region, uint32_t index)
 
Handleoperator= (Handle const &)=default
 
Handleoperator= (std::nullptr_t)
 
char * GetPtr () const noexcept
 
 operator bool () const
 
bool operator== (Handle const &r) const noexcept
 
bool operator!= (Handle const &r) const noexcept
 
bool operator< (Handle const &r) const noexcept
 
void swap (Handle &r) noexcept
 

Static Public Member Functions

static Handle GetHandle (char const *ptr) noexcept
 

Public Attributes

uint32_t value = 0
 

Detailed Description

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

Definition at line 97 of file pool.h.

Constructor & Destructor Documentation

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
constexpr Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::Handle ( )
defaultnoexcept
template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
constexpr Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::Handle ( std::nullptr_t  )
inlinenoexcept

Definition at line 99 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::Handle ( unsigned  region,
uint32_t  index 
)
inline

Definition at line 100 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 >::Handle::GetHandle ( char const *  ptr)
inlinestaticnoexcept

Definition at line 110 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
char* Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::GetPtr ( ) const
inlinenoexcept

Definition at line 104 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::operator bool ( ) const
inlineexplicit

Definition at line 113 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
bool Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::operator!= ( Handle const &  r) const
inlinenoexcept

Definition at line 119 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
bool Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::operator< ( Handle const &  r) const
inlinenoexcept

Definition at line 122 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
Handle& Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::operator= ( Handle const &  )
default
template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
Handle& Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::operator= ( std::nullptr_t  )
inline

Definition at line 103 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
bool Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::operator== ( Handle const &  r) const
inlinenoexcept

Definition at line 116 of file pool.h.

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
void Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::swap ( Handle r)
inlinenoexcept

Definition at line 125 of file pool.h.

Member Data Documentation

template<class Tag , unsigned ElemSize, unsigned RegionBits, unsigned ElemsPerSpan = 16384>
uint32_t Sdf_Pool< Tag, ElemSize, RegionBits, ElemsPerSpan >::Handle::value = 0

Definition at line 128 of file pool.h.


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