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

Public Types

typedef _Ty value_type
 

Public Member Functions

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
 
_Ty & _Data (size_t _Idx) const
 
 slice_array ()=delete
 
 slice_array (const slice_array &)
 
slice_arrayoperator= (const slice_array &)
 
- Public Member Functions inherited from slice
 slice ()
 
 slice (size_t _Off, size_t _Count, size_t _Inc)
 
size_t start () const
 
size_t size () const
 
size_t stride () const
 

Private Member Functions

 slice_array (const slice &_Slice, _Ty *_Pdata)
 

Private Attributes

_Ty * _Myptr
 

Friends

class valarray< _Ty >
 

Additional Inherited Members

- Protected Attributes inherited from slice
size_t _Start
 
size_t _Len
 
size_t _Stride
 

Member Typedef Documentation

template<class _Ty >
typedef _Ty slice_array< _Ty >::value_type

Constructor & Destructor Documentation

template<class _Ty >
slice_array< _Ty >::slice_array ( )
delete
template<class _Ty >
slice_array< _Ty >::slice_array ( const slice_array< _Ty > &  )
template<class _Ty >
slice_array< _Ty >::slice_array ( const slice _Slice,
_Ty *  _Pdata 
)
inlineprivate
1139  : slice(_Slice), _Myptr(_Pdata)
1140  { // construct from slice and pointer to valarray contents
1141  }
_Ty * _Myptr
Definition: valarray:1143
slice()
Definition: valarray:1019

Member Function Documentation

template<class _Ty >
_Ty& slice_array< _Ty >::_Data ( size_t  _Idx) const
inline
1125  { // return reference to underlying array element
1126  return (_Myptr[_Idx]);
1127  }
_Ty * _Myptr
Definition: valarray:1143
template<class _Ty >
void slice_array< _Ty >::operator%= ( const valarray< _Ty > &  _Right) const
inline
1085  { // remainder slice by valarray
1086  _SLOP(%= _Right[_Idx]);
1087  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator&= ( const valarray< _Ty > &  _Right) const
inline
1105  { // AND valarray into slice
1106  _SLOP(&= _Right[_Idx]);
1107  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator*= ( const valarray< _Ty > &  _Right) const
inline
1075  { // multiply slice by valarray
1076  _SLOP(*= _Right[_Idx]);
1077  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator+= ( const valarray< _Ty > &  _Right) const
inline
1090  { // add slice to valarray
1091  _SLOP(+= _Right[_Idx]);
1092  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator-= ( const valarray< _Ty > &  _Right) const
inline
1095  { // subtract valarray from slice
1096  _SLOP(-= _Right[_Idx]);
1097  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator/= ( const valarray< _Ty > &  _Right) const
inline
1080  { // divide slice by valarray
1081  _SLOP(/= _Right[_Idx]);
1082  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator<<= ( const valarray< _Ty > &  _Right) const
inline
1115  { // left shift slice by valarray
1116  _SLOP(<<= _Right[_Idx]);
1117  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator= ( const valarray< _Ty > &  _Right) const
inline
1065  { // assign a valarray to a slice
1066  _SLOP(= _Right[_Idx]);
1067  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator= ( const _Ty &  _Right) const
inline
1070  { // assign a scalar to elements of a slice
1071  _SLOP(= _Right);
1072  }
#define _SLOP(RHS)
Definition: valarray:1051
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty >
slice_array& slice_array< _Ty >::operator= ( const slice_array< _Ty > &  )
template<class _Ty >
void slice_array< _Ty >::operator>>= ( const valarray< _Ty > &  _Right) const
inline
1120  { // right shift slice by valarray
1121  _SLOP(>>= _Right[_Idx]);
1122  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator^= ( const valarray< _Ty > &  _Right) const
inline
1100  { // XOR valarray into slice
1101  _SLOP(^= _Right[_Idx]);
1102  }
#define _SLOP(RHS)
Definition: valarray:1051
template<class _Ty >
void slice_array< _Ty >::operator|= ( const valarray< _Ty > &  _Right) const
inline
1110  { // OR valarray into slice
1111  _SLOP(|= _Right[_Idx]);
1112  }
#define _SLOP(RHS)
Definition: valarray:1051

Friends And Related Function Documentation

template<class _Ty >
friend class valarray< _Ty >
friend

Member Data Documentation

template<class _Ty >
_Ty* slice_array< _Ty >::_Myptr
private

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