61 #ifndef Function1Types_FunctionObjectTrigger_H 62 #define Function1Types_FunctionObjectTrigger_H 71 namespace Function1Types
79 class FunctionObjectTrigger
81 public Function1<Type>
96 inline bool active()
const;
148 virtual inline Type
value(const scalar ) const;
151 virtual inline Type
integrate(const scalar, const scalar) const;
168 #include "FunctionObjectTriggerI.H" void resetTriggers(const labelUList &indices)
Change the trigger indices.
const word const dictionary & dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual Type value(const scalar) const
Return 0/1 value at current time.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
virtual Type integrate(const scalar, const scalar) const
Integrate between two (scalar) values. Not implemented!
TypeName("functionObjectTrigger")
Runtime type information.
FunctionObjectTrigger(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
void operator=(const FunctionObjectTrigger< Type > &)=delete
No copy assignment.
A class for handling words, derived from Foam::string.
Returns a 0/1 value corresponding to function object trigger levels.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const word const dictionary const objectRegistry * obrPtr
virtual void writeData(Ostream &os) const
Write in dictionary format.
List< label > labelList
A List of labels.
A class for managing temporary objects.
Registry of regIOobjects.
virtual ~FunctionObjectTrigger()=default
Destructor.
const labelList & triggers() const noexcept
Return the trigger indices.