|
Jive reference manual
|
A class for creating a contiguous slice that extends to the end of an array-like object. More...
#include <jem/base/Slice.h>

Public Member Functions | |
| SliceFrom (int first) | |
Creates a SliceFrom with a given begin index. More... | |
Public Member Functions inherited from jem::Slice | |
| Slice () | |
| Creates an empty Slice. More... | |
| Slice (int first, int last, int stride=1) | |
Constructs a Slice with a given begin index, end index and stride. More... | |
| int | first () const |
| Returns the begin index. More... | |
| int | last () const |
| Returns the end index. More... | |
| int | last (int ubound) const |
| Returns a clipped end index. More... | |
| int | stride () const |
| Returns the stride. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from jem::Slice | |
| static const int | MAX_INDEX |
| The largest representable integer. More... | |
Related Functions inherited from jem::Slice | |
| SliceFromTo | slice (int first, int last) |
Constructs a SliceFrom object with a given begin index and end index. More... | |
| Slice | slice (int first, int last, int stride) |
Constructs a Slice object with a given begin index, end index and stride. More... | |
| SliceTo | slice (Begin, int last) |
Constructs a SliceTo object with a given end index. More... | |
| Slice | slice (Begin, int last, int stride) |
Constructs a Slice object with a given end index and stride. More... | |
| SliceFrom | slice (int first, End) |
Constructs a SliceFrom object with a given begin index. More... | |
| Slice | slice (int first, End, int stride) |
Constructs a Slice object with a given begin index and stride. More... | |
| const SliceAll & | slice (Begin, End) |
Returns a SliceAll object. More... | |
| Slice | slice (Begin, End, int stride) |
Constructs a Slice object with a given stride. More... | |
| const SliceAll & | slice (const SliceAll &all) |
Returns a SliceAll object. More... | |
| Slice | slice (const SliceAll &all, int stride) |
Constructs a Slice object with a given stride. More... | |
A SliceFrom is basically a Slice with an end index equal to Slice::MAX_INDEX and a stride equal to one. A SliceFrom is normally created by calling one of the global function slice().
slice(). | jem::SliceFrom::SliceFrom | ( | int | first | ) |
Creates a SliceFrom with a given begin index.
| first | - the begin index. |
first >= 0 this->first() == first &&
this->last() == Slice::MAX_INDEX &&
this->stride() == 1