ARTS 2.5.9 (git: 825fa5f2)
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 "m_general.h"
35#include "mystring.h"
36#include "workspace_ng.h"
37
38/* Workspace method: Doxygen documentation will be auto-generated */
39template <typename T>
40void Delete( // Workspace reference
41 Workspace& ws,
42 // WS Generic Input:
43 const T& x _U_,
44 // WS Generic Input Names:
45 const String& x_name,
46 const Verbosity&) {
47 ws.set_empty(ws.WsvMap_ptr->at(x_name));
48}
49
50#endif // m_ignore_h
Workspace class.
Definition: workspace_ng.h:53
std::shared_ptr< WsvMap_type > WsvMap_ptr
Definition: workspace_ng.h:79
void set_empty(Index i)
Delete WSV.
Definition: workspace_ng.cc:49
#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:40
Template functions for general supergeneric ws methods.
This file contains the definition of String, the ARTS string class.
This file contains the Workspace class.