Standard C++ Library Reference ISO/IEC (VERSION3)
gslice::gslice
gslice();
gslice(size_t off,
const valarray<size_t> lenarr,
const valarray<size_t> incarr);
The default constructor stores zero for the starting index, and zero-length vectors for the length and stride
vectors. The second constructor stores off for the starting index, lenarr for the length vector, and
incarr for the stride vector.
gslice::size
const valarray<size_t> size() const;
The member function returns the stored length vector.
gslice::start
size_t start() const;
The member function returns the stored starting index.
gslice::stride
const valarray<size_t> stride() const;
The member function returns the stored stride vector.
gslice_array
template<class Ty>
class gslice_array {
public:
typedef Ty value_type;
void operator=(const valarray<Ty> right) const;
void operator=(const Ty& right) const;
void operator*=(const valarray<Ty> right) const;
void operator/=(const valarray<Ty> right) const;
void operator%=(const valarray<Ty> right) const;
void operator+=(const valarray<Ty> right) const;
void operator-=(const valarray<Ty> right) const;
void operator^=(const valarray<Ty> right) const;
void operator&=(const valarray<Ty> right) const;
void operator|=(const valarray<Ty> right) const;
void operator<<=(const valarray<Ty> right) const;
void operator>>=(const valarray<Ty> right) const;
private:
void gslice_array(); // not defined
void gslice_array(
const gslice_array&); // not defined