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 239 nelem = x.
nelem() - 1;
INDEX Index
The type to use for all integer numbers and indices.
#define NGET_GENERIC(what, type)
Index nelem() const
Number of elements.
Declarations having to do with the four output streams.
#define TMPL_NGET_GENERIC(what)
This file contains the definition of Array.
This file contains the Workspace class.
The global header file for ARTS.
Header file for sparse matrices.
_CS_string_type str() const
#define TMPL_NGET_AGENDA(what)
Declarations for agendas.
The declarations of all the exception classes.
void nelemGet(Workspace &, Index &nelem, const ArrayOfAgenda &x, const Verbosity &)
#define SET_TO_LAST_GENERIC(type)
void IndexSetToLast(Index &, const T &, const Verbosity &)
WORKSPACE METHOD: IndexSetToLast.
This can be used to make arrays out of anything.
Index nelem(const Lines &l)
Number of lines.
Implementation of gridded fields.
This file contains the definition of String, the ARTS string class.