Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
events.hpp File Reference

Contains the detail/events base types. More...

#include <boost/type_index.hpp>
Include dependency graph for detail/events.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bertini::AnyEvent
 Strawman Event type, enabling polymorphism. More...
 

Macros

#define ADD_BERTINI_EVENT_TYPE(event_name, event_parenttype)
 Defines a new event type in a hierarchy.
 

Detailed Description

Contains the detail/events base types.

Macro Definition Documentation

◆ ADD_BERTINI_EVENT_TYPE

#define ADD_BERTINI_EVENT_TYPE ( event_name,
event_parenttype )
Value:
template<class ObservedT> \
class event_name : public event_parenttype<ObservedT> \
{ BOOST_TYPE_INDEX_REGISTER_CLASS \
public: \
using HeldT = typename event_parenttype<ObservedT>::HeldT; \
event_name(HeldT obs) : event_parenttype<ObservedT>(obs){} \
virtual ~event_name() = default; \
event_name() = delete; }

Defines a new event type in a hierarchy.

Parameters
event_nameThe name of the new Event type you are making.
event_parenttypeThe name of the parent Event type in the heirarchy.