STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
slice Class Reference
Inheritance diagram for slice:
slice_array< _Ty >

Public Member Functions

 slice ()
 
 slice (size_t _Off, size_t _Count, size_t _Inc)
 
size_t start () const
 
size_t size () const
 
size_t stride () const
 

Protected Attributes

size_t _Start
 
size_t _Len
 
size_t _Stride
 

Constructor & Destructor Documentation

slice::slice ( )
inline
1020  : _Start(0), _Len(0), _Stride(0)
1021  { // construct with all zeros
1022  }
size_t _Start
Definition: valarray:1045
size_t _Len
Definition: valarray:1046
size_t _Stride
Definition: valarray:1047
slice::slice ( size_t  _Off,
size_t  _Count,
size_t  _Inc 
)
inline
1025  : _Start(_Off), _Len(_Count), _Stride(_Inc)
1026  { // construct slice from starting offset, length, and stride
1027  }
unsigned int _Count
Definition: xcomplex:668
size_t _Start
Definition: valarray:1045
size_t _Len
Definition: valarray:1046
size_t _Stride
Definition: valarray:1047

Member Function Documentation

size_t slice::size ( ) const
inline
1035  { // return number of elements specified by slice
1036  return (_Len);
1037  }
size_t _Len
Definition: valarray:1046
size_t slice::start ( ) const
inline
1030  { // return starting offset of slice
1031  return (_Start);
1032  }
size_t _Start
Definition: valarray:1045
size_t slice::stride ( ) const
inline
1040  { // return distance between elements specified by slice
1041  return (_Stride);
1042  }
size_t _Stride
Definition: valarray:1047

Member Data Documentation

size_t slice::_Len
protected
size_t slice::_Start
protected
size_t slice::_Stride
protected

The documentation for this class was generated from the following file: