ARTS 2.5.4 (git: 4c0d3b4d)
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 */
38template <typename T>
39void 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
Workspace class.
Definition: workspace_ng.h:40
static map< String, Index > WsvMap
Global map associated with wsv_data.
Definition: workspace_ng.h:61
void del(Index i)
Delete WSV.
Definition: workspace_ng.cc:66
#define _U_
Definition: config.h:180
void Delete(Workspace &ws, const T &x, const String &x_name, const Verbosity &)
WORKSPACE METHOD: Delete.
Definition: m_delete.h:39
This file contains the definition of String, the ARTS string class.
This file contains the Workspace class.