|
Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
|
A process-wide cache of objects, held by pointer, that hands out shared references. More...
#include <pool.hpp>
Public Types | |
| using | HeldType = typename PointerPolicy::PointerType |
| The pointer type the pool holds. | |
| using | PoolHolderType = std::vector< HeldType > |
| The container of held pointers. | |
Static Public Member Functions | |
| static HeldType | NonPtrAdd (ObjT d) |
| Add an object (by value) to the pool, returning the held pointer. | |
| static HeldType | PtrAdd (HeldType d) |
| Add an already-held pointer to the pool, returning it. | |
| template<typename ... Ts> | |
| static HeldType | Make (Ts &&...ts) |
| Construct an object in place in the pool, returning the held pointer. | |
| static void | PurgeCache () |
| Drop pooled objects that are no longer referenced anywhere else. | |
A process-wide cache of objects, held by pointer, that hands out shared references.
| using bertini::detail::Pool< ObjT, PointerPolicy >::HeldType = typename PointerPolicy::PointerType |
The pointer type the pool holds.
| using bertini::detail::Pool< ObjT, PointerPolicy >::PoolHolderType = std::vector< HeldType > |
The container of held pointers.
|
inlinestatic |
Construct an object in place in the pool, returning the held pointer.
|
inlinestatic |
Add an object (by value) to the pool, returning the held pointer.
|
inlinestatic |
Add an already-held pointer to the pool, returning it.
|
inlinestatic |
Drop pooled objects that are no longer referenced anywhere else.