floo::BMXResultPage#
分页结果 More...
#include <bmx_result_page.h>
Inherits from BMXBaseObject
Public Functions#
| Name | |
|---|---|
| BMXResultPage() 构造函数 | |
| BMXResultPage(const std::vector< T > & result, int64_t offset) 构造函数 | |
| BMXResultPage(const std::vector< T > & result, std::string cursor) 构造函数 | |
| BMXResultPage(const BMXResultPage & from) 构造函数 | |
| BMXResultPage(BMXResultPage && from) 构造函数 | |
| BMXResultPage & | operator=(const BMXResultPage & from) 赋值函数 |
| virtual | ~BMXResultPage() 析构函数 |
| size_t | count() const vector对象数组大小 |
| int64_t | offset() const 偏移量 |
| const std::string & | cursor() const cursor偏移量 |
| const std::vector< T > & | result() const vector对象数组 |
Detailed Description#
template <typename T >
class floo::BMXResultPage;
分页结果
Public Functions Documentation#
function BMXResultPage#
inline BMXResultPage()
构造函数
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="BMXResultPage" %}{% endlanying_code_snippet %}
function BMXResultPage#
inline BMXResultPage(
const std::vector< T > & result,
int64_t offset
)
构造函数
Parameters:
- result 列表数据
- offset 偏移量
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="BMXResultPage" %}{% endlanying_code_snippet %}
function BMXResultPage#
inline BMXResultPage(
const std::vector< T > & result,
std::string cursor
)
构造函数
Parameters:
- result 列表结果
- cursor cursor偏移量
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="BMXResultPage" %}{% endlanying_code_snippet %}
function BMXResultPage#
inline BMXResultPage(
const BMXResultPage & from
)
构造函数
Parameters:
- from BMXResultPage对象
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="BMXResultPage" %}{% endlanying_code_snippet %}
function BMXResultPage#
inline BMXResultPage(
BMXResultPage && from
)
构造函数
Parameters:
- from BMXResultPage对象
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="BMXResultPage" %}{% endlanying_code_snippet %}
function operator=#
inline BMXResultPage & operator=(
const BMXResultPage & from
)
赋值函数
Parameters:
- from BMXResultPage对象
Return: BMXResultPage
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="operator=" %}{% endlanying_code_snippet %}
function ~BMXResultPage#
inline virtual ~BMXResultPage()
析构函数
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="~BMXResultPage" %}{% endlanying_code_snippet %}
function count#
inline size_t count() const
vector对象数组大小
Return: size_t
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="count" %}{% endlanying_code_snippet %}
function offset#
inline int64_t offset() const
偏移量
Return: int64_t
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="offset" %}{% endlanying_code_snippet %}
function cursor#
inline const std::string & cursor() const
cursor偏移量
Return: std::string
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="cursor" %}{% endlanying_code_snippet %}
function result#
inline const std::vector< T > & result() const
vector对象数组
Return: std::vector<T>
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXResultPage",function="result" %}{% endlanying_code_snippet %}
Updated on 2022-01-26 at 17:20:40 +0800