#include <LockedLookupTable.hpp>
◆ hash_type
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ key_type
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ mapped_type
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ LockedLookupTable() [1/2]
template<typename Key , typename Value , typename Hash = std::hash<Key>>
53 {
54 for (unsigned i = 0; i < num_buckets; ++i)
56 }
Hash hasher
Definition: LockedLookupTable.hpp:122
std::vector< std::unique_ptr< bucket_type > > _buckets
Definition: LockedLookupTable.hpp:121
References LockedLookupTable< Key, Value, Hash >::_buckets.
◆ LockedLookupTable() [2/2]
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ at()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
Value LockedLookupTable< Key, Value, Hash >::at |
( |
Key const & |
key, |
|
|
Value const & |
default_value = Value() |
|
) |
| const |
|
inline |
64 {
66 }
Value at(Key const &key, Value const &default_value)
Definition: LockedLookupTable.hpp:138
bucket_type & get_bucket(Key const &key) const
Definition: LockedLookupTable.hpp:124
References LockedLookupTable< Key, Value, Hash >::bucket_type::at(), and LockedLookupTable< Key, Value, Hash >::get_bucket().
Referenced by BOOST_AUTO_TEST_CASE(), Horizon::Zone::NPCComponent::contact_npc_for_player(), Horizon::Auth::PacketLengthTable::get_hpacket_info(), Horizon::Char::PacketLengthTable::get_hpacket_info(), Horizon::Zone::PacketLengthTable::get_hpacket_info(), Horizon::Zone::ItemDatabase::get_item_by_id(), Horizon::Zone::ItemDatabase::get_item_by_key_name(), Horizon::Zone::MonsterDatabase::get_monster_by_id(), Horizon::Zone::MonsterDatabase::get_monster_by_name(), Horizon::Zone::MonsterDatabase::get_monster_skill_by_id(), Horizon::Zone::GameLogicProcess::MonsterSpawnAgent::get_monster_spawn_info(), Horizon::Zone::NPCComponent::get_npc_from_db(), Horizon::Zone::SkillDatabase::get_skill_by_id(), Horizon::Zone::SkillDatabase::get_skill_by_name(), Horizon::Zone::SkillDatabase::get_skill_tree_by_job_id(), Horizon::Zone::ExpDatabase::get_status_point(), Horizon::Auth::PacketLengthTable::get_tpacket_info(), Horizon::Char::PacketLengthTable::get_tpacket_info(), Horizon::Zone::PacketLengthTable::get_tpacket_info(), Horizon::Zone::ItemDatabase::get_weapon_attribute_modifier(), Horizon::Zone::ItemDatabase::get_weapon_target_size_modifier(), Horizon::Zone::ExpDatabase::load_group(), LockedLookupTable< Key, Value, Hash >::operator[](), and Horizon::Zone::NPCComponent::sync_functions().
◆ clear()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ erase()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ get_bucket()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
References LockedLookupTable< Key, Value, Hash >::_buckets, and LockedLookupTable< Key, Value, Hash >::hasher.
Referenced by LockedLookupTable< Key, Value, Hash >::at(), LockedLookupTable< Key, Value, Hash >::erase(), and LockedLookupTable< Key, Value, Hash >::insert().
◆ get_map()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ insert()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
void LockedLookupTable< Key, Value, Hash >::insert |
( |
const Key & |
key, |
|
|
const Value & |
value |
|
) |
| |
|
inline |
69 {
71 }
void insert(Key const &key, Value const &value)
Definition: LockedLookupTable.hpp:145
References LockedLookupTable< Key, Value, Hash >::get_bucket(), and LockedLookupTable< Key, Value, Hash >::bucket_type::insert().
Referenced by Horizon::Zone::NPCComponent::add_npc_to_db(), BOOST_AUTO_TEST_CASE(), Horizon::Zone::ExpDatabase::load_group(), Horizon::Zone::MonsterDatabase::load_internal(), Horizon::Zone::SkillDatabase::load_internal_skill_db(), Horizon::Zone::SkillDatabase::load_internal_skill_tree(), Horizon::Zone::ItemDatabase::load_items(), Horizon::Zone::MonsterDatabase::load_skill_internal(), Horizon::Zone::ExpDatabase::load_status_point_table(), Horizon::Zone::ItemDatabase::load_weapon_attribute_modifiers_db(), Horizon::Zone::ItemDatabase::load_weapon_target_size_modifiers_db(), and Horizon::Zone::GameLogicProcess::MonsterSpawnAgent::register_monster_spawn_info().
◆ max_collisions()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ operator=()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ operator[]()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ size()
template<typename Key , typename Value , typename Hash = std::hash<Key>>
◆ _buckets
template<typename Key , typename Value , typename Hash = std::hash<Key>>
Referenced by LockedLookupTable< Key, Value, Hash >::clear(), LockedLookupTable< Key, Value, Hash >::get_bucket(), LockedLookupTable< Key, Value, Hash >::get_map(), LockedLookupTable< Key, Value, Hash >::LockedLookupTable(), LockedLookupTable< Key, Value, Hash >::max_collisions(), and LockedLookupTable< Key, Value, Hash >::size().
◆ hasher
template<typename Key , typename Value , typename Hash = std::hash<Key>>
The documentation for this class was generated from the following file: