Skip to content

Struct star::Slice

ClassList > star > Slice

Describes a slice along one dimension (Python-style slicing) Plain struct - no methods except helpers, just data. More...

  • #include <stards.h>

Public Attributes

Type Name
size_t start
size_t step = 1
size_t stop

Public Functions

Type Name
size_t length () const

Detailed Description

Usage: Slice // start=100, stop=200, step=1 (default) Slice // start=100, stop=200, step=2 (every other)

Public Attributes Documentation

variable start

size_t star::Slice::start;

variable step

size_t star::Slice::step;

variable stop

size_t star::Slice::stop;

Public Functions Documentation

function length

inline size_t star::Slice::length () const


The documentation for this class was generated from the following file StarDS/include/stards.h