CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
RE::NiTMap< Key, T > Class Template Reference

#include <NiTMap.h>

Inheritance diagram for RE::NiTMap< Key, T >:
RE::NiTMapBase< NiTDefaultAllocator< NiTMapItem< Key, T > >, Key, T >

Public Types

using key_type = typename Base::key_type
 
using mapped_type = typename Base::mapped_type
 
using value_type = typename Base::value_type
 
using size_type = typename Base::size_type
 
- Public Types inherited from RE::NiTMapBase< NiTDefaultAllocator< NiTMapItem< Key, T > >, Key, T >
using key_type = Key
 
using mapped_type = T
 
using value_type = NiTMapItem< Key, T >
 
using size_type = std::uint32_t
 
using iterator = iterator_base< value_type >
 
using const_iterator = iterator_base< const value_type >
 

Public Member Functions

 NiTMap (std::uint32_t a_hashSize=37)
 
 ~NiTMap () override
 
- Public Member Functions inherited from RE::NiTMapBase< NiTDefaultAllocator< NiTMapItem< Key, T > >, Key, T >
 NiTMapBase (size_type a_capacity=37)
 
virtual ~NiTMapBase ()
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
bool empty () const noexcept
 
size_type size () const noexcept
 
void clear ()
 
bool insert_or_assign (key_type &&a_key, M &&a_obj)
 
size_type erase (const key_type &a_key)
 
iterator find (const Key &a_key)
 
const_iterator find (const Key &a_key) const
 

Protected Member Functions

value_typemalloc_value () override
 
void free_value (value_type *a_value) override
 
- Protected Member Functions inherited from RE::NiTMapBase< NiTDefaultAllocator< NiTMapItem< Key, T > >, Key, T >
virtual std::uint32_t hash_function (key_type a_key) const
 
virtual bool key_eq (key_type a_lhs, key_type a_rhs) const
 
virtual void assign_value (value_type *a_value, key_type a_key, mapped_type a_mapped)
 
virtual void clear_value (value_type *a_value)
 
virtual value_typemalloc_value ()=0
 
virtual void free_value (value_type *a_value)=0
 

Additional Inherited Members

- Protected Attributes inherited from RE::NiTMapBase< NiTDefaultAllocator< NiTMapItem< Key, T > >, Key, T >
std::uint32_t _capacity
 
std::uint32_t _pad0C
 
value_type ** _data
 
AntiBloatAllocator _allocator
 

Member Typedef Documentation

◆ key_type

template<class Key , class T >
using RE::NiTMap< Key, T >::key_type = typename Base::key_type

◆ mapped_type

template<class Key , class T >
using RE::NiTMap< Key, T >::mapped_type = typename Base::mapped_type

◆ size_type

template<class Key , class T >
using RE::NiTMap< Key, T >::size_type = typename Base::size_type

◆ value_type

template<class Key , class T >
using RE::NiTMap< Key, T >::value_type = typename Base::value_type

Constructor & Destructor Documentation

◆ NiTMap()

template<class Key , class T >
RE::NiTMap< Key, T >::NiTMap ( std::uint32_t  a_hashSize = 37)
inline

◆ ~NiTMap()

template<class Key , class T >
RE::NiTMap< Key, T >::~NiTMap ( )
inlineoverride

Member Function Documentation

◆ free_value()

template<class Key , class T >
void RE::NiTMap< Key, T >::free_value ( value_type a_value)
inlineoverrideprotectedvirtual

◆ malloc_value()

template<class Key , class T >
value_type * RE::NiTMap< Key, T >::malloc_value ( )
inlineoverrideprotectedvirtual

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