VOX
A little voxel engine
Loading...
Searching...
No Matches
IdList< Key, Value, container, IdGen > Class Template Reference

#include <List.hpp>

Inheritance diagram for IdList< Key, Value, container, IdGen >:
Inheritance graph
Collaboration diagram for IdList< Key, Value, container, IdGen >:
Collaboration graph

Public Member Functions

 IdList ()
 
 ~IdList ()
 
 IdList (const IdList &other)=delete
 
 IdList (IdList &&other)=delete
 
IdListoperator= (const IdList &other)=delete
 
IdListoperator= (IdList &&other)=delete
 
std::lock_guard< std::mutex > lock ()
 
Value get (const Key &key)
 
uint32_t size () const
 
bool contains (const Key &key) const
 
Key insert (const Value &value)
 
Key insert (Value &&value)
 
void insert (const Key &key, const Value &value)
 
void insert (const Key &key, Value &&value)
 
void erase (const Key &key)
 
std::vector< Value > values () const
 

Static Public Attributes

static const Key invalid_id = IdGen::invalid_id
 

Constructor & Destructor Documentation

◆ IdList() [1/3]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
IdList< Key, Value, container, IdGen >::IdList ( )
inline

◆ ~IdList()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
IdList< Key, Value, container, IdGen >::~IdList ( )
inline

◆ IdList() [2/3]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
IdList< Key, Value, container, IdGen >::IdList ( const IdList< Key, Value, container, IdGen > &  other)
delete

◆ IdList() [3/3]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
IdList< Key, Value, container, IdGen >::IdList ( IdList< Key, Value, container, IdGen > &&  other)
delete

Member Function Documentation

◆ contains()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
bool IdList< Key, Value, container, IdGen >::contains ( const Key &  key) const
inline

◆ erase()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
void IdList< Key, Value, container, IdGen >::erase ( const Key &  key)
inline

◆ get()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
Value IdList< Key, Value, container, IdGen >::get ( const Key &  key)
inline

◆ insert() [1/4]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
void IdList< Key, Value, container, IdGen >::insert ( const Key &  key,
const Value &  value 
)
inline

◆ insert() [2/4]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
void IdList< Key, Value, container, IdGen >::insert ( const Key &  key,
Value &&  value 
)
inline

◆ insert() [3/4]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
Key IdList< Key, Value, container, IdGen >::insert ( const Value &  value)
inline

◆ insert() [4/4]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
Key IdList< Key, Value, container, IdGen >::insert ( Value &&  value)
inline

◆ lock()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
std::lock_guard< std::mutex > IdList< Key, Value, container, IdGen >::lock ( )
inline

◆ operator=() [1/2]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
IdList & IdList< Key, Value, container, IdGen >::operator= ( const IdList< Key, Value, container, IdGen > &  other)
delete

◆ operator=() [2/2]

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
IdList & IdList< Key, Value, container, IdGen >::operator= ( IdList< Key, Value, container, IdGen > &&  other)
delete

◆ size()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
uint32_t IdList< Key, Value, container, IdGen >::size ( ) const
inline

◆ values()

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
std::vector< Value > IdList< Key, Value, container, IdGen >::values ( ) const
inline

Member Data Documentation

◆ invalid_id

template<typename Key , typename Value , typename container = std::unordered_map<Key, Value>, typename IdGen = IdGenerator<Key>>
const Key IdList< Key, Value, container, IdGen >::invalid_id = IdGen::invalid_id
inlinestatic

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