ReactOS 0.4.16-dev-320-g3bd9ddc
gslice Class Reference

#include <_valarray.h>

Collaboration diagram for gslice:

Public Member Functions

 gslice ()
 
 gslice (size_t __start, const _Valarray_size_t &__lengths, const _Valarray_size_t &__strides)
 
size_t start () const
 
_Valarray_size_t size () const
 
_Valarray_size_t stride () const
 
bool _M_empty () const
 
size_t _M_size () const
 

Private Attributes

size_t _M_start
 
_Valarray_size_t _M_lengths
 
_Valarray_size_t _M_strides
 

Friends

struct _Gslice_Iter_tmpl< size_t >
 

Detailed Description

Definition at line 1239 of file _valarray.h.

Constructor & Destructor Documentation

◆ gslice() [1/2]

gslice::gslice ( )
inline

Definition at line 1242 of file _valarray.h.

1242: _M_start(0), _M_lengths(), _M_strides() {}
_Valarray_size_t _M_strides
Definition: _valarray.h:1273
size_t _M_start
Definition: _valarray.h:1271
_Valarray_size_t _M_lengths
Definition: _valarray.h:1272

◆ gslice() [2/2]

gslice::gslice ( size_t  __start,
const _Valarray_size_t __lengths,
const _Valarray_size_t __strides 
)
inline

Definition at line 1243 of file _valarray.h.

1245 : _M_start(__start), _M_lengths(__lengths), _M_strides(__strides)
1246 {}

Member Function Documentation

◆ _M_empty()

◆ _M_size()

size_t gslice::_M_size ( ) const
inline

Definition at line 1258 of file _valarray.h.

1258 {
1259 return !this->_M_empty()
1262 _M_lengths[0],
1264 : 0;
1265 }
_STLP_BEGIN_NAMESPACE _STLP_INLINE_LOOP _Tp accumulate(_InputIterator __first, _InputIterator __last, _Tp _Init)
Definition: _numeric.h:42
bool _M_empty() const
Definition: _valarray.h:1254
_Tp * _M_first
Definition: _valarray.h:65
size_t _M_size
Definition: _valarray.h:66

Referenced by valarray< _Tp >::operator[]().

◆ size()

_Valarray_size_t gslice::size ( ) const
inline

Definition at line 1250 of file _valarray.h.

1250{ return _M_lengths; }

◆ start()

size_t gslice::start ( ) const
inline

Definition at line 1249 of file _valarray.h.

1249{ return _M_start; }

◆ stride()

_Valarray_size_t gslice::stride ( ) const
inline

Definition at line 1251 of file _valarray.h.

1251{ return _M_strides; }

Friends And Related Function Documentation

◆ _Gslice_Iter_tmpl< size_t >

friend struct _Gslice_Iter_tmpl< size_t >
friend

Definition at line 1214 of file _valarray.h.

Member Data Documentation

◆ _M_lengths

_Valarray_size_t gslice::_M_lengths
private

Definition at line 1272 of file _valarray.h.

Referenced by _Gslice_Iter_tmpl< _Size >::_M_done(), _M_empty(), _M_size(), and size().

◆ _M_start

size_t gslice::_M_start
private

Definition at line 1271 of file _valarray.h.

Referenced by start().

◆ _M_strides

_Valarray_size_t gslice::_M_strides
private

Definition at line 1273 of file _valarray.h.

Referenced by stride().


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