Debian Codegraph @

src/atlas/mesh/actions/BuildNode2CellConnectivity.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 namespace atlas {
14 class Mesh;
15 } // namespace atlas
16
17 namespace atlas {
18 namespace mesh {
19 namespace actions {
20
21 class BuildNode2CellConnectivity {
22 public:
23 BuildNode2CellConnectivity(Mesh& mesh);
24 void operator()();
25
26 private:
27 Mesh& mesh_;
28 };
29
30 inline void build_node_to_cell_connectivity(Mesh& mesh) {
31 BuildNode2CellConnectivity{mesh}();
32 }
33
34 } // namespace actions
35 } // namespace mesh
36 } // namespace atlas
37
38 // ------------------------------------------------------------------
39
40 namespace atlas {
41 namespace mesh {
42 namespace detail {
43 class MeshImpl;
44 }
45 } // namespace mesh
46 } // namespace atlas
47
48 // C wrapper interfaces to C++ routines
49 extern "C" {
50 void atlas__build_node_to_cell_connectivity(atlas::mesh::detail::MeshImpl* mesh);
51 }
52
53 // ------------------------------------------------------------------