71 #ifndef timeSelector_H 72 #define timeSelector_H 133 const bool constant=
true,
134 const bool withZero=
false 142 const word& constantName =
"constant" 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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
timeSelector()
Construct Null.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
Extract command arguments and options from the supplied argc and argv parameters. ...
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0)
instantList select(const 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.
A List of scalarRange for selecting times.
An instant of time. Contains the time value and name.
Foam::argList args(argc, argv)
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.