Go to the documentation of this file.
27 #ifndef M_BASIC_TYPES_H
28 #define M_BASIC_TYPES_H
54 #define TMPL_NGET_GENERIC(what) \
55 template <typename T> \
56 void what##Get(Index&, const T&, const Verbosity&) { \
58 os << "The variable has no such attribute.\n"; \
59 throw runtime_error(os.str()); \
72 #undef TMPL_NGET_GENERIC
74 #define TMPL_NGET_AGENDA(what) \
75 inline void what##Get(Workspace& ws _U_, Index&, const Agenda&, const Verbosity&) { \
77 os << "The variable has no such attribute.\n"; \
78 throw runtime_error(os.str()); \
91 #undef TMPL_NGET_AGENDA
96 os <<
"The variable has no such attribute.\n";
97 throw runtime_error(os.str());
105 #define NGET_GENERIC(what, type) \
106 inline void what##Get(Index& what, const type& x, const Verbosity&) { \
110 #define SET_TO_LAST_GENERIC(type) \
111 inline void IndexSetToLast(Index& i, const type& x, const Verbosity&) { \
226 #undef SET_TO_LAST_GENERIC
Implementation of gridded fields.
Index nlibraries(Workspace &ws) noexcept
The declarations of all the exception classes.
#define SET_TO_LAST_GENERIC(type)
Index nvitrines(Workspace &ws) noexcept
#define NGET_GENERIC(what, type)
Index nshelves(Workspace &ws) noexcept
void IndexSetToLast(Index &, const T &, const Verbosity &)
WORKSPACE METHOD: IndexSetToLast.
This file contains the definition of Array.
This can be used to make arrays out of anything.
Index nelem(const Lines &l)
Number of lines.
Declarations for agendas.
Declarations having to do with the four output streams.
void nelemGet(Workspace &, Index &nelem, const ArrayOfAgenda &x, const Verbosity &)
Index npages(Workspace &ws) noexcept
#define TMPL_NGET_AGENDA(what)
Index nrows(Workspace &ws) noexcept
This file contains the Workspace class.
Header file for sparse matrices.
Vector x(Workspace &ws) noexcept
INDEX Index
The type to use for all integer numbers and indices.
Index ncols(Workspace &ws) noexcept
#define TMPL_NGET_GENERIC(what)
Index nbooks(Workspace &ws) noexcept
This file contains the definition of String, the ARTS string class.
The global header file for ARTS.