71 #ifndef timeSelector_H
72 #define timeSelector_H
133 const bool constant=
true,
134 const bool withZero=
false
142 const word& constantName =
"constant"
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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.
A List of scalarRange for selecting times.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
bool selected(const instant &) const
Return true if the given instant is within the ranges.
void inplaceSelect(instantList &) const
Select a list of Time values that are within the ranges.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0)
timeSelector()
Construct Null.
instantList select(const instantList &) const
Select a list of Time values that are within the ranges.
A class for handling words, derived from string.
Foam::argList args(argc, argv)