class
#include <atlas/field/FieldSet.h>
FieldSet Represents a set of fields, where order is preserved.
Public types
- using iterator = Implementation::iterator
- using const_iterator = Implementation::const_iterator
-
template<typename T>using enable_if_index_t = Implementation::enable_if_index_t<T>
Constructors, destructors, conversion operators
- FieldSet()
-
FieldSet(const std::
string& name) - FieldSet(const Field&)
Public functions
-
auto clone(const eckit::
Parametrisation& config = util:: Config()) const -> FieldSet -
auto size() const -> idx_
t - auto empty() const -> bool
- void clear()
-
auto name() const -> const std::
string& -
auto name() -> std::
string& -
template<typename Index, enable_if_index_t<Index> = 0>auto operator[](Index i) const -> const Field&
-
template<typename Index, enable_if_index_t<Index> = 0>auto operator[](Index i) -> Field&
-
auto operator[](const std::
string& name) const -> const Field& -
auto operator[](const std::
string& name) -> Field& - auto operator[](const char* name) const -> const Field&
- auto operator[](const char* name) -> Field&
-
template<typename Index, enable_if_index_t<Index> = 0>auto field(Index i) const -> const Field&
-
template<typename Index, enable_if_index_t<Index> = 0>auto field(Index i) -> Field&
-
auto field_names() const -> const std::
vector<std:: string>& - auto add(const Field& field) -> Field
-
auto has(const std::
string& name) const -> bool -
auto field(const std::
string& name) const -> Field& - auto begin() -> iterator
- auto end() -> iterator
- auto begin() const -> const_iterator
- auto end() const -> const_iterator
- auto cbegin() const -> const_iterator
- auto cend() const -> const_iterator
-
auto metadata() const -> const util::
Metadata& -
auto metadata() -> util::
Metadata& - void haloExchange(bool on_device = false) const
- void adjointHaloExchange(bool on_device = false) const
- void set_dirty(bool = true) const
-
auto has_field(const std::
string& name) const -> bool