Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Attributes
concepts::StiffArray< dim, F > Class Template Reference

An array of objects of fix length, defined by template parameter dim. More...

#include <stiffArray.hh>

Inheritance diagram for concepts::StiffArray< dim, F >:
Inheritance graph
[legend]
Collaboration diagram for concepts::StiffArray< dim, F >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

StiffArray< dim, F > & apply (F &fnc(F &))
 Application operator to each component, e.g.
uint length ()
 operator Array< F > () const
 operator const F * () const
 Returns a pointer to the data in the array.
 operator F * ()
 Returns a pointer to the data in the array.
StiffArray< dim, F > & operator*= (const StiffArray< dim, F > &a)
 Multiplication operator.
StiffArray< dim, F > & operator*= (const F n)
 Scaling operator.
StiffArray< dim, F > & operator+= (const F n)
 Addition operator.
StiffArray< dim, F > & operator-= (const F n)
 Subtraction operator.
StiffArray< dim, F > & operator/= (const F n)
 Division operator.
StiffArray< dim, F > & operator= (const F n)
 Assignement operator.
const F & operator[] (const int i) const
 Index operator.
F & operator[] (const int i)
 Index operator.
 StiffArray (const F &dft)
 Constructor.
template<class H >
 StiffArray (const StiffArray< dim, H > &a, const F &fnc(const H &))
 Constructor.
 StiffArray (const StiffArray< dim, F > &a)
 Copy constructor.
 StiffArray (const Array< F > &dft)
 Constructor.
 StiffArray ()
 Constructor.
template<class H >
 StiffArray (const StiffArray< dim, H > &a, F fnc(const H &))
 Constructor.
void zeros ()
 Fills the memory with zeros.
 ~StiffArray ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Attributes

F * data_
 Data.

Detailed Description

template<uint dim, class F>
class concepts::StiffArray< dim, F >

An array of objects of fix length, defined by template parameter dim.

Is almost similar to Array, but without methods for resizing.

Author:
Kersten Schmidt, 2005

Definition at line 27 of file stiffArray.hh.


Constructor & Destructor Documentation

template<uint dim, class F>
concepts::StiffArray< dim, F >::StiffArray ( ) [inline]

Constructor.

Definition at line 30 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::StiffArray ( const F &  dft) [inline]

Constructor.

Parameters:
dftDefault value.

Definition at line 35 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::StiffArray ( const Array< F > &  dft) [inline]

Constructor.

Parameters:
dataArray of size dim.

Definition at line 40 of file stiffArray.hh.

template<uint dim, class F>
template<class H >
concepts::StiffArray< dim, F >::StiffArray ( const StiffArray< dim, H > &  a,
F   fncconst H & 
) [inline]

Constructor.

Parameters:
aStiff array with elements of type H
fncFunction which maps from H to F

Definition at line 50 of file stiffArray.hh.

template<uint dim, class F>
template<class H >
concepts::StiffArray< dim, F >::StiffArray ( const StiffArray< dim, H > &  a,
const F &  fncconst H & 
) [inline]

Constructor.

Parameters:
aStiff array with elements of type H
fncFunction which maps from H to F, e.g. std::real

Definition at line 61 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::StiffArray ( const StiffArray< dim, F > &  a) [inline]

Copy constructor.

Definition at line 67 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::~StiffArray ( ) [inline]

Definition at line 70 of file stiffArray.hh.


Member Function Documentation

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::apply ( F &  fncF &) [inline]

Application operator to each component, e.g.

std::sin or std::conj

Definition at line 131 of file stiffArray.hh.

template<uint dim, class F >
std::ostream & concepts::StiffArray< dim, F >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in concepts::MultiIndex< dim >.

Definition at line 143 of file stiffArray.hh.

template<uint dim, class F>
uint concepts::StiffArray< dim, F >::length ( ) [inline]

Definition at line 75 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::operator Array< F > ( ) const [inline]

Definition at line 83 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::operator const F * ( ) const [inline]

Returns a pointer to the data in the array.

Definition at line 81 of file stiffArray.hh.

template<uint dim, class F>
concepts::StiffArray< dim, F >::operator F * ( ) [inline]

Returns a pointer to the data in the array.

Definition at line 79 of file stiffArray.hh.

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator*= ( const F  n) [inline]

Scaling operator.

Definition at line 99 of file stiffArray.hh.

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator*= ( const StiffArray< dim, F > &  a) [inline]

Multiplication operator.

Definition at line 124 of file stiffArray.hh.

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator+= ( const F  n) [inline]

Addition operator.

Definition at line 114 of file stiffArray.hh.

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator-= ( const F  n) [inline]

Subtraction operator.

Definition at line 119 of file stiffArray.hh.

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator/= ( const F  n) [inline]

Division operator.

Definition at line 104 of file stiffArray.hh.

template<uint dim, class F>
StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator= ( const F  n) [inline]

Assignement operator.

Definition at line 109 of file stiffArray.hh.

template<uint dim, class F>
const F& concepts::StiffArray< dim, F >::operator[] ( const int  i) const [inline]

Index operator.

Definition at line 86 of file stiffArray.hh.

template<uint dim, class F>
F& concepts::StiffArray< dim, F >::operator[] ( const int  i) [inline]

Index operator.

Definition at line 92 of file stiffArray.hh.

template<uint dim, class F>
void concepts::StiffArray< dim, F >::zeros ( ) [inline]

Fills the memory with zeros.

Definition at line 77 of file stiffArray.hh.


Member Data Documentation

template<uint dim, class F>
F* concepts::StiffArray< dim, F >::data_ [private]

Data.

Definition at line 139 of file stiffArray.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)