mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
range_iterator default ctor
This commit is contained in:
parent
475f9f35d0
commit
9aff73747d
|
@ -51,6 +51,11 @@ public:
|
|||
using pointer = cell_vector *;
|
||||
using reference = cell_vector; // intentionally value
|
||||
|
||||
/// <summary>
|
||||
/// Default constructs a range iterator
|
||||
/// </summary>
|
||||
range_iterator() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a range iterator on a worksheet, cell pointing to the current
|
||||
/// row or column, range bounds, an order, and whether or not to skip null column/rows.
|
||||
|
@ -124,6 +129,16 @@ public:
|
|||
range_iterator operator++(int);
|
||||
|
||||
private:
|
||||
/// <summary>
|
||||
/// If true, empty rows and cells will be skipped when iterating with this iterator
|
||||
/// </summary>
|
||||
bool skip_null_ = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether rows or columns should be iterated over first
|
||||
/// </summary>
|
||||
major_order order_ = major_order::column;
|
||||
|
||||
/// <summary>
|
||||
/// The worksheet
|
||||
/// </summary>
|
||||
|
@ -138,16 +153,6 @@ private:
|
|||
/// The bounds of the range
|
||||
/// </summary>
|
||||
range_reference bounds_;
|
||||
|
||||
/// <summary>
|
||||
/// Whether rows or columns should be iterated over first
|
||||
/// </summary>
|
||||
major_order order_;
|
||||
|
||||
/// <summary>
|
||||
/// If true, empty rows and cells will be skipped when iterating with this iterator
|
||||
/// </summary>
|
||||
bool skip_null_;
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
@ -166,6 +171,11 @@ public:
|
|||
using pointer = const cell_vector *;
|
||||
using reference = const cell_vector; // intentionally value
|
||||
|
||||
/// <summary>
|
||||
/// Default constructs a range iterator
|
||||
/// </summary>
|
||||
const_range_iterator() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a range iterator on a worksheet, cell pointing to the current
|
||||
/// row or column, range bounds, an order, and whether or not to skip null column/rows.
|
||||
|
@ -234,6 +244,16 @@ public:
|
|||
const_range_iterator operator++(int);
|
||||
|
||||
private:
|
||||
/// <summary>
|
||||
/// If true, empty rows and cells will be skipped when iterating with this iterator
|
||||
/// </summary>
|
||||
bool skip_null_ = false;
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether iteration should move through rows or columns first
|
||||
/// </summary>
|
||||
major_order order_ = major_order::column;
|
||||
|
||||
/// <summary>
|
||||
/// The implementation of the worksheet this iterator points to
|
||||
/// </summary>
|
||||
|
@ -248,16 +268,6 @@ private:
|
|||
/// The range this iterator starts and ends in
|
||||
/// </summary>
|
||||
range_reference bounds_;
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether iteration should move through rows or columns first
|
||||
/// </summary>
|
||||
major_order order_;
|
||||
|
||||
/// <summary>
|
||||
/// If true, empty rows and cells will be skipped when iterating with this iterator
|
||||
/// </summary>
|
||||
bool skip_null_;
|
||||
};
|
||||
|
||||
} // namespace xlnt
|
||||
|
|
Loading…
Reference in New Issue
Block a user