#include <predicates.hpp>
|
using | pred = std::function< bool(const DerivedSST &)> |
|
using | trig = std::function< void(DerivedSST &)> |
|
using | pred_list = std::list< std::unique_ptr< std::pair< pred, std::shared_ptr< trig > >> > |
|
template<class DerivedSST>
class sst::Predicates< DerivedSST >
Definition at line 28 of file predicates.hpp.
◆ pred
template<class DerivedSST>
◆ pred_list
template<class DerivedSST>
◆ trig
template<class DerivedSST>
◆ clear()
template<class DerivedSST >
Deletes all predicates, including evolvers and their triggers.
Definition at line 136 of file predicates.hpp.
◆ insert() [1/2]
template<class DerivedSST >
Inserts a single (predicate, trigger) pair to the appropriate predicate list.
This is a convenience method for when the predicate has only one trigger; it automatically chooses the right list based on the predicate type.
To insert a predicate with multiple triggers, use std::list::insert() directly on the appropriate predicate list member.
- Parameters
-
predicate | The predicate to insert. |
trigger | The trigger to execute when the predicate is true. |
type | The type of predicate being inserted; default is PredicateType::ONE_TIME |
Definition at line 107 of file predicates.hpp.
◆ insert() [2/2]
template<class DerivedSST>
Inserts a predicate with a list of triggers (which will be run in sequence) to the appropriate predicate list.
Definition at line 80 of file predicates.hpp.
◆ remove()
template<class DerivedSST >
◆ SST< DerivedSST >
template<class DerivedSST>
friend class SST< DerivedSST > |
|
friend |
◆ one_time_predicates
template<class DerivedSST>
Predicate list for one-time predicates.
Definition at line 33 of file predicates.hpp.
◆ predicate_mutex
template<class DerivedSST>
◆ recurrent_predicates
template<class DerivedSST>
Predicate list for recurrent predicates.
Definition at line 35 of file predicates.hpp.
◆ transition_predicate_states
template<class DerivedSST>
Contains one entry for every predicate in transition_predicates
, in parallel.
Definition at line 39 of file predicates.hpp.
◆ transition_predicates
template<class DerivedSST>
Predicate list for transition predicates.
Definition at line 37 of file predicates.hpp.
The documentation for this class was generated from the following file: