Represents a set of fields, where order is preserved.
More...
#include <FieldSet.h>
|
using | iterator = std::vector< Field >::iterator |
|
using | const_iterator = std::vector< Field >::const_iterator |
|
template<bool pred> |
using | enable_if_t = typename std::enable_if< pred, int >::type |
|
template<typename T > |
using | enable_if_index_t = enable_if_t< is_index< T >()> |
|
|
| FieldSetImpl (const std::string &name="untitled") |
| Constructs an empty FieldSet.
|
|
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 Field & | operator[] (Index i) const |
|
template<typename Index , enable_if_index_t< Index > = 0> |
Field & | operator[] (Index i) |
|
const Field & | operator[] (const std::string &name) const |
|
Field & | operator[] (const std::string &name) |
|
template<typename Index , enable_if_index_t< Index > = 0> |
const Field & | field (Index i) const |
|
template<typename Index , enable_if_index_t< Index > = 0> |
Field & | field (Index i) |
|
std::vector< std::string > | field_names () const |
|
Field | add (const Field &) |
|
bool | has_field (const std::string &name) const |
|
Field & | field (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 | adjointHaloExchange (bool on_device=false) const |
|
void | set_dirty (bool=true) const |
|
|
template<typename T > |
static constexpr bool | is_index () |
|
|
std::vector< Field > | fields_ |
| field storage
|
|
std::string | name_ |
| internal name
|
|
std::map< std::string, idx_t > | index_ |
| name-to-index map, to refer fields by name
|
|
Represents a set of fields, where order is preserved.
The documentation for this class was generated from the following files:
- src/atlas/field/FieldSet.h
- src/atlas/field/FieldSet.cc