ReactOS  0.4.14-dev-317-g96040ec
gslice_array< _Tp > Class Template Reference

#include <_valarray.h>

Collaboration diagram for gslice_array< _Tp >:

Public Types

typedef _Tp value_type
 

Public Member Functions

void operator= (const valarray< value_type > &__x) const
 
void operator *= (const valarray< value_type > &__x) const
 
void operator/= (const valarray< value_type > &__x) const
 
void operator%= (const valarray< value_type > &__x) const
 
void operator+= (const valarray< value_type > &__x) const
 
void operator-= (const valarray< value_type > &__x) const
 
void operator^= (const valarray< value_type > &__x) const
 
void operator&= (const valarray< value_type > &__x) const
 
void operator|= (const valarray< value_type > &__x) const
 
void operator<<= (const valarray< value_type > &__x) const
 
void operator>>= (const valarray< value_type > &__x) const
 
void operator= (const value_type &__c)
 
 gslice_array (const gslice_array &__x)
 
 ~gslice_array ()
 

Private Member Functions

 gslice_array (const gslice &__gslice, valarray< _Tp > &__array)
 
 gslice_array ()
 
void operator= (const gslice_array< _Tp > &)
 

Private Attributes

gslice _M_gslice
 
valarray< value_type > & _M_array
 

Friends

class valarray< _Tp >
 

Detailed Description

template<class _Tp>
class gslice_array< _Tp >

Definition at line 52 of file _valarray.h.

Member Typedef Documentation

◆ value_type

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

Definition at line 1307 of file _valarray.h.

Constructor & Destructor Documentation

◆ gslice_array() [1/3]

template<class _Tp>
gslice_array< _Tp >::gslice_array ( const gslice_array< _Tp > &  __x)
inline

Definition at line 1394 of file _valarray.h.

1395  : _M_gslice(__x._M_gslice), _M_array(__x._M_array)
1396  {}
valarray< value_type > & _M_array
Definition: _valarray.h:1406
gslice _M_gslice
Definition: _valarray.h:1405

◆ ~gslice_array()

template<class _Tp>
gslice_array< _Tp >::~gslice_array ( )
inline

Definition at line 1398 of file _valarray.h.

1398 {}

◆ gslice_array() [2/3]

template<class _Tp>
gslice_array< _Tp >::gslice_array ( const gslice __gslice,
valarray< _Tp > &  __array 
)
inlineprivate

Definition at line 1401 of file _valarray.h.

1402  : _M_gslice(__gslice), _M_array(__array)
1403  {}
valarray< value_type > & _M_array
Definition: _valarray.h:1406
gslice _M_gslice
Definition: _valarray.h:1405

◆ gslice_array() [3/3]

template<class _Tp>
gslice_array< _Tp >::gslice_array ( )
private

Member Function Documentation

◆ operator *=()

template<class _Tp>
void gslice_array< _Tp >::operator *= ( const valarray< value_type > &  __x) const
inline

Definition at line 1316 of file _valarray.h.

1316  {
1317  if (!_M_gslice._M_empty()) {
1318  _Gslice_Iter __i(_M_gslice);
1319  do _M_array[__i._M_1d_idx] *= __x[__i._M_step]; while(__i._M_incr());
1320  }
1321  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator%=()

template<class _Tp>
void gslice_array< _Tp >::operator%= ( const valarray< value_type > &  __x) const
inline

Definition at line 1330 of file _valarray.h.

1330  {
1331  if (!_M_gslice._M_empty()) {
1332  _Gslice_Iter __i(_M_gslice);
1333  do _M_array[__i._M_1d_idx] %= __x[__i._M_step]; while(__i._M_incr());
1334  }
1335  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator&=()

template<class _Tp>
void gslice_array< _Tp >::operator&= ( const valarray< value_type > &  __x) const
inline

Definition at line 1358 of file _valarray.h.

1358  {
1359  if (!_M_gslice._M_empty()) {
1360  _Gslice_Iter __i(_M_gslice);
1361  do _M_array[__i._M_1d_idx] &= __x[__i._M_step]; while(__i._M_incr());
1362  }
1363  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator+=()

template<class _Tp>
void gslice_array< _Tp >::operator+= ( const valarray< value_type > &  __x) const
inline

Definition at line 1337 of file _valarray.h.

1337  {
1338  if (!_M_gslice._M_empty()) {
1339  _Gslice_Iter __i(_M_gslice);
1340  do _M_array[__i._M_1d_idx] += __x[__i._M_step]; while(__i._M_incr());
1341  }
1342  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator-=()

template<class _Tp>
void gslice_array< _Tp >::operator-= ( const valarray< value_type > &  __x) const
inline

Definition at line 1344 of file _valarray.h.

1344  {
1345  if (!_M_gslice._M_empty()) {
1346  _Gslice_Iter __i(_M_gslice);
1347  do _M_array[__i._M_1d_idx] -= __x[__i._M_step]; while(__i._M_incr());
1348  }
1349  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator/=()

template<class _Tp>
void gslice_array< _Tp >::operator/= ( const valarray< value_type > &  __x) const
inline

Definition at line 1323 of file _valarray.h.

1323  {
1324  if (!_M_gslice._M_empty()) {
1325  _Gslice_Iter __i(_M_gslice);
1326  do _M_array[__i._M_1d_idx] /= __x[__i._M_step]; while(__i._M_incr());
1327  }
1328  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator<<=()

template<class _Tp>
void gslice_array< _Tp >::operator<<= ( const valarray< value_type > &  __x) const
inline

Definition at line 1372 of file _valarray.h.

1372  {
1373  if (!_M_gslice._M_empty()) {
1374  _Gslice_Iter __i(_M_gslice);
1375  do _M_array[__i._M_1d_idx] <<= __x[__i._M_step]; while(__i._M_incr());
1376  }
1377  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator=() [1/3]

template<class _Tp>
void gslice_array< _Tp >::operator= ( const valarray< value_type > &  __x) const
inline

Definition at line 1309 of file _valarray.h.

1309  {
1310  if (!_M_gslice._M_empty()) {
1311  _Gslice_Iter __i(_M_gslice);
1312  do _M_array[__i._M_1d_idx] = __x[__i._M_step]; while(__i._M_incr());
1313  }
1314  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator=() [2/3]

template<class _Tp>
void gslice_array< _Tp >::operator= ( const value_type __c)
inline

Definition at line 1386 of file _valarray.h.

1386  {
1387  if (!_M_gslice._M_empty()) {
1388  _Gslice_Iter __i(_M_gslice);
1389  do _M_array[__i._M_1d_idx] = __c; while(__i._M_incr());
1390  }
1391  }
#define __c
Definition: schilyio.h:209
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator=() [3/3]

template<class _Tp>
void gslice_array< _Tp >::operator= ( const gslice_array< _Tp > &  )
private

◆ operator>>=()

template<class _Tp>
void gslice_array< _Tp >::operator>>= ( const valarray< value_type > &  __x) const
inline

Definition at line 1379 of file _valarray.h.

1379  {
1380  if (!_M_gslice._M_empty()) {
1381  _Gslice_Iter __i(_M_gslice);
1382  do _M_array[__i._M_1d_idx] >>= __x[__i._M_step]; while(__i._M_incr());
1383  }
1384  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator^=()

template<class _Tp>
void gslice_array< _Tp >::operator^= ( const valarray< value_type > &  __x) const
inline

Definition at line 1351 of file _valarray.h.

1351  {
1352  if (!_M_gslice._M_empty()) {
1353  _Gslice_Iter __i(_M_gslice);
1354  do _M_array[__i._M_1d_idx] ^= __x[__i._M_step]; while(__i._M_incr());
1355  }
1356  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

◆ operator|=()

template<class _Tp>
void gslice_array< _Tp >::operator|= ( const valarray< value_type > &  __x) const
inline

Definition at line 1365 of file _valarray.h.

1365  {
1366  if (!_M_gslice._M_empty()) {
1367  _Gslice_Iter __i(_M_gslice);
1368  do _M_array[__i._M_1d_idx] |= __x[__i._M_step]; while(__i._M_incr());
1369  }
1370  }
valarray< value_type > & _M_array
Definition: _valarray.h:1406
bool _M_empty() const
Definition: _valarray.h:1254
gslice _M_gslice
Definition: _valarray.h:1405

Friends And Related Function Documentation

◆ valarray< _Tp >

template<class _Tp>
friend class valarray< _Tp >
friend

Definition at line 1305 of file _valarray.h.

Member Data Documentation

◆ _M_array

◆ _M_gslice


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