PxHashMapBase#

Defined in include/foundation/PxHashInternals.h

Structs#

template<class Key, class Value, class HashFn, class PxAllocator = typename PxAllocatorTraits<PxPair<const Key, Value>>::Type>
class PxHashMapBase#

Public Types

typedef PxPair<const Key, Value> Entry#
typedef PxHashBase<Entry, Key, HashFn, GetKey, PxAllocator, true> BaseMap#
typedef BaseMap::Iter Iterator#
typedef BaseMap::PxEraseIterator EraseIterator#

Public Functions

inline PxHashMapBase(
uint32_t initialTableSize,
float loadFactor,
const PxAllocator &alloc,
)#
inline PxHashMapBase(const PxAllocator &alloc)#
inline PxHashMapBase(
uint32_t initialTableSize = 64,
float loadFactor = 0.75f,
)#
inline bool insert(const Key k, const Value v)#
inline Value &operator[](const Key &k)#
inline const Entry *find(const Key &k) const#
inline bool erase(const Key &k)#
inline bool erase(const Key &k, Entry &e)#
inline uint32_t size() const#
inline uint32_t capacity() const#
inline Iterator getIterator()#
inline EraseIterator getEraseIterator()#
inline void reserve(uint32_t size)#
inline void clear()#

Protected Attributes

BaseMap mBase#
struct GetKey#

Public Functions

inline const Key &operator()(const Entry &e)#