Class DataSet::DataRow#

Nested Relationships#

This class is a nested type of Template Class DataSet.

Nested Types#

Class Documentation#

class DataRow#

Row of a data table.

DataRow represents a row in this DataSet. A DataRow does not become invalid when column order is changed or a column is disabled. It might get invalid when restricting columns to a certain interval.

Public Functions

inline DataRow(const std::vector<MockColumn> &columns, const std::size_t &enabled_columns, std::size_t offset)#

Creates a DataRow from given reference to the columns and to the number of enabled columns (needed for update) and the row number (aka column offset).

Parameters:
  • columns – a reference to the column array

  • enabled_columns – a reference to the number of enabled columns

  • offset – the row offset

inline const Cell &operator[](std::size_t i) const#

Accesses the i-th Cell of this DataRow.

Parameters:

i – the index

Returns:

the Cell

inline void set_enabled(bool enabled)#

Sets the enabled flag of this MockColumn to the specified value.

Parameters:

enabled – set enabled or not

inline std::size_t size() const#

Returns the size of this MockColumn.

Returns:

the size

inline bool is_enabled() const#

Returns the value of the enabled flag.

Returns:

enabled or not

inline const_iterator begin() const#

Returns a const_iterator pointing to the first cell in this DataRow.

Returns:

the iterator

inline const_iterator end() const#

Returns a const_iterator pointing to the end of this DataRow

Returns:

the iterator

class const_iterator : public std::iterator<std::input_iterator_tag, const Cell>#

Public Functions

inline explicit const_iterator(const typename std::vector<MockColumn>::const_iterator &_it, const typename std::vector<MockColumn>::const_iterator &_end, std::size_t _offset)#
inline const_iterator &operator++()#
inline const_iterator operator++(int)#
inline bool operator==(const const_iterator &other) const#
inline bool operator!=(const const_iterator &other) const#
inline const Cell &operator*() const#