openMSX
|
#include <ObjectPool.hh>
Classes | |
struct | EmplaceResult |
Public Types | |
using | Index = uint32_t |
Public Member Functions | |
template<typename... Args> | |
EmplaceResult | emplace (Args &&...args) |
const T & | operator[] (Index idx) const |
T & | operator[] (Index idx) |
void | remove (Index idx) |
void | remove (const T *ptr) |
Index | ptr2Index (const T *ptr) const |
Index | capacity () const |
Definition at line 54 of file ObjectPool.hh.
using ObjectPool< T >::Index = uint32_t |
Definition at line 57 of file ObjectPool.hh.
|
inline |
Definition at line 120 of file ObjectPool.hh.
Referenced by TEST_CASE().
|
inline |
Definition at line 76 of file ObjectPool.hh.
Referenced by TEST_CASE().
|
inline |
Definition at line 94 of file ObjectPool.hh.
|
inline |
Definition at line 93 of file ObjectPool.hh.
|
inline |
Definition at line 107 of file ObjectPool.hh.
References begin(), end(), UNREACHABLE, and xrange().
Referenced by ObjectPool< T >::remove().
|
inline |
Definition at line 103 of file ObjectPool.hh.
References ObjectPool< T >::ptr2Index(), and ObjectPool< T >::remove().
|
inline |
Definition at line 96 of file ObjectPool.hh.
Referenced by ObjectPool< T >::remove(), and TEST_CASE().