![]() |
C++ Samples
Demonstrates how to create a C++ application using the VideoXpert SDK
|
Paging class helps to divide a collection into pages of given number of lines. More...
#include <Paging.h>
Public Member Functions | |
Paging (int count, int numberInPage) | |
Create an instance of Paging class. More... | |
~Paging () | |
int | GetCurrentPage () const |
Current page number. It gives 1 for first page. More... | |
int | GetEndIndex () const |
Zero based index of last item in the current page. More... | |
int | GetPageCount () const |
Total number of pages. More... | |
int | GetStartIndex () const |
Zero based index of first item in the current page. More... | |
void | NextPage () |
Move to the next page. More... | |
void | PreviousPage () |
Move to the previous page. More... | |
Private Attributes | |
int | _count |
int | _currentPage |
int | _numberInPage |
int | _pageCount |
Paging class helps to divide a collection into pages of given number of lines.
Paging::Paging | ( | int | count, |
int | numberInPage | ||
) |
Create an instance of Paging class.
count | Total number of items in the collection. |
numberInPage | Required number of items per page. |
Definition at line 7 of file Paging.cpp.
int Paging::GetCurrentPage | ( | ) | const |
int Paging::GetEndIndex | ( | ) | const |
|
inline |
int Paging::GetStartIndex | ( | ) | const |
void Paging::NextPage | ( | ) |
void Paging::PreviousPage | ( | ) |