27 #ifndef MULTI_PARAM_FIELD_ITERATOR_H_
28 #define MULTI_PARAM_FIELD_ITERATOR_H_
39 :
public std::iterator<std::forward_iterator_tag, std::array<casacore::Record *,N>,
52 std::array<casacore::Record *,N> &recs,
const string prefix =
"")
84 std::array<casacore::Record *,N> result;
86 for (
size_t i = 0; i <
N; ++i)
87 result[i] = &
records[i]->rwSubRecord(field_name);
92 const string &
prefix =
"") {
97 const string &
prefix =
"") {
106 #endif // MULTI_PARAM_FIELD_ITERATOR_H_
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
casacore::uInt field_index
static MultiParamFieldIterator< N > end(std::array< casacore::Record *, N > &recs, const string &prefix="")
bool operator!=(const MultiParamFieldIterator &rhs)
MultiParamFieldIterator()
MultiParamFieldIterator(const MultiParamFieldIterator &fit)
static MultiParamFieldIterator< N > begin(std::array< casacore::Record *, N > &recs, const string &prefix="")
A hierarchical collection of named fields of various types.
std::array< casacore::Record *, N > records
std::array< casacore::Record *, N > operator*()
MultiParamFieldIterator operator++()
String: the storage and methods of handling collections of characters.
bool operator==(const MultiParamFieldIterator &rhs)
MultiParamFieldIterator operator++(int)
static String toString(const T &value)
Convert a value to a String.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
MultiParamFieldIterator(std::array< casacore::Record *, N > &recs, const string prefix="")