Go to the documentation of this file.
26 #ifndef agenda_class_h
27 #define agenda_class_h
87 void print(ostream& os,
const String& indent)
const;
146 bool internal =
false)
200 minput.resize(
x.minput.nelem());
221 for (ArrayOfIndex::const_iterator j =
moutput.begin(); j <
moutput.end();
223 for (ArrayOfIndex::iterator k = ginonly.begin(); k < ginonly.end(); ++k)
226 k = ginonly.erase(k) - 1;
235 void print(ostream& os,
const String& indent)
const;
bool isInternal() const
Indicates the origin of this method.
const ArrayOfIndex & Out() const
void push_back(const MRecord &n)
Append a new method to end of list.
This stores arbitrary token values and remembers the type.
void set_outputs_to_push_and_dup(const Verbosity &verbosity)
Retrieve indexes of all input and output WSVs.
Agenda mtasks
An agenda, which can be given in the controlfile instead of keywords.
void execute(Workspace &ws) const
Execute an agenda.
Index nelem() const
Return the number of agenda elements.
Verbosity verbosity(Workspace &ws) noexcept
void set_methods(const Array< MRecord > &ml)
MRecord(const MRecord &x)
const ArrayOfIndex & get_output2dup() const
bool is_output(Index var) const
Check if given variable is agenda output.
void print(ostream &os, const String &indent) const
Print an agenda.
const Agenda & Tasks() const
bool has_method(const String &methodname) const
Check if method is in Agenda.
ArrayOfIndex moutput_push
void append(const String &methodname, const TokVal &keywordvalue)
Appends methods to an agenda.
const ArrayOfIndex & In() const
Declarations having to do with the four output streams.
ArrayOfIndex minput
Input workspace variables.
const TokVal & SetValue() const
String name() const
Agenda name.
MRecord(const Index id, const ArrayOfIndex &output, const ArrayOfIndex &input, const TokVal &setvalue, const Agenda &tasks, bool internal=false)
Array< Agenda > ArrayOfAgenda
An array of Agenda.
void print(ostream &os, const String &indent) const
Print an MRecord.
bool is_main_agenda() const
void var(VectorView var, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
Compute the variance of the ranged ys.
bool main_agenda
Is set to true if this is the main agenda.
void check(Workspace &ws, const Verbosity &verbosity)
Checks consistency of an agenda.
void ginput_only(ArrayOfIndex &ginonly) const
Get list of generic input only WSVs.
bool is_input(Workspace &ws, Index var) const
Check if given variable is agenda input.
TokVal msetvalue
Keyword value for Set methods.
const ArrayOfIndex & get_output2push() const
void set_name(const String &nname)
Set agenda name.
ostream & operator<<(ostream &os, const Agenda &a)
Output operator for Agenda.
void resize(Index n)
Resize the method list.
Vector x(Workspace &ws) noexcept
INDEX Index
The type to use for all integer numbers and indices.
const Array< MRecord > & Methods() const
bool mchecked
Flag indicating that the agenda was checked for consistency.
bool minternal
Flag if this method is called internally by the engine.
ArrayOfIndex moutput
Output workspace variables.
Index nelem() const
Number of elements.
Agenda & operator=(const Agenda &x)
Assignment operator.
MRecord & operator=(const MRecord &x)
Assignment operator for MRecord.