CommonLibSSE NG
Loading...
Searching...
No Matches
RE::NiTPointerMap< Key, T > Class Template Reference

#include <NiTPointerMap.h>

Inheritance diagram for RE::NiTPointerMap< Key, T >:
RE::NiTMapBase< NiTPointerAllocator< std::uintptr_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< NiTPointerAllocator< std::uintptr_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

 NiTPointerMap (std::uint32_t a_hashSize=37)
 
 ~NiTPointerMap () override
 
- Public Member Functions inherited from RE::NiTMapBase< NiTPointerAllocator< std::uintptr_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< NiTPointerAllocator< std::uintptr_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< NiTPointerAllocator< std::uintptr_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::NiTPointerMap< Key, T >::key_type = typename Base::key_type

◆ mapped_type

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

◆ size_type

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

◆ value_type

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

Constructor & Destructor Documentation

◆ NiTPointerMap()

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

◆ ~NiTPointerMap()

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

Member Function Documentation

◆ free_value()

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

◆ malloc_value()

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

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