|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
RAII handle returned by ObjectPoolget (and friends). More...
#include <ObjectPool.hpp>
Public Member Functions | |
| ObjectPoolAllocated (uPtrResource n_ptr, std::shared_ptr< Pool > &pPool) | |
| ObjectPoolAllocated (ObjectPoolAllocated &&R) noexcept | |
| void | operator= (ObjectPoolAllocated &&R) noexcept |
| T & | operator* () |
| const T & | operator* () const |
| operator bool () const | |
true if the handle holds an object. | |
| uPtrResource & | operator-> () |
Arrow-access to the underlying unique_ptr (lets callers reach through it to T). | |
| ~ObjectPoolAllocated () | |
RAII handle returned by ObjectPoolget (and friends).
Behaves like a unique_ptr<T>; in its destructor it returns the managed object to the pool (or drops it if the pool is already gone).
Definition at line 69 of file ObjectPool.hpp.
|
inline |
Definition at line 75 of file ObjectPool.hpp.
|
inlinenoexcept |
Definition at line 81 of file ObjectPool.hpp.
|
inline |
Definition at line 98 of file ObjectPool.hpp.
|
inline |
true if the handle holds an object.
Definition at line 94 of file ObjectPool.hpp.
|
inline |
Definition at line 91 of file ObjectPool.hpp.
|
inline |
Definition at line 92 of file ObjectPool.hpp.
|
inline |
Arrow-access to the underlying unique_ptr (lets callers reach through it to T).
Definition at line 97 of file ObjectPool.hpp.
|
inlinenoexcept |
Definition at line 86 of file ObjectPool.hpp.