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
gslice_array< _Ty > Class Template Reference
Inheritance diagram for gslice_array< _Ty >:
gslice

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
 
 gslice_array ()=delete
 
 gslice_array (const gslice_array &)
 
gslice_arrayoperator= (const gslice_array &)
 
- Public Member Functions inherited from gslice
 gslice ()
 
 gslice (size_t _Off, const _Sizarray &_Lenarr, const _Sizarray &_Incarr)
 
size_t start () const
 
_Sizarray size () const
 
_Sizarray stride () const
 
size_t _Nslice () const
 
size_t _Off (_Sizarray &_Indexarr) const
 
size_t _Totlen () const
 

Private Member Functions

 gslice_array (const gslice &_Gslice, _Ty *_Ptr)
 

Private Attributes

_Ty * _Myptr
 

Friends

class valarray< _Ty >
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class _Ty >
gslice_array< _Ty >::gslice_array ( )
delete
template<class _Ty >
gslice_array< _Ty >::gslice_array ( const gslice_array< _Ty > &  )
template<class _Ty >
gslice_array< _Ty >::gslice_array ( const gslice _Gslice,
_Ty *  _Ptr 
)
inlineprivate
1308  : gslice(_Gslice), _Myptr(_Ptr)
1309  { // construct from gslice and pointer to valarray contents
1310  }
gslice()
Definition: valarray:1155
_Ty * _Myptr
Definition: valarray:1312

Member Function Documentation

template<class _Ty >
_Ty& gslice_array< _Ty >::_Data ( size_t  _Idx) const
inline
1294  { // return reference to underlying array element
1295  return (_Myptr[_Idx]);
1296  }
_Ty * _Myptr
Definition: valarray:1312
template<class _Ty >
void gslice_array< _Ty >::operator%= ( const valarray< _Ty > &  _Right) const
inline
1254  { // remainder generalized slice by valarray
1255  _GSLOP(%= _Right[_Idx]);
1256  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator&= ( const valarray< _Ty > &  _Right) const
inline
1274  { // AND valarray into generalized slice
1275  _GSLOP(&= _Right[_Idx]);
1276  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator*= ( const valarray< _Ty > &  _Right) const
inline
1244  { // multiply generalized slice by valarray
1245  _GSLOP(*= _Right[_Idx]);
1246  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator+= ( const valarray< _Ty > &  _Right) const
inline
1259  { // add valarray to generalized slice
1260  _GSLOP(+= _Right[_Idx]);
1261  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator-= ( const valarray< _Ty > &  _Right) const
inline
1264  { // subtract valarray from generalized slice
1265  _GSLOP(-= _Right[_Idx]);
1266  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator/= ( const valarray< _Ty > &  _Right) const
inline
1249  { // divide generalized slice by valarray
1250  _GSLOP(/= _Right[_Idx]);
1251  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator<<= ( const valarray< _Ty > &  _Right) const
inline
1284  { // left shift generalized slice by valarray
1285  _GSLOP(<<= _Right[_Idx]);
1286  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator= ( const valarray< _Ty > &  _Right) const
inline
1234  { // assign a valarray to a generalized slice
1235  _GSLOP(= _Right[_Idx]);
1236  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator= ( const _Ty &  _Right) const
inline
1239  { // assign a scalar to elements of a generalized slice
1240  _GSLOP(= _Right);
1241  }
#define _GSLOP(RHS)
Definition: valarray:1219
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty >
gslice_array& gslice_array< _Ty >::operator= ( const gslice_array< _Ty > &  )
template<class _Ty >
void gslice_array< _Ty >::operator>>= ( const valarray< _Ty > &  _Right) const
inline
1289  { // right shift generalized slice by valarray
1290  _GSLOP(>>= _Right[_Idx]);
1291  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator^= ( const valarray< _Ty > &  _Right) const
inline
1269  { // XOR valarray into generalized slice
1270  _GSLOP(^= _Right[_Idx]);
1271  }
#define _GSLOP(RHS)
Definition: valarray:1219
template<class _Ty >
void gslice_array< _Ty >::operator|= ( const valarray< _Ty > &  _Right) const
inline
1279  { // OR valarray into generalized slice
1280  _GSLOP(|= _Right[_Idx]);
1281  }
#define _GSLOP(RHS)
Definition: valarray:1219

Friends And Related Function Documentation

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

Member Data Documentation

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

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