示例#1
0
文件: worksheet.cpp 项目: lyntel/xlnt
worksheet::const_iterator worksheet::cbegin() const
{
    auto dimensions = calculate_dimension();
    cell_reference top_right(dimensions.get_bottom_right().get_column_index(), dimensions.get_top_left().get_row());
    range_reference row_range(dimensions.get_top_left(), top_right);
    
    return const_iterator(*this, row_range, major_order::row);
}
示例#2
0
文件: worksheet.cpp 项目: lyntel/xlnt
worksheet::const_iterator worksheet::cend() const
{
    auto dimensions = calculate_dimension();
    auto past_end_row_index = dimensions.get_bottom_right().get_row() + 1;
    cell_reference bottom_left(dimensions.get_top_left().get_column_index(), past_end_row_index);
    cell_reference bottom_right(dimensions.get_bottom_right().get_column_index(), past_end_row_index);
    
    return const_iterator(*this, range_reference(bottom_left, bottom_right), major_order::row);
}
示例#3
0
文件: worksheet.cpp 项目: lyntel/xlnt
range worksheet::iter_cells(bool skip_null)
{
    return range(*this, calculate_dimension(), major_order::row, skip_null);
}
示例#4
0
文件: worksheet.cpp 项目: lyntel/xlnt
xlnt::range worksheet::columns() const
{
    return range(*this, calculate_dimension(), major_order::column);
}
示例#5
0
文件: worksheet.cpp 项目: lyntel/xlnt
xlnt::range worksheet::rows() const
{
    return get_range(calculate_dimension());
}
示例#6
0
const xlnt::range worksheet::columns(bool skip_null) const
{
    return xlnt::range(*this, calculate_dimension(), major_order::column, skip_null);
}