Class Slice

Class Documentation

class icrar::Slice

Represents a forwards linear sequence of indexes for some arbitrary collection.

Public Functions

Slice() = default
Slice(int interval)
Slice(int start, int end)
Slice(int start, int interval, int end)
int32_t GetStart() const

Gets the starting index of an arbitrary collection slice. -1 represents the end of the collection.

int32_t GetInterval() const

Gets the interval betweeen indices of an arbitrary collection slice. -1 represents the end of the collection.

int32_t GetEnd() const

Gets the end index of an arbitrary collection slice. -1 represents the end of the collection.

Range Evaluate(int collectionSize) const