Debian Codegraph @

src/atlas/mesh/detail/MeshIntf.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 "atlas/mesh/Mesh.h"
14
15 //----------------------------------------------------------------------------------------------------------------------
16
17 namespace atlas {
18 namespace mesh {
19
20 // C wrapper interfaces to C++ routines
21 extern "C" {
22 Mesh::Implementation* atlas__Mesh__new();
23 void atlas__Mesh__delete(Mesh::Implementation* This);
24 Nodes* atlas__Mesh__nodes(Mesh::Implementation* This);
25 Edges* atlas__Mesh__edges(Mesh::Implementation* This);
26 Cells* atlas__Mesh__cells(Mesh::Implementation* This);
27 size_t atlas__Mesh__footprint(Mesh::Implementation* This);
28 void atlas__Mesh__update_device(Mesh::Implementation* This);
29 void atlas__Mesh__update_host(Mesh::Implementation* This);
30 void atlas__Mesh__sync_host_device(Mesh::Implementation* This);
31 }
32
33 //----------------------------------------------------------------------------------------------------------------------
34
35 } // namespace mesh
36 } // namespace atlas