T & operator[](size_t index)
Returns the contained item at index.
const T & operator[](size_t index) const
Returns the contained item at index.
auto begin() const
The begin iterator of the underlying vector.
std::function< CesiumAsync::Future< CesiumUtility::Result< PagedList< T > > >(Connection &, const std::string &)> PageOperation
Callback used to obtain a page of results from a URL.
CesiumAsync::Future< CesiumUtility::Result< PagedList< T > > > next(CesiumAsync::AsyncSystem &asyncSystem, Connection &connection) const
Returns a future that will return the next page of items.
auto end()
The end iterator of the underlying vector.
CesiumAsync::Future< CesiumUtility::Result< PagedList< T > > > prev(CesiumAsync::AsyncSystem &asyncSystem, Connection &connection) const
Returns a future that will return the previous page of items.
auto begin()
The begin iterator of the underlying vector.
size_t size() const
Returns the number of contained items.
PagedList(rapidjson::Document &doc, std::vector< T > &&items, PageOperation &&operation)
Creates a new PagedList from a set of items, an iTwin API response, and a callback to retrieve more i...
auto end() const
The end iterator of the underlying vector.