DenseLinAlgPack::VectorTmpl< T > Class Template Reference

More...

#include <DenseLinAlgPack_DVectorClassTmpl.hpp>

List of all members.

[NOHEADER]

 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)
 

[NOHEADER]

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 ()
 Conversion operator for implicit conversions from DVector to VectorSliceTmpl.
 operator const VectorSliceTmpl () const
 Conversion operator for implicit conversions from const DVector to const VectorSliceTmpl.

[NOHEADER]

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
 

[NOHEADER]

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)

[NOHEADER]

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.

[NOHEADER]

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)
 

[NOHEADER]

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.

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_


Detailed Description

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

Definition at line 439 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


Member Typedef Documentation

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

Definition at line 461 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 462 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 463 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 464 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 465 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 473 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 474 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 476 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 477 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 478 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 1046 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 1051 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 1057 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1065 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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


Member Function Documentation

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

Definition at line 1082 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1090 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 1098 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1402 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Conversion operator for implicit conversions from DVector to VectorSliceTmpl.

Definition at line 1219 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

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

Definition at line 1224 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1104 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1109 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1114 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1119 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1124 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1129 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1134 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1139 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 1145 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 1153 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 1161 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 1169 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1178 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Same as above.

Definition at line 1183 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1188 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 1193 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1198 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 1203 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1208 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Same as above.

Definition at line 1213 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1230 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

template<class T>
VectorTmpl<value_type>& DenseLinAlgPack::VectorTmpl< T >::operator= const VectorTmpl< value_type > &  rhs  ) 
 

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 1259 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1264 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 1269 of file DenseLinAlgPack_DVectorClassTmpl.hpp.

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

Definition at line 1274 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 1279 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


Member Data Documentation

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

Definition at line 733 of file DenseLinAlgPack_DVectorClassTmpl.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:36:17 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1