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
1025  : _Start(0), _Len(0), _Stride(0)
1026  { // construct with all zeros
1027  }
size_t _Start
Definition: valarray:1050
size_t _Len
Definition: valarray:1051
size_t _Stride
Definition: valarray:1052
slice::slice ( size_t  _Off,
size_t  _Count,
size_t  _Inc 
)
inline
1030  : _Start(_Off), _Len(_Count), _Stride(_Inc)
1031  { // construct slice from starting offset, length, and stride
1032  }
size_t _Start
Definition: valarray:1050
size_t _Len
Definition: valarray:1051
_Diff _Count
Definition: algorithm:1941
size_t _Stride
Definition: valarray:1052

Member Function Documentation

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

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: