atlas
|
Represents a set of fields, where order is preserved. More...
#include <FieldSet.h>
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 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) |
const Field & | operator[] (const char *name) const |
Field & | operator[] (const char *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 &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 | set_dirty (bool=true) const |
Represents a set of fields, where order is preserved.