SpECTRE
v2025.03.17
|
An explicitly specified sequence of times. More...
#include <TimeSequence.hpp>
Classes | |
struct | Values |
Public Types | |
using | options = implementation defined |
Public Member Functions | |
Specified (std::vector< T > values) | |
std::array< std::optional< T >, 3 > | times_near (T time) const override |
Returns the time in the sequence nearest to time , the time before that, and the time after, in numerical order. These values allow a consumer to find the times in the sequence bracketing the given time and give enough additional information so that exact or roundoff matches can be handled however the consumer wishes. Any time that does not exist (because the sequence terminates) is returned as an empty std::optional. The central std::optional will be populated unless the sequence is empty. More... | |
void | pup (PUP::er &p) override |
![]() | |
WRAPPED_PUPable_abstract (TimeSequence) | |
virtual std::array< std::optional< T >, 3 > | times_near (T time) const =0 |
Returns the time in the sequence nearest to time , the time before that, and the time after, in numerical order. These values allow a consumer to find the times in the sequence bracketing the given time and give enough additional information so that exact or roundoff matches can be handled however the consumer wishes. Any time that does not exist (because the sequence terminates) is returned as an empty std::optional. The central std::optional will be populated unless the sequence is empty. More... | |
Static Public Attributes | |
static constexpr Options::String | help |
An explicitly specified sequence of times.
|
overridevirtual |
Returns the time in the sequence nearest to time
, the time before that, and the time after, in numerical order. These values allow a consumer to find the times in the sequence bracketing the given time and give enough additional information so that exact or roundoff matches can be handled however the consumer wishes. Any time that does not exist (because the sequence terminates) is returned as an empty std::optional. The central std::optional will be populated unless the sequence is empty.
Implements TimeSequence< T >.
|
staticconstexpr |