Storm
A Modern Probabilistic Model Checker
|
Stores and manages an extremal (maximal or minimal) value. More...
#include <Extremum.h>
Public Member Functions | |
Extremum ()=default | |
Extremum (ValueType const &value) | |
Extremum (ValueType &&value) | |
Extremum (Extremum const &)=default | |
Extremum (Extremum &&)=default | |
Extremum & | operator= (Extremum const &)=default |
Extremum & | operator= (Extremum &&)=default |
~Extremum ()=default | |
Extremum & | operator= (ValueType const &value) |
Sets the extremum to the given value. | |
Extremum & | operator= (ValueType &&value) |
Sets the extremum to the given value. | |
bool | better (ValueType const &value) const |
bool | operator&= (Extremum const &other) |
Updates the stored value, if the given extremal value is better. | |
bool | operator&= (Extremum &&other) |
Updates the stored value, if the given extremal value is better. | |
bool | operator&= (ValueType const &value) |
Updates the stored value, if the given value is better. | |
bool | operator&= (ValueType &&value) |
Updates the stored value, if the given value is better. | |
bool | empty () const |
ValueType const & | operator* () const |
ValueType & | operator* () |
std::optional< ValueType > | getOptionalValue () const |
void | reset () |
Forgets the extremal value so that this represents the extremum over an empty set. | |
Stores and manages an extremal (maximal or minimal) value.
Definition at line 15 of file Extremum.h.
|
default |
storm::utility::Extremum< Dir, ValueType >::Extremum | ( | ValueType const & | value | ) |
Definition at line 9 of file Extremum.cpp.
storm::utility::Extremum< Dir, ValueType >::Extremum | ( | ValueType && | value | ) |
Definition at line 16 of file Extremum.cpp.
|
default |
|
default |
|
default |
bool storm::utility::Extremum< Dir, ValueType >::better | ( | ValueType const & | value | ) | const |
value |
Definition at line 41 of file Extremum.cpp.
bool storm::utility::Extremum< Dir, ValueType >::empty | ( | ) | const |
Definition at line 96 of file Extremum.cpp.
std::optional< ValueType > storm::utility::Extremum< Dir, ValueType >::getOptionalValue | ( | ) | const |
Definition at line 117 of file Extremum.cpp.
bool storm::utility::Extremum< Dir, ValueType >::operator&= | ( | Extremum< Dir, ValueType > && | other | ) |
Updates the stored value, if the given extremal value is better.
other |
Definition at line 64 of file Extremum.cpp.
bool storm::utility::Extremum< Dir, ValueType >::operator&= | ( | Extremum< Dir, ValueType > const & | other | ) |
Updates the stored value, if the given extremal value is better.
other |
Definition at line 56 of file Extremum.cpp.
bool storm::utility::Extremum< Dir, ValueType >::operator&= | ( | ValueType && | value | ) |
Updates the stored value, if the given value is better.
other |
Definition at line 84 of file Extremum.cpp.
bool storm::utility::Extremum< Dir, ValueType >::operator&= | ( | ValueType const & | value | ) |
Updates the stored value, if the given value is better.
other |
Definition at line 72 of file Extremum.cpp.
ValueType & storm::utility::Extremum< Dir, ValueType >::operator* | ( | ) |
Definition at line 111 of file Extremum.cpp.
ValueType const & storm::utility::Extremum< Dir, ValueType >::operator* | ( | ) | const |
Definition at line 105 of file Extremum.cpp.
|
default |
|
default |
Extremum< Dir, ValueType > & storm::utility::Extremum< Dir, ValueType >::operator= | ( | ValueType && | value | ) |
Sets the extremum to the given value.
Definition at line 32 of file Extremum.cpp.
Extremum< Dir, ValueType > & storm::utility::Extremum< Dir, ValueType >::operator= | ( | ValueType const & | value | ) |
Sets the extremum to the given value.
Definition at line 23 of file Extremum.cpp.
void storm::utility::Extremum< Dir, ValueType >::reset | ( | ) |
Forgets the extremal value so that this represents the extremum over an empty set.
Definition at line 126 of file Extremum.cpp.