92#ifndef Foam_timeSelector_H
93#define Foam_timeSelector_H
133 bool contains(const scalar value) const;
176 const bool withZero=
false
194 const word& constantName =
"constant"
223 const bool forceInitial =
false
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Extract command arguments and options from the supplied argc and argv parameters.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
A collection of scalar bounds to be used as a unary predicate.
static void addOptions_singleTime()
Add single-time timeSelector options to argList::validOptions().
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
static bool setTimeIfPresent(Time &runTime, const argList &args, const bool forceInitial=false)
Set the runTime based on -constant (if present), -time (value), or -latestTime.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options and also set the runTime to the first i...
bool selected(const instant &t) const
True if value of the instant is within any of the ranges.
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times - as per select0() - otherwise return just the cu...
timeSelector() noexcept=default
Default construct.
bool contains(const scalar value) const
True if value is within any of the ranges.
void inplaceSelect(instantList ×) const
Select a list of Time values that are within the ranges.
instantList select(const instantList ×) const
Select a list of Time values that are within the ranges.
A class for handling words, derived from Foam::string.
Different types of constants.
List< instant > instantList
List of instants.
Foam::argList args(argc, argv)