HighMap library (C++)
Loading...
Searching...
No Matches
hmap::RadixHeap< T > Struct Template Reference

#include <radix_heap.hpp>

Collaboration diagram for hmap::RadixHeap< T >:

Public Member Functions

bool empty () const
size_t size () const
void clear ()
void push (uint32_t key, const T &val)
void push (uint32_t key, T &&val)
std::pair< uint32_t, T > pop ()

Static Public Member Functions

static int slot (uint32_t x)

Public Attributes

std::vector< std::pair< uint32_t, T > > bucket [33]
uint32_t last = 0
size_t count = 0

Member Function Documentation

◆ empty()

template<typename T = int>
bool hmap::RadixHeap< T >::empty ( ) const
inline

◆ size()

template<typename T = int>
size_t hmap::RadixHeap< T >::size ( ) const
inline

◆ clear()

template<typename T = int>
void hmap::RadixHeap< T >::clear ( )
inline

◆ slot()

template<typename T = int>
int hmap::RadixHeap< T >::slot ( uint32_t x)
inlinestatic

◆ push() [1/2]

template<typename T = int>
void hmap::RadixHeap< T >::push ( uint32_t key,
const T & val )
inline

◆ push() [2/2]

template<typename T = int>
void hmap::RadixHeap< T >::push ( uint32_t key,
T && val )
inline

◆ pop()

template<typename T = int>
std::pair< uint32_t, T > hmap::RadixHeap< T >::pop ( )
inline

Member Data Documentation

◆ bucket

template<typename T = int>
std::vector<std::pair<uint32_t, T> > hmap::RadixHeap< T >::bucket[33]

◆ last

template<typename T = int>
uint32_t hmap::RadixHeap< T >::last = 0

◆ count

template<typename T = int>
size_t hmap::RadixHeap< T >::count = 0

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