Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
bertini::MultiObserver< ObservedT, ObserverTypes > Class Template Reference

A class which can glob together observer types into a new, single observer type. More...

#include <observer.hpp>

Inheritance diagram for bertini::MultiObserver< ObservedT, ObserverTypes >:
[legend]
Collaboration diagram for bertini::MultiObserver< ObservedT, ObserverTypes >:
[legend]

Public Member Functions

void Observe (AnyEvent const &e) override
 Observe override which calls the overrides for the types you glued together.
 

Detailed Description

template<class ObservedT, template< class > class... ObserverTypes>
class bertini::MultiObserver< ObservedT, ObserverTypes >

A class which can glob together observer types into a new, single observer type.

If there are pre-existing observers for the object you wish to observe, rather than making one of each, and attaching each to the observable, you can make many things one.

https://frinkiac.com/?q=many%20guns%20into%20five

Template Parameters
ObservedTThe type of thing the observer types you are gluing together observe. They must all observe the same type of object.
ObserverTypesThe already-existing observer types you are gluing together. You can put as many of them together as you want!

Member Function Documentation

◆ Observe()

template<class ObservedT, template< class > class... ObserverTypes>
void bertini::MultiObserver< ObservedT, ObserverTypes >::Observe ( AnyEvent const & e)
inlineoverridevirtual

Observe override which calls the overrides for the types you glued together.

Parameters
eThe emitted event which caused observation.

Implements bertini::AnyObserver.


The documentation for this class was generated from the following file: