ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
rux::gui::PageWindow Struct Reference

The half-open [first, last) index range a page covers, plus the size of the collection it was taken from. More...

#include <api.hpp>

Public Member Functions

size_t count () const noexcept

Public Attributes

size_t first = 0
size_t last = 0
size_t total = 0

Detailed Description

The half-open [first, last) index range a page covers, plus the size of the collection it was taken from.

A page starting past the end is empty (first == last) rather than an error: a client walking a collection that shrank underneath it should get an honest empty page, not a 404 it has to special-case.

Definition at line 158 of file api.hpp.

Member Function Documentation

◆ count()

size_t rux::gui::PageWindow::count ( ) const
inlinenoexcept

Definition at line 163 of file api.hpp.

References first, and last.

Member Data Documentation

◆ first

size_t rux::gui::PageWindow::first = 0

Definition at line 159 of file api.hpp.

Referenced by count().

◆ last

size_t rux::gui::PageWindow::last = 0

Definition at line 160 of file api.hpp.

Referenced by count().

◆ total

size_t rux::gui::PageWindow::total = 0

Definition at line 161 of file api.hpp.


The documentation for this struct was generated from the following file: