xlnt
|
An iterator which is used to iterate over the worksheets in a const workbook. More...
#include <worksheet_iterator.hpp>
Public Types | |
using | iterator_category = std::bidirectional_iterator_tag |
iterator tags required for use with standard algorithms and adapters More... | |
using | value_type = const worksheet |
using | difference_type = std::ptrdiff_t |
using | pointer = const worksheet * |
using | reference = const worksheet |
Public Member Functions | |
const_worksheet_iterator ()=default | |
Default Constructs a worksheet iterator More... | |
const_worksheet_iterator (const workbook &wb, std::size_t index) | |
Constructs a worksheet iterator from a workbook and sheet index. More... | |
const_worksheet_iterator (const const_worksheet_iterator &)=default | |
Copy constructs a worksheet iterator from another iterator. More... | |
const_worksheet_iterator & | operator= (const const_worksheet_iterator &)=default |
Copy assigns the iterator so that it points to the same worksheet in the same workbook. More... | |
const_worksheet_iterator (const_worksheet_iterator &&)=default | |
Move constructs a worksheet iterator from a temporary iterator. More... | |
const_worksheet_iterator & | operator= (const_worksheet_iterator &&)=default |
Move assigns the iterator from a temporary iterator More... | |
~const_worksheet_iterator ()=default | |
Default destructor More... | |
const reference | operator* () const |
Dereferences the iterator to return the worksheet it is pointing to. If the iterator points to one-past-the-end of the workbook, an invalid_parameter exception will be thrown. More... | |
bool | operator== (const const_worksheet_iterator &comparand) const |
Returns true if this iterator points to the same worksheet as comparand. More... | |
bool | operator!= (const const_worksheet_iterator &comparand) const |
Returns true if this iterator doesn't point to the same worksheet as comparand. More... | |
const_worksheet_iterator | operator++ (int) |
Post-increment the iterator's internal workseet index. Returns a copy of the iterator as it was before being incremented. More... | |
const_worksheet_iterator & | operator++ () |
Pre-increment the iterator's internal workseet index. Returns a refernce to the same iterator. More... | |
const_worksheet_iterator | operator-- (int) |
Post-decrement the iterator's internal workseet index. Returns a copy of the iterator as it was before being incremented. More... | |
const_worksheet_iterator & | operator-- () |
Pre-decrement the iterator's internal workseet index. Returns a refernce to the same iterator. More... | |
An iterator which is used to iterate over the worksheets in a const workbook.
using xlnt::const_worksheet_iterator::iterator_category = std::bidirectional_iterator_tag |
iterator tags required for use with standard algorithms and adapters
|
default |
Default Constructs a worksheet iterator
xlnt::const_worksheet_iterator::const_worksheet_iterator | ( | const workbook & | wb, |
std::size_t | index | ||
) |
Constructs a worksheet iterator from a workbook and sheet index.
|
default |
Copy constructs a worksheet iterator from another iterator.
|
default |
Move constructs a worksheet iterator from a temporary iterator.
|
default |
Default destructor
bool xlnt::const_worksheet_iterator::operator!= | ( | const const_worksheet_iterator & | comparand | ) | const |
Returns true if this iterator doesn't point to the same worksheet as comparand.
const reference xlnt::const_worksheet_iterator::operator* | ( | ) | const |
Dereferences the iterator to return the worksheet it is pointing to. If the iterator points to one-past-the-end of the workbook, an invalid_parameter exception will be thrown.
const_worksheet_iterator xlnt::const_worksheet_iterator::operator++ | ( | int | ) |
Post-increment the iterator's internal workseet index. Returns a copy of the iterator as it was before being incremented.
const_worksheet_iterator& xlnt::const_worksheet_iterator::operator++ | ( | ) |
Pre-increment the iterator's internal workseet index. Returns a refernce to the same iterator.
const_worksheet_iterator xlnt::const_worksheet_iterator::operator-- | ( | int | ) |
Post-decrement the iterator's internal workseet index. Returns a copy of the iterator as it was before being incremented.
const_worksheet_iterator& xlnt::const_worksheet_iterator::operator-- | ( | ) |
Pre-decrement the iterator's internal workseet index. Returns a refernce to the same iterator.
|
default |
Copy assigns the iterator so that it points to the same worksheet in the same workbook.
|
default |
Move assigns the iterator from a temporary iterator
bool xlnt::const_worksheet_iterator::operator== | ( | const const_worksheet_iterator & | comparand | ) | const |
Returns true if this iterator points to the same worksheet as comparand.