model_cell_range
Defined in header: <ixion/model_cell_range.hpp>
-
class model_cell_range
STL-compliant range over the cells of a sheet (or sub-range). Returned by model_context::iterate_cells. Supports range-
forand STL/range algorithms via its nested const_iterator.The caller has to ensure that the model content does not change for the duration of the iteration.
Public Functions
-
model_cell_range()
-
model_cell_range(const model_cell_range&) = delete
-
model_cell_range(model_cell_range &&other)
-
~model_cell_range()
-
model_cell_range &operator=(const model_cell_range&) = delete
-
model_cell_range &operator=(model_cell_range &&other)
-
const_iterator begin() const
-
const_iterator cbegin() const
Friends
- friend class detail::model_context_impl
-
struct cell
Public Types
-
using value_type = std::variant<bool, double, std::string_view, const formula_cell*>
-
using value_type = std::variant<bool, double, std::string_view, const formula_cell*>
-
class const_iterator
Public Types
-
using iterator_category = std::input_iterator_tag
-
using difference_type = std::ptrdiff_t
Public Functions
-
const_iterator()
-
const_iterator(const_iterator &&other)
-
const_iterator &operator=(const_iterator &&other)
-
~const_iterator()
-
const_iterator &operator++()
-
void operator++(int)
-
bool operator==(const const_iterator &r) const
-
using iterator_category = std::input_iterator_tag
-
struct sentinel
End sentinel to allow const_iterator to remain move-only while still satisfying std::sentinel_for etc.
-
model_cell_range()