Debian Codegraph @

src/atlas/field/Halo.h

raw
1 /*
2 * (C) Copyright 2025 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 "eckit/config/Parametrisation.h"
14 #include "atlas/functionspace/HaloDescription.h"
15
16 namespace atlas::field {
17
18 class FieldImpl;
19
20 class Halo: public functionspace::HaloDescription {
21 public:
22 bool updated() const;
23 void updated(bool v);
24 void update();
25 void update(const eckit::Parametrisation&);
26 void invalidate() { updated(false); }
27 bool appended() const;
28
29 private:
30 friend class FieldImpl;
31 Halo(field::FieldImpl& f);
32 private:
33 field::FieldImpl& field_;
34 };
35
36 } // namespace atlas::field