Debian Codegraph @

src/atlas/numerics/Method.h

raw
1 /*
2 * (C) Copyright 2013 ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation
8 * nor does it submit to any jurisdiction.
9 */
10
11 #pragma once
12
13 #include <string>
14
15 #include "atlas/util/Object.h"
16
17 namespace atlas {
18 namespace numerics {
19
20 /// @brief Method class
21 /// @note Abstract base class
22 class Method : public util::Object {
23 public:
24 Method() {}
25 virtual ~Method() = 0;
26 virtual const std::string& name() const = 0;
27 };
28
29 inline Method::~Method() {}
30
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 extern "C" {
33 void atlas__Method__delete(Method* This);
34 const char* atlas__Method__name(Method* This);
35 }
36 #endif
37
38 } // namespace numerics
39 } // namespace atlas