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

Observer that collects the precision at every tracking event into a vector. More...

#include <observers.hpp>

Inheritance diagram for bertini::tracking::PrecisionAccumulator< TrackerT >:
[legend]
Collaboration diagram for bertini::tracking::PrecisionAccumulator< TrackerT >:
[legend]

Public Member Functions

const std::vector< unsigned > & Precisions () const
 Get the recorded sequence of precisions.
virtual ~PrecisionAccumulator ()=default
std::type_index ObservedKind () const override
 The type this observer expects to observe.
virtual std::vector< std::type_index > SubscribedEventTypes () const
 Declares which event types this observer wants to receive.
virtual std::vector< std::type_index > SubscribedEventTypes () const
 Declares which event types this observer wants to receive.

Detailed Description

template<class TrackerT>
class bertini::tracking::PrecisionAccumulator< TrackerT >

Observer that collects the precision at every tracking event into a vector.

Constructor & Destructor Documentation

◆ ~PrecisionAccumulator()

template<class TrackerT>
virtual bertini::tracking::PrecisionAccumulator< TrackerT >::~PrecisionAccumulator ( )
virtualdefault

Member Function Documentation

◆ ObservedKind()

std::type_index bertini::Observer< TrackerT >::ObservedKind ( ) const
inlineoverridevirtualinherited

The type this observer expects to observe.

Used by Observable::AddObserver to reject attaching an observer to an incompatible observable (which would otherwise silently never fire). The default is typeid(void), a wildcard meaning "attach me anywhere"; Observer<ObservedT> reports typeid(ObservedT).

Reimplemented from bertini::AnyObserver.

◆ Precisions()

template<class TrackerT>
const std::vector< unsigned > & bertini::tracking::PrecisionAccumulator< TrackerT >::Precisions ( ) const
inline

Get the recorded sequence of precisions.

◆ SubscribedEventTypes() [1/2]

virtual std::vector< std::type_index > bertini::AnyObserver::SubscribedEventTypes ( ) const
inlinevirtualinherited

Declares which event types this observer wants to receive.

Return a non-empty vector to opt into type-indexed dispatch: the observable will only call Observe() for events whose dynamic type exactly matches one of the returned type_index values. Return an empty vector (the default) to receive every event — this is the correct choice for observers that handle many or all event types, and is the automatic behavior for Python-defined observers.

Reimplemented in bertini::TypedObserver< Derived, ObservedT, ConcreteEvents >, bertini::TypedObserver< AMPPathAccumulator< TrackerT, SuccessfulStep >, TrackerT, SuccessfulStep< TrackerTraits< TrackerT >::EventEmitterType > >, bertini::TypedObserver< FirstPrecisionRecorder< TrackerT >, TrackerT, Initializing< TrackerTraits< TrackerT >::EventEmitterType, TrackerTraits< TrackerT >::BaseComplexT >, TrackingStarted< TrackerTraits< TrackerT >::EventEmitterType >, PrecisionChanged< TrackerTraits< TrackerT >::EventEmitterType > >, bertini::TypedObserver< MinMaxPrecisionRecorder< TrackerT >, TrackerT, Initializing< TrackerTraits< TrackerT >::EventEmitterType, TrackerTraits< TrackerT >::BaseComplexT >, TrackingStarted< TrackerTraits< TrackerT >::EventEmitterType >, PrecisionChanged< TrackerTraits< TrackerT >::EventEmitterType > >, bertini::TypedObserver< PathPrecisionRecorder< TrackerT >, TrackerT, TrackingStarted< TrackerTraits< TrackerT >::EventEmitterType >, PrecisionChanged< TrackerTraits< TrackerT >::EventEmitterType > >, bertini::TypedObserver< PathPrecisionRecorder< TrackerType >, TrackerType, TrackingStarted< TrackerTraits< TrackerType >::EventEmitterType >, PrecisionChanged< TrackerTraits< TrackerType >::EventEmitterType > >, and bertini::TypedObserver< StepFailScreenPrinter< TrackerT >, TrackerT, FailedStep< TrackerTraits< TrackerT >::EventEmitterType > >.

◆ SubscribedEventTypes() [2/2]

virtual std::vector< std::type_index > bertini::AnyObserver::SubscribedEventTypes ( ) const
inlinevirtualinherited

Declares which event types this observer wants to receive.

Return a non-empty vector to opt into type-indexed dispatch: the observable will only call Observe() for events whose dynamic type exactly matches one of the returned type_index values. Return an empty vector (the default) to receive every event — this is the correct choice for observers that handle many or all event types, and is the automatic behavior for Python-defined observers.