Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::valarray Class Template Reference

#include <std_valarray.h>

List of all members.

Public Types

typedef _Tp value_type

Public Methods

 valarray ()
 valarray (size_t)
 valarray (const _Tp &, size_t)
 valarray (const _Tp *__restrict__, size_t)
 valarray (const valarray &)
 valarray (const slice_array< _Tp > &)
 valarray (const gslice_array< _Tp > &)
 valarray (const mask_array< _Tp > &)
 valarray (const indirect_array< _Tp > &)
template<class _Dom>  valarray (const _Expr< _Dom, _Tp > &__e)
 ~valarray ()
valarray<_Tp>& operator= (const valarray< _Tp > &)
valarray<_Tp>& operator= (const _Tp &)
valarray<_Tp>& operator= (const slice_array< _Tp > &)
valarray<_Tp>& operator= (const gslice_array< _Tp > &)
valarray<_Tp>& operator= (const mask_array< _Tp > &)
valarray<_Tp>& operator= (const indirect_array< _Tp > &)
template<class _Dom> valarray<_Tp>& operator= (const _Expr< _Dom, _Tp > &)
_Tp operator[] (size_t) const
_Tp& operator[] (size_t)
_Expr<_SClos<_ValArray,_Tp>,
_Tp> 
operator[] (slice) const
slice_array<_Tp> operator[] (slice)
_Expr<_GClos<_ValArray,_Tp>,
_Tp> 
operator[] (const gslice &) const
gslice_array<_Tp> operator[] (const gslice &)
valarray<_Tp> operator[] (const valarray< bool > &) const
mask_array<_Tp> operator[] (const valarray< bool > &)
_Expr<_IClos<_ValArray, _Tp>,
_Tp> 
operator[] (const valarray< size_t > &) const
indirect_array<_Tp> operator[] (const valarray< size_t > &)
_Expr<_UnClos<_Unary_plus,
_ValArray,_Tp>,_Tp> 
operator+ () const
_Expr<_UnClos<negate,_ValArray,
_Tp>,_Tp> 
operator- () const
_Expr<_UnClos<_Bitwise_not,
_ValArray,_Tp>,_Tp> 
operator~ () const
_Expr<_UnClos<logical_not,
_ValArray,_Tp>,bool> 
operator! () const
valarray<_Tp>& operator *= (const _Tp &)
valarray<_Tp>& operator/= (const _Tp &)
valarray<_Tp>& operator%= (const _Tp &)
valarray<_Tp>& operator+= (const _Tp &)
valarray<_Tp>& operator-= (const _Tp &)
valarray<_Tp>& operator^= (const _Tp &)
valarray<_Tp>& operator &= (const _Tp &)
valarray<_Tp>& operator|= (const _Tp &)
valarray<_Tp>& operator<<= (const _Tp &)
valarray<_Tp>& operator>>= (const _Tp &)
valarray<_Tp>& operator *= (const valarray< _Tp > &)
valarray<_Tp>& operator/= (const valarray< _Tp > &)
valarray<_Tp>& operator%= (const valarray< _Tp > &)
valarray<_Tp>& operator+= (const valarray< _Tp > &)
valarray<_Tp>& operator-= (const valarray< _Tp > &)
valarray<_Tp>& operator^= (const valarray< _Tp > &)
valarray<_Tp>& operator|= (const valarray< _Tp > &)
valarray<_Tp>& operator &= (const valarray< _Tp > &)
valarray<_Tp>& operator<<= (const valarray< _Tp > &)
valarray<_Tp>& operator>>= (const valarray< _Tp > &)
template<class _Dom> valarray<_Tp>& operator *= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator/= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator%= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator+= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator-= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator^= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator|= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator &= (const _Expr< _Dom, _Tp > &)
valarray<_Tp>& operator<<= (const _Expr< _Dom, _Tp > &)
template<class _Dom> valarray<_Tp>& operator>>= (const _Expr< _Dom, _Tp > &)
size_t size () const
_Tp sum () const
_Tp min () const
_Tp max () const
valarray<_Tp> shift (int) const
valarray<_Tp> cshift (int) const
_Expr<_ValFunClos<_ValArray,
_Tp>,_Tp> 
apply (_Tp func(_Tp)) const
_Expr<_RefFunClos<_ValArray,
_Tp>,_Tp> 
apply (_Tp func(const _Tp &)) const
void resize (size_t __size, _Tp __c=_Tp())

Private Attributes

size_t _M_size
_Tp* __restrict__ _M_data

Friends

class  _Array< _Tp >

template<class _Tp> class std::valarray


Member Typedef Documentation

template<class _Tp>
typedef _Tp std::valarray<_Tp>::value_type
 

Definition at line 95 of file std_valarray.h.


Constructor & Destructor Documentation

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( ) [inline]
 

Definition at line 260 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( size_t __n ) [inline, explicit]
 

Definition at line 263 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const _Tp & __t,
size_t __n ) [inline]
 

Definition at line 268 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const _Tp * __restrict__,
size_t __n ) [inline]
 

Definition at line 273 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const valarray<_Tp> & __v ) [inline]
 

Definition at line 278 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const slice_array< _Tp > & __sa ) [inline]
 

Definition at line 283 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const gslice_array< _Tp > & __ga ) [inline]
 

Definition at line 291 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const mask_array< _Tp > & __ma ) [inline]
 

Definition at line 301 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::valarray<_Tp> ( const indirect_array< _Tp > & __ia ) [inline]
 

Definition at line 309 of file std_valarray.h.

template<typename _Tp>
template<class _Dom>
std::valarray< _Tp >::valarray<_Tp> ( const _Expr< _Dom, _Tp > & __e ) [inline]
 

Definition at line 317 of file std_valarray.h.

template<typename _Tp>
std::valarray< _Tp >::~valarray<_Tp> ( ) [inline]
 

Definition at line 322 of file std_valarray.h.


Member Function Documentation

template<class _Tp>
_Expr< _RefFunClos< _ValArray, _Tp >,_Tp > std::valarray< _Tp >::apply ( _Tp func(const _Tp &) ) const [inline]
 

Definition at line 566 of file std_valarray.h.

template<class _Tp>
_Expr< _ValFunClos< _ValArray, _Tp >,_Tp > std::valarray< _Tp >::apply ( _Tp func(_Tp) ) const [inline]
 

Definition at line 558 of file std_valarray.h.

template<class _Tp>
valarray< _Tp > std::valarray< _Tp >::cshift ( int __n ) const [inline]
 

Definition at line 504 of file std_valarray.h.

template<typename _Tp>
_Tp std::valarray< _Tp >::max ( ) const [inline]
 

Definition at line 551 of file std_valarray.h.

template<typename _Tp>
_Tp std::valarray< _Tp >::min ( ) const [inline]
 

Definition at line 544 of file std_valarray.h.

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator &= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator &= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator &= ( const _Tp & )
 

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator *= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator *= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator *= ( const _Tp & )
 

template<class _Tp>
_Expr<_UnClos<logical_not,_ValArray,_Tp>,bool> std::valarray<_Tp>::operator! ( ) const
 

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator%= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator%= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator%= ( const _Tp & )
 

template<class _Tp>
_Expr<_UnClos<_Unary_plus,_ValArray,_Tp>,_Tp> std::valarray<_Tp>::operator+ ( ) const
 

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator+= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator+= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator+= ( const _Tp & )
 

template<class _Tp>
_Expr<_UnClos<negate,_ValArray,_Tp>,_Tp> std::valarray<_Tp>::operator- ( ) const
 

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator-= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator-= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator-= ( const _Tp & )
 

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator/= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator/= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator/= ( const _Tp & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator<<= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator<<= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator<<= ( const _Tp & )
 

template<typename _Tp>
template<class _Dom>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const _Expr< _Dom, _Tp > & __e ) [inline]
 

Definition at line 382 of file std_valarray.h.

template<typename _Tp>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const indirect_array< _Tp > & __ia ) [inline]
 

Definition at line 373 of file std_valarray.h.

template<typename _Tp>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const mask_array< _Tp > & __ma ) [inline]
 

Definition at line 364 of file std_valarray.h.

template<typename _Tp>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const gslice_array< _Tp > & __ga ) [inline]
 

Definition at line 355 of file std_valarray.h.

template<typename _Tp>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const slice_array< _Tp > & __sa ) [inline]
 

Definition at line 346 of file std_valarray.h.

template<typename _Tp>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const _Tp & __t ) [inline]
 

Definition at line 338 of file std_valarray.h.

template<typename _Tp>
valarray< _Tp > & std::valarray< _Tp >::operator= ( const valarray< _Tp > & __v ) [inline]
 

Definition at line 330 of file std_valarray.h.

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator>>= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator>>= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator>>= ( const _Tp & )
 

template<typename _Tp>
indirect_array< _Tp > std::valarray< _Tp >::operator[] ( const valarray< size_t > & __i ) [inline]
 

Definition at line 434 of file std_valarray.h.

template<typename _Tp>
_Expr< _IClos< _ValArray, _Tp >, _Tp > std::valarray< _Tp >::operator[] ( const valarray< size_t > & __i ) const [inline]
 

Definition at line 422 of file std_valarray.h.

template<typename _Tp>
indirect_array< _Tp > std::valarray< _Tp >::operator[] ( const valarray< bool > & __i ) [inline]
 

Definition at line 434 of file std_valarray.h.

template<typename _Tp>
_Expr< _IClos< _ValArray, _Tp >, _Tp > std::valarray< _Tp >::operator[] ( const valarray< bool > & __i ) const [inline]
 

Definition at line 422 of file std_valarray.h.

template<typename _Tp>
gslice_array< _Tp > std::valarray< _Tp >::operator[] ( const gslice & __gs ) [inline]
 

Definition at line 414 of file std_valarray.h.

template<typename _Tp>
_Expr< _GClos< _ValArray, _Tp >, _Tp > std::valarray< _Tp >::operator[] ( const gslice & __gs ) const [inline]
 

Definition at line 405 of file std_valarray.h.

template<typename _Tp>
slice_array< _Tp > std::valarray< _Tp >::operator[] ( slice __s ) [inline]
 

Definition at line 398 of file std_valarray.h.

template<typename _Tp>
_Expr< _SClos< _ValArray, _Tp >, _Tp > std::valarray< _Tp >::operator[] ( slice __s ) const [inline]
 

Definition at line 390 of file std_valarray.h.

template<typename _Tp>
_Tp & std::valarray< _Tp >::operator[] ( size_t __i ) [inline]
 

Definition at line 245 of file std_valarray.h.

template<typename _Tp>
_Tp std::valarray< _Tp >::operator[] ( size_t __i ) const [inline]
 

Definition at line 240 of file std_valarray.h.

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator^= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator^= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator^= ( const _Tp & )
 

template<class _Tp>
template<class _Dom>
valarray<_Tp>& std::valarray<_Tp>::operator|= ( const _Expr< _Dom, _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator|= ( const valarray< _Tp > & )
 

template<class _Tp>
valarray<_Tp>& std::valarray<_Tp>::operator|= ( const _Tp & )
 

template<class _Tp>
_Expr<_UnClos<_Bitwise_not,_ValArray,_Tp>,_Tp> std::valarray<_Tp>::operator~ ( ) const
 

template<class _Tp>
void std::valarray< _Tp >::resize ( size_t __n,
_Tp __c = _Tp() ) [inline]
 

Definition at line 527 of file std_valarray.h.

template<class _Tp>
valarray< _Tp > std::valarray< _Tp >::shift ( int __n ) const [inline]
 

Definition at line 478 of file std_valarray.h.

template<class _Tp>
size_t std::valarray< _Tp >::size ( ) const [inline]
 

Definition at line 460 of file std_valarray.h.

template<class _Tp>
_Tp std::valarray< _Tp >::sum ( ) const [inline]
 

Definition at line 464 of file std_valarray.h.


Friends And Related Function Documentation

template<class _Tp>
friend class _Array< _Tp > [friend]
 

Definition at line 205 of file std_valarray.h.


Member Data Documentation

template<class _Tp>
_Tp* __restrict__ std::valarray<_Tp>::_M_data [private]
 

Definition at line 203 of file std_valarray.h.

template<class _Tp>
size_t std::valarray<_Tp>::_M_size [private]
 

Definition at line 202 of file std_valarray.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:33 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001