Contains the detail/events base types.
More...
#include <boost/type_index.hpp>
Go to the source code of this file.
|
| template<typename ObsT> |
| using | bertini::ConstEvent = Event<ObsT,true> |
| | An event holding a const reference to its observable.
|
| template<typename ObsT> |
| using | bertini::MutableEvent = Event<ObsT,false> |
| | An event holding a mutable reference to its observable.
|
Contains the detail/events base types.
◆ 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_name | The name of the new Event type you are making. |
| event_parenttype | The name of the parent Event type in the heirarchy. |