此类表示索引范围。在这里,范围由一个或多个段组成,每个段由 单个索引或一组连续索引组成。
对于某些特殊情况,例如在 pdf::HeaderFooter 中使用的,此范围中指定的索引值直接表示页码而不是页面索引。
- 参见
- pdf::HeaderFooter
◆ Filter
范围过滤器枚举。
此枚举的值应单独使用。
| 枚举值 |
|---|
| e_All | 范围内的所有索引都将被使用。
|
| e_Even | 只使用范围内的偶数(丢弃奇数)。
|
| e_Odd | 只使用范围内的奇数(丢弃偶数)。
|
◆ Range() [1/3]
| foxit::common::Range::Range |
( |
int |
index | ) |
|
|
explicit |
◆ Range() [2/3]
| foxit::common::Range::Range |
( |
int |
start_index, |
|
|
int |
end_index, |
|
|
Filter |
filter = e_All |
|
) |
| |
|
explicit |
◆ Range() [3/3]
| foxit::common::Range::Range |
( |
const Range & |
other | ) |
|
◆ AddSegment()
| void foxit::common::Range::AddSegment |
( |
int |
start_index, |
|
|
int |
end_index, |
|
|
Filter |
filter = e_All |
|
) |
| |
添加新的范围段。(反向排序是合法的。)
- 参数
-
- 返回
- 无。
◆ AddSingle()
| void foxit::common::Range::AddSingle |
( |
int |
index | ) |
|
◆ GetSegmentCount()
| int foxit::common::Range::GetSegmentCount |
( |
| ) |
const |
◆ GetSegmentEnd()
| int foxit::common::Range::GetSegmentEnd |
( |
int |
segment_index | ) |
const |
获取指定范围段的结束索引。
- 参数
-
- 返回
- 指定范围段的结束索引。
◆ GetSegmentStart()
| int foxit::common::Range::GetSegmentStart |
( |
int |
segment_index | ) |
const |
获取指定范围段的起始索引。
- 参数
-
- 返回
- 指定范围段的起始索引。
◆ IsEmpty()
| bool foxit::common::Range::IsEmpty |
( |
| ) |
const |
检查当前对象是否为空。
当当前对象为空时,意味着当前对象无用。
- 返回
- true 表示当前对象为空,false 表示不为空。
◆ operator !=()
| bool foxit::common::Range::operator != |
( |
const Range & |
other | ) |
const |
不相等操作符。
- 参数
-
| [in] | other | 另一个范围对象。此函数将检查当前对象是否不等于此对象。 |
- 返回
- true 表示不相等,false 表示相等。
◆ operator=()
| Range& foxit::common::Range::operator= |
( |
const Range & |
other | ) |
|
赋值操作符。
- 参数
-
| [in] | other | 另一个范围对象,其值将被赋给当前对象。 |
- 返回
- 对当前对象本身的引用。
◆ operator==()
| bool foxit::common::Range::operator== |
( |
const Range & |
other | ) |
const |
相等操作符。
- 参数
-
| [in] | other | 另一个范围对象。此函数将检查当前对象是否等于此对象。 |
- 返回
- true 表示相等,false 表示不相等。
◆ RemoveAll()
| void foxit::common::Range::RemoveAll |
( |
| ) |
|