ivl 679
ivl::slice Class Reference

A slice. More...

#include <slice.hpp>

List of all members.

Public Member Functions

Constructors
 slice ()
 Default constructor.
 slice (size_t st, size_t len, ptrdiff_t str)
 construct slice from starting offset, length, and stride
 slice (range< size_t > ra)
 construct slice from size_range

Public Attributes

size_t length
 the number of elements
size_t start
 the starting offset
ptrdiff_t stride
 the distance between elements

Detailed Description

A slice.

This class has the same members with the class range (with different names), and it is used to define a slice in an array. It's main purpose of existence if to be inherited by slice_array which associates slices with arrays.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations