Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::SystemPool Class Reference

#include <system.hpp>

Inheritance diagram for bertini::SystemPool:
[legend]
Collaboration diagram for bertini::SystemPool:
[legend]

Public Types

using HeldType
 The pointer type the pool holds.
using PoolHolderType
 The container of held pointers.

Static Public Member Functions

static HeldType NonPtrAdd (System 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.
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.

Member Typedef Documentation

◆ HeldType

using bertini::detail::Pool< System, DefaultPointerPolicy<System> >::HeldType
inherited

The pointer type the pool holds.

◆ PoolHolderType

using bertini::detail::Pool< System, DefaultPointerPolicy<System> >::PoolHolderType
inherited

The container of held pointers.

Member Function Documentation

◆ Make()

HeldType bertini::detail::Pool< System, DefaultPointerPolicy<System> >::Make ( Ts &&... ts)
inlinestaticinherited

Construct an object in place in the pool, returning the held pointer.

◆ NonPtrAdd()

HeldType bertini::detail::Pool< System, DefaultPointerPolicy<System> >::NonPtrAdd ( System d)
inlinestaticinherited

Add an object (by value) to the pool, returning the held pointer.

◆ PtrAdd()

HeldType bertini::detail::Pool< System, DefaultPointerPolicy<System> >::PtrAdd ( HeldType d)
inlinestaticinherited

Add an already-held pointer to the pool, returning it.

◆ PurgeCache()

void bertini::detail::Pool< System, DefaultPointerPolicy<System> >::PurgeCache ( )
inlinestaticinherited

Drop pooled objects that are no longer referenced anywhere else.