Go to the documentation of this file.
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"
List< label > labelList
A List of labels.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const word const dictionary & dict
virtual void writeData(Ostream &os) const
Write in dictionary format.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual ~FunctionObjectTrigger()=default
Destructor.
Registry of regIOobjects.
const word const dictionary const objectRegistry * obrPtr
const labelList & triggers() const noexcept
Return the trigger indices.
void resetTriggers(const labelUList &indices)
Change the trigger indices.
virtual Type value(const scalar) const
Return 0/1 value at current time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Returns a 0/1 value corresponding to function object trigger levels.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
void operator=(const FunctionObjectTrigger< Type > &)=delete
No copy assignment.
virtual Type integrate(const scalar, const scalar) const
Integrate between two (scalar) values. Not implemented!
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
TypeName("functionObjectTrigger")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
FunctionObjectTrigger(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.