Go to the documentation of this file.
29 #ifndef _ARTS_INTERACTIVE_WORKSPACE_H_
30 #define _ARTS_INTERACTIVE_WORKSPACE_H_
87 const Index agenda_verbosity = 0);
90 using Workspace::operator[];
191 Index id,
size_t l,
size_t m,
size_t n,
const Numeric *src);
199 Index id,
size_t k,
size_t l,
size_t m,
size_t n,
const Numeric *src);
262 const int *row_indices,
263 const int *column_indices);
338 #endif // _ARTS_INTERACTIVE_WORKSPACE_H_
void set_string_variable(Index id, const char *src)
Deep-copy of String variable into workspace.
const char * execute_agenda(const Agenda *a)
Execute agenda.
void(* callback_)(InteractiveWorkspace *)
Callback & operator=(Callback &&)=default
Verbosity verbosity(Workspace &ws) noexcept
void initialize_variable(Index id)
Initialize workspace variable.
virtual void execute(InteractiveWorkspace &ws)
Execute callback.
void set_tensor7_variable(Index id, size_t k, size_t l, size_t m, size_t n, size_t o, size_t p, size_t q, const Numeric *src)
Deep-copy of Tensor5 variable into workspace.
void set_agenda_variable(Index id, const Agenda &src)
Set agenda variable into workspace.
void set_matrix_variable(Index id, size_t m, size_t n, const Numeric *src)
Deep-copy of Matrix variable into workspace.
void resize()
Resize workspace stack.
static size_t n_anonymous_variables_
void set_index_variable(Index id, const Index &src)
Deep-copy of Index variable into workspace.
void set_vector_variable(Index id, size_t n, const Numeric *src)
Deep-copy of Vector variable into workspace.
Declarations for agendas.
Callback(Callback &&)=default
InteractiveWorkspace(const Index verbosity=1, const Index agenda_verbosity=0)
static void initialize()
Workspace intialization.
void set_array_of_index_variable(Index id, size_t n, const Index *src)
Deep-copy of ArrayOfIndex variable into workspace.
Callback & operator=(const Callback &)=default
void set_tensor5_variable(Index id, size_t k, size_t l, size_t m, size_t n, size_t o, const Numeric *src)
Deep-copy of Tensor5 variable into workspace.
void set_numeric_variable(Index id, const Numeric &src)
Deep-copy of Numeric variable into workspace.
NUMERIC Numeric
The type to use for all floating point numbers.
void set_tensor3_variable(Index id, size_t l, size_t m, size_t n, const Numeric *src)
Deep-copy of Tensor3 variable into workspace.
void set_sparse_variable(Index id, Index m, Index n, Index nnz, const Numeric *src, const int *row_indices, const int *column_indices)
Deep-copy of Sparse matrix into workspace.
void set_tensor6_variable(Index id, size_t k, size_t l, size_t m, size_t n, size_t o, size_t p, const Numeric *src)
Deep-copy of Tensor6 variable into workspace.
static std::vector< Callback * > callbacks_
const char * execute_workspace_method(long id, const ArrayOfIndex &output, const ArrayOfIndex &input)
Execute workspace method.
void set_tensor4_variable(Index id, size_t k, size_t l, size_t m, size_t n, const Numeric *src)
Deep-copy of Tensor4 variable into workspace.
static Index add_callback(Callback *cb)
Add callback to workspace.
void set_array_of_string_variable(Index id, size_t n, const char *const *src)
Deep-copy of ArrayOfString variable into workspace.
This file contains the Workspace class.
void erase_variable(Index i, Index group_id)
Remove a variable stack from the workspace.
void(* getaways[])(Workspace &, const MRecord &)
bool is_initialized(Index i)
Checks existence of the given WSV.
INDEX Index
The type to use for all integer numbers and indices.
Callback(void(*f)(InteractiveWorkspace *))
Create callback.
Callback(const Callback &)=default
void swap(Index i, Index j)
Remove a variable stack from the workspace.
Index add_variable(Index group_id, const char *name)
Push a stack for a new variable to the workspace.
Interactive ARTS workspace.
void execute_callback(Index callback_id)