PTPageSet
@interface PTPageSet : NSObject
PageSet is a container of page numbers ordered following a linear sequence. The page numbers are integers and must be greater than zero. Duplicates are allowed.
(NOTE: This is not a mathematical set)
-
Default constructor. Constructs ‘PageSet’ with no pages
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithOne_page: (int)one_page;
Swift
init!(one_page: Int32)
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithRange_start: (int)range_start range_end: (int)range_end filter: (PTPageSetFilter)filter;
Swift
init!(range_start: Int32, range_end: Int32, filter: PTPageSetFilter)
-
Add a value to the sequence.
Declaration
Objective-C
- (void)AddPage:(int)one_page;
Swift
func addPage(_ one_page: Int32)
Parameters
one_page
The page number being added
-
Add a range of values to the sequence. Reverse ordering is legal.
Declaration
Objective-C
- (void)AddRange:(int)range_start range_end:(int)range_end filter:(PTPageSetFilter)filter;
Swift
func addRange(_ range_start: Int32, range_end: Int32, filter: PTPageSetFilter)
Parameters
range_start
The starting value in the range
range_end
The ending value in the range
filter
-e_all: Default, includes all pages in the range -e_odd: Includes odd numbers in the range (discards even numbers) -e_even: Includes even numbers in the range (discards odd numbers)