ARTS  2.4.0(git:4fb77825)
m_delete.h
Go to the documentation of this file.
1 /* Copyright (C) 2002-2012 Stefan Buehler <sbuehler@ltu.se>
2 
3  This program is free software; you can redistribute it and/or modify it
4  under the terms of the GNU General Public License as published by the
5  Free Software Foundation; either version 2, or (at your option) any
6  later version.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16  USA. */
17 
29 #ifndef m_delete_h
30 #define m_delete_h
31 
32 #include <map>
33 
34 #include "mystring.h"
35 #include "workspace_ng.h"
36 
37 /* Workspace method: Doxygen documentation will be auto-generated */
38 template <typename T>
39 void Delete( // Workspace reference
40  Workspace& ws,
41  // WS Generic Input:
42  const T& x _U_,
43  // WS Generic Input Names:
44  const String& x_name,
45  const Verbosity&) {
46  ws.del(ws.WsvMap.find(x_name)->second);
47 }
48 
49 #endif // m_ignore_h
_U_
#define _U_
Definition: config.h:183
my_basic_string< char >
Verbosity
Definition: messages.h:49
Workspace::del
void del(Index i)
Delete WSV.
Definition: workspace_ng.cc:66
Delete
void Delete(Workspace &ws, const T &x, const String &x_name, const Verbosity &)
WORKSPACE METHOD: Delete.
Definition: m_delete.h:39
workspace_ng.h
This file contains the Workspace class.
Workspace::WsvMap
static map< String, Index > WsvMap
Global map associated with wsv_data.
Definition: workspace_ng.h:61
Workspace
Workspace class.
Definition: workspace_ng.h:40
ARTS::Var::x
Vector x(Workspace &ws) noexcept
Definition: autoarts.h:7346
mystring.h
This file contains the definition of String, the ARTS string class.