SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Represents an index that can be used for subscripting vectors, matrices, and arrays from a given element to the end. More...
#include <rw/rwslice.h>
Public Member Functions | |
RWToEnd (int begin) | |
RWToEnd (int begin, int stride) | |
Public Member Functions inherited from RWSlice | |
RWSlice (const char *s) | |
RWSlice (int begin, int length) | |
RWSlice (int begin, int length, int stride) | |
Additional Inherited Members | |
Related Symbols inherited from RWSlice | |
const RWSlice & | RWAll |
An RWToEnd object is an index which can be used for subscripting vectors, matrices, and arrays from a given element to the end. By subscripting with RWToEnd objects, you create views of selected elements. These new views are vectors, matrices, or arrays in their own right, rather than simply helper classes. This means that a view created with subscripting can be used as an rvalue, an lvalue, or kept as an object for use later.
The class RWToEnd is derived from RWSlice. It can be used to initialize an RWSlice object as follows:
Program output:
|
inline |
Constructs an object which indexes starting at element begin and ending with the last element.
|
inline |
Constructs an object which indexes starting at element begin and ending with the last element. The parameter stride is the increment between successive selected elements.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |