MOOCHO (Single Doxygen Collection) Version of the Day
Public Types | Private Attributes
DenseLinAlgPack::VectorTmpl< T > Class Template Reference

More...

#include <DenseLinAlgPack_DVectorClassTmpl.hpp>

List of all members.

Public Types

typedef T value_type
typedef DenseLinAlgPack::size_type size_type
typedef ptrdiff_t difference_type
typedef value_typeiterator
typedef const value_typeconst_iterator
typedef std::reverse_iterator
< iterator
reverse_iterator
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
typedef value_typereference
typedef const value_typeconst_reference
typedef std::vector< value_typevalarray

Private Attributes

valarray v_
 VectorTmpl ()
 Constructs a vector with 0 elements (this->dim()==0).
 VectorTmpl (size_type n)
 Constructs a vector with n elements of initialized memory.
 VectorTmpl (value_type val, size_type n)
 Constructs a vector with n elements initialized to val.
 VectorTmpl (const value_type *p, size_type n)
 
 VectorTmpl (const VectorSliceTmpl< value_type > &vs)
 
void resize (size_type n, value_type val=value_type())
 
void free ()
 
size_type dim () const
 Returns the number of elements of the DVector.
EOverLap overlap (const VectorSliceTmpl< value_type > &vs) const
 operator VectorSliceTmpl< value_type > ()
 Conversion operator for implicit conversions from DVector to VectorSliceTmpl.
 operator const VectorSliceTmpl< value_type > () const
 Conversion operator for implicit conversions from const DVector to const VectorSliceTmpl.
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
reference operator() (size_type i)
 1-based element access (lvalue)
const_reference operator() (size_type i) const
 1-based element access (rvalue)
reference operator[] (size_type i)
 1-based element access (lvalue)
const_reference operator[] (size_type i) const
 0-based element access (rvalue)
VectorSliceTmpl< value_typeoperator() ()
const VectorSliceTmpl< value_typeoperator() () const
 Same as above.
VectorSliceTmpl< value_typeoperator() (const Range1D &rng)
const VectorSliceTmpl< value_typeoperator() (const Range1D &rng) const
 Same as above.
VectorSliceTmpl< value_typeoperator() (size_type lbound, size_type ubound)
const VectorSliceTmpl< value_typeoperator() (size_type lbound, size_type ubound) const
 Same as above.
VectorSliceTmpl< value_typerev ()
const VectorSliceTmpl< value_typerev () const
 Same as above.
VectorTmpl< value_type > & operator= (value_type alpha)
 
VectorTmpl< value_type > & operator= (const VectorSliceTmpl< value_type > &rhs)
 
VectorTmpl< value_type > & operator= (const VectorTmpl< value_type > &rhs)
 
value_typeraw_ptr ()
 Return a pointer to the address of the first memory location of underlying array.
const value_typeraw_ptr () const
 
value_typestart_ptr ()
 Return a pointer to the conceptual first element in the underlying array.
const value_typestart_ptr () const
 
difference_type stride () const
 Return the distance (+,-) (in units of elements) between adjacent elements in the underlying array.

Detailed Description

template<class T>
class DenseLinAlgPack::VectorTmpl< T >

Definition at line 452 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


Member Typedef Documentation

template<class T>
typedef T DenseLinAlgPack::VectorTmpl< T >::value_type

Definition at line 474 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

Definition at line 475 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef ptrdiff_t DenseLinAlgPack::VectorTmpl< T >::difference_type

Definition at line 476 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef value_type* DenseLinAlgPack::VectorTmpl< T >::iterator

Definition at line 477 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef const value_type* DenseLinAlgPack::VectorTmpl< T >::const_iterator

Definition at line 478 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef std::reverse_iterator<iterator> DenseLinAlgPack::VectorTmpl< T >::reverse_iterator

Definition at line 486 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef std::reverse_iterator<const_iterator> DenseLinAlgPack::VectorTmpl< T >::const_reverse_iterator

Definition at line 487 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef value_type& DenseLinAlgPack::VectorTmpl< T >::reference

Definition at line 489 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef const value_type& DenseLinAlgPack::VectorTmpl< T >::const_reference

Definition at line 490 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
typedef std::vector<value_type> DenseLinAlgPack::VectorTmpl< T >::valarray

Definition at line 491 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


Constructor & Destructor Documentation

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( ) [inline]

Constructs a vector with 0 elements (this->dim()==0).

Definition at line 1059 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( size_type  n) [inline]

Constructs a vector with n elements of initialized memory.

Definition at line 1064 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( value_type  val,
size_type  n 
) [inline]

Constructs a vector with n elements initialized to val.

Definition at line 1070 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( const value_type p,
size_type  n 
) [inline]

Definition at line 1078 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
DenseLinAlgPack::VectorTmpl< T >::VectorTmpl ( const VectorSliceTmpl< value_type > &  vs) [inline]

Definition at line 1086 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


Member Function Documentation

template<class T >
void DenseLinAlgPack::VectorTmpl< T >::resize ( size_type  n,
value_type  val = value_type() 
) [inline]

Definition at line 1095 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
void DenseLinAlgPack::VectorTmpl< T >::free ( ) [inline]

Definition at line 1103 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::size_type DenseLinAlgPack::VectorTmpl< T >::dim ( ) const [inline]

Returns the number of elements of the DVector.

Definition at line 1111 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
EOverLap DenseLinAlgPack::VectorTmpl< T >::overlap ( const VectorSliceTmpl< value_type > &  vs) const

Definition at line 1415 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T>
DenseLinAlgPack::VectorTmpl< T >::operator VectorSliceTmpl< value_type > ( )

Conversion operator for implicit conversions from DVector to VectorSliceTmpl.

template<class T>
DenseLinAlgPack::VectorTmpl< T >::operator const VectorSliceTmpl< value_type > ( ) const

Conversion operator for implicit conversions from const DVector to const VectorSliceTmpl.

template<class T >
VectorTmpl< T >::iterator DenseLinAlgPack::VectorTmpl< T >::begin ( ) [inline]

Definition at line 1117 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::iterator DenseLinAlgPack::VectorTmpl< T >::end ( ) [inline]

Definition at line 1122 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_iterator DenseLinAlgPack::VectorTmpl< T >::begin ( ) const [inline]

Definition at line 1127 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_iterator DenseLinAlgPack::VectorTmpl< T >::end ( ) const [inline]

Definition at line 1132 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rbegin ( ) [inline]

Definition at line 1137 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rend ( ) [inline]

Definition at line 1142 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rbegin ( ) const [inline]

Definition at line 1147 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reverse_iterator DenseLinAlgPack::VectorTmpl< T >::rend ( ) const [inline]

Definition at line 1152 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reference DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  i) [inline]

1-based element access (lvalue)

Definition at line 1158 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reference DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  i) const [inline]

1-based element access (rvalue)

Definition at line 1166 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::reference DenseLinAlgPack::VectorTmpl< T >::operator[] ( size_type  i) [inline]

1-based element access (lvalue)

Definition at line 1174 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::const_reference DenseLinAlgPack::VectorTmpl< T >::operator[] ( size_type  i) const [inline]

0-based element access (rvalue)

Definition at line 1182 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( ) [inline]

Definition at line 1191 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( ) const [inline]

Same as above.

Definition at line 1196 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( const Range1D rng) [inline]

Definition at line 1201 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( const Range1D rng) const [inline]

Same as above.

Definition at line 1206 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  lbound,
size_type  ubound 
) [inline]

Definition at line 1211 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::operator() ( size_type  lbound,
size_type  ubound 
) const [inline]

Same as above.

Definition at line 1216 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::rev ( ) [inline]

Definition at line 1221 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorSliceTmpl< T > DenseLinAlgPack::VectorTmpl< T >::rev ( ) const [inline]

Same as above.

Definition at line 1226 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T > & DenseLinAlgPack::VectorTmpl< T >::operator= ( value_type  alpha) [inline]

Definition at line 1243 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T > & DenseLinAlgPack::VectorTmpl< T >::operator= ( const VectorSliceTmpl< value_type > &  rhs) [inline]

Definition at line 1261 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T > & DenseLinAlgPack::VectorTmpl< T >::operator= ( const VectorTmpl< value_type > &  rhs) [inline]

Definition at line 1252 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::raw_ptr ( ) [inline]

Return a pointer to the address of the first memory location of underlying array.

Definition at line 1272 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::raw_ptr ( ) const [inline]

Definition at line 1277 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::start_ptr ( ) [inline]

Return a pointer to the conceptual first element in the underlying array.

Definition at line 1282 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
const VectorTmpl< T >::value_type * DenseLinAlgPack::VectorTmpl< T >::start_ptr ( ) const [inline]

Definition at line 1287 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

template<class T >
VectorTmpl< T >::difference_type DenseLinAlgPack::VectorTmpl< T >::stride ( ) const [inline]

Return the distance (+,-) (in units of elements) between adjacent elements in the underlying array.

Definition at line 1292 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


Member Data Documentation

template<class T>
valarray DenseLinAlgPack::VectorTmpl< T >::v_ [private]

Definition at line 746 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines