|
JPL Spatial
Sound spatialization and propagation library
|
#include <JPLSpatial/Containers/ScratchHashSet.h>
Public Member Functions | |
| ScratchHashSet32 ()=default | |
| ScratchHashSet32 (void *memory, std::size_t memoryBytes, uint32 expectedCount, const HashFunction &hash={}, const Equals &equals={}) | |
| void | Init (void *memory, std::size_t memoryBytes, uint32 expectedCount) |
| bool | Insert (const T &key) |
| bool | Contains (const T &key) const |
| JPL_INLINE void | Clear () |
| JPL_INLINE uint32 | size () const |
| JPL_INLINE uint32 | capacity () const |
Static Public Member Functions | |
| static JPL_INLINE std::size_t | GetRequiredMemorySize (uint32 expectedCount) |
Simple utility mainly for ensuring uniqueness of ranges of elements. HasFunction must return uint32_t hash of T. Uses provided memory buffer, no allocations/deallocations internally.
|
default |
|
inline |
|
inline |
| JPL_INLINE void JPL::ScratchHashSet32< T, HashFunction, Equals >::Clear | ( | ) |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |