#include <paging.h>
Public Member Functions | |
Paging (uint32_t cond_num=10, uint32_t cond_page=0) | |
~Paging () | |
void | set_total_num (uint32_t num_results) |
void | calc (void) |
uint32_t | get_base (void) |
uint32_t | get_base (void) const |
uint32_t | get_num (void) |
uint32_t | get_num (void) const |
uint32_t | get_page (void) |
uint32_t | get_page (void) const |
uint32_t | get_total_num (void) |
uint32_t | get_total_num (void) const |
Lux::Paging::Paging | ( | uint32_t | cond_num = 10 , |
|
uint32_t | cond_page = 0 | |||
) |
constructor
cond_num | the number of results returned | |
cond_page | page offset |
Lux::Paging::~Paging | ( | ) | [inline] |
destructor
void Lux::Paging::calc | ( | void | ) |
calculate the offset of the returned results (base_) and the number of results returned (num_)
uint32_t Lux::Paging::get_base | ( | void | ) | const |
get page offset
uint32_t Lux::Paging::get_base | ( | void | ) |
get page offset
uint32_t Lux::Paging::get_num | ( | void | ) | const |
get the number of results returned
uint32_t Lux::Paging::get_num | ( | void | ) |
get the number of results returned
uint32_t Lux::Paging::get_page | ( | void | ) | const |
get page offset
uint32_t Lux::Paging::get_page | ( | void | ) |
get page offset
uint32_t Lux::Paging::get_total_num | ( | void | ) | const |
get the total number of results
uint32_t Lux::Paging::get_total_num | ( | void | ) |
get the total number of results
void Lux::Paging::set_total_num | ( | uint32_t | num_results | ) |
set the total number of results returned
num_results | the total number of results returned |