atlas
Public Types | Public Member Functions | List of all members
atlas::FieldSet Class Reference

Represents a set of fields, where order is preserved. More...

#include <FieldSet.h>

Inheritance diagram for atlas::FieldSet:
Inheritance graph
[legend]
Collaboration diagram for atlas::FieldSet:
Collaboration graph
[legend]

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 >
 

Public Member Functions

 FieldSet (const std::string &name)
 
 FieldSet (const Field &)
 
idx_t size () const
 
bool empty () const
 
void clear ()
 
const std::string & name () const
 
std::string & name ()
 
template<typename Index , enable_if_index_t< Index > = 0>
const Fieldoperator[] (Index i) const
 
template<typename Index , enable_if_index_t< Index > = 0>
Fieldoperator[] (Index i)
 
const Fieldoperator[] (const std::string &name) const
 
Fieldoperator[] (const std::string &name)
 
const Fieldoperator[] (const char *name) const
 
Fieldoperator[] (const char *name)
 
template<typename Index , enable_if_index_t< Index > = 0>
const Fieldfield (Index i) const
 
template<typename Index , enable_if_index_t< Index > = 0>
Fieldfield (Index i)
 
std::vector< std::string > field_names () const
 
Field add (const Field &field)
 
bool has_field (const std::string &name) const
 
Fieldfield (const std::string &name) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void haloExchange (bool on_device=false) const
 
void set_dirty (bool=true) const
 

Detailed Description

Represents a set of fields, where order is preserved.


The documentation for this class was generated from the following files: