dune-istl  2.1.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
Dune::DiagonalRowVector< K, n > Class Template Reference

#include <dune/istl/diagonalmatrix.hh>

Inheritance diagram for Dune::DiagonalRowVector< K, n >:
Inheritance graph

List of all members.

Public Types

typedef K field_type
 export the type representing the field
typedef K block_type
 export the type representing the components
typedef std::size_t size_type
 The type used for the index access and size operation.
typedef
ContainerWrapperIterator
< DiagonalRowVector< K, n >, K,
K & > 
Iterator
 Iterator class for sequential access.
typedef Iterator iterator
 typedef for stl compliant access
typedef
ContainerWrapperIterator
< DiagonalRowVectorConst< K, n >
, const K, const K & > 
ConstIterator
 ConstIterator class for sequential access.
typedef ConstIterator const_iterator
 typedef for stl compliant access
enum  { dimension = n }
enum  { blocklevel = 1 }
 We are at the leaf of the block recursion. More...
enum  { size = n }
 export size More...

Public Member Functions

 DiagonalRowVector ()
 Constructor making uninitialized vector.
 DiagonalRowVector (K *p, int col)
 Constructor making vector with identical coordinates.
DiagonalRowVectoroperator= (const K &k)
 Assignment operator for scalar.
K & operator[] (size_type i)
 random access
Iterator begin ()
 begin iterator
Iterator end ()
 end iterator
Iterator rbegin ()
Iterator beforeEnd ()
Iterator rend ()
Iterator beforeBegin ()
const K & operator[] (size_type i) const
 same for read only access
bool identical (const DiagonalRowVectorConst< K, n > &other) const
ConstIterator begin () const
 begin ConstIterator
ConstIterator end () const
 end ConstIterator
ConstIterator rbegin () const
ConstIterator beforeEnd () const
ConstIterator rend () const
ConstIterator beforeBegin () const
bool operator== (const DiagonalRowVectorConst &y) const
 Binary vector comparison.
size_type N () const
 number of blocks in the vector (are of size 1 here)
size_type dim () const
 dimension of the vector space
size_type rowIndex () const
 index of this row in surrounding matrix
const K & diagonal () const
 the diagonal value

Protected Member Functions

DiagonalRowVectoroperator& ()
size_type realIndex (int i) const
K * pointer (size_type i) const

Protected Attributes

K * p_
size_type row_

Friends

class DiagonalMatrixWrapper
class ContainerWrapperIterator< DiagonalRowVector< K, n >, K, K & >

template<class K, int n>
class Dune::DiagonalRowVector< K, n >


Member Typedef Documentation

template<class K, int n>
typedef K Dune::DiagonalRowVector< K, n >::block_type

export the type representing the components

Reimplemented from Dune::DiagonalRowVectorConst< K, n >.

template<class K, int n>
typedef ConstIterator Dune::DiagonalRowVector< K, n >::const_iterator

typedef for stl compliant access

Reimplemented from Dune::DiagonalRowVectorConst< K, n >.

template<class K, int n>
typedef ContainerWrapperIterator<DiagonalRowVectorConst<K,n>, const K, const K&> Dune::DiagonalRowVector< K, n >::ConstIterator

ConstIterator class for sequential access.

Reimplemented from Dune::DiagonalRowVectorConst< K, n >.

template<class K, int n>
typedef K Dune::DiagonalRowVector< K, n >::field_type

export the type representing the field

Reimplemented from Dune::DiagonalRowVectorConst< K, n >.

template<class K, int n>
typedef ContainerWrapperIterator<DiagonalRowVector<K,n>, K, K&> Dune::DiagonalRowVector< K, n >::Iterator

Iterator class for sequential access.

template<class K, int n>
typedef Iterator Dune::DiagonalRowVector< K, n >::iterator

typedef for stl compliant access

template<class K, int n>
typedef std::size_t Dune::DiagonalRowVector< K, n >::size_type

The type used for the index access and size operation.

Reimplemented from Dune::DiagonalRowVectorConst< K, n >.


Member Enumeration Documentation

template<class K, int n>
anonymous enum [inherited]

export size

Enumerator:
size 

The size of this vector.

template<class K, int n>
anonymous enum [inherited]
Enumerator:
dimension 
template<class K, int n>
anonymous enum [inherited]

We are at the leaf of the block recursion.

Enumerator:
blocklevel 

The number of block levels we contain.


Constructor & Destructor Documentation

template<class K, int n>
Dune::DiagonalRowVector< K, n >::DiagonalRowVector ( ) [inline]

Constructor making uninitialized vector.

template<class K, int n>
Dune::DiagonalRowVector< K, n >::DiagonalRowVector ( K *  p,
int  col 
) [inline, explicit]

Constructor making vector with identical coordinates.


Member Function Documentation

template<class K, int n>
ConstIterator Dune::DiagonalRowVectorConst< K, n >::beforeBegin ( ) const [inline, inherited]
Returns:
an iterator that is positioned before the first row of the matrix.

Referenced by Dune::DiagonalRowVectorConst< K, n >::rend().

template<class K, int n>
Iterator Dune::DiagonalRowVector< K, n >::beforeBegin ( ) [inline]
Returns:
an iterator that is positioned before the first row of the matrix.

Referenced by Dune::DiagonalRowVector< K, DiagonalMatrixType::rows >::rend().

template<class K, int n>
ConstIterator Dune::DiagonalRowVectorConst< K, n >::beforeEnd ( ) const [inline, inherited]
Returns:
an iterator that is positioned before the end iterator of the rows. i.e. at the row.

Referenced by Dune::DiagonalRowVectorConst< K, n >::rbegin().

template<class K, int n>
Iterator Dune::DiagonalRowVector< K, n >::beforeEnd ( ) [inline]
Returns:
an iterator that is positioned before the end iterator of the rows, i.e. at the last row.

Referenced by Dune::DiagonalRowVector< K, DiagonalMatrixType::rows >::rbegin().

template<class K, int n>
ConstIterator Dune::DiagonalRowVectorConst< K, n >::begin ( ) const [inline, inherited]

begin ConstIterator

template<class K, int n>
Iterator Dune::DiagonalRowVector< K, n >::begin ( ) [inline]

begin iterator

template<class K, int n>
const K& Dune::DiagonalRowVectorConst< K, n >::diagonal ( ) const [inline, inherited]

the diagonal value

References Dune::DiagonalRowVectorConst< K, n >::p_.

template<class K, int n>
size_type Dune::DiagonalRowVectorConst< K, n >::dim ( ) const [inline, inherited]

dimension of the vector space

template<class K, int n>
ConstIterator Dune::DiagonalRowVectorConst< K, n >::end ( ) const [inline, inherited]

end ConstIterator

template<class K, int n>
Iterator Dune::DiagonalRowVector< K, n >::end ( ) [inline]

end iterator

template<class K, int n>
bool Dune::DiagonalRowVectorConst< K, n >::identical ( const DiagonalRowVectorConst< K, n > &  other) const [inline, inherited]
template<class K, int n>
size_type Dune::DiagonalRowVectorConst< K, n >::N ( ) const [inline, inherited]

number of blocks in the vector (are of size 1 here)

template<class K, int n>
DiagonalRowVector* Dune::DiagonalRowVector< K, n >::operator& ( ) [inline, protected]
template<class K, int n>
DiagonalRowVector& Dune::DiagonalRowVector< K, n >::operator= ( const K &  k) [inline]

Assignment operator for scalar.

template<class K, int n>
bool Dune::DiagonalRowVectorConst< K, n >::operator== ( const DiagonalRowVectorConst< K, n > &  y) const [inline, inherited]
template<class K, int n>
const K& Dune::DiagonalRowVectorConst< K, n >::operator[] ( size_type  i) const [inline, inherited]
template<class K, int n>
K& Dune::DiagonalRowVector< K, n >::operator[] ( size_type  i) [inline]

random access

template<class K, int n>
K* Dune::DiagonalRowVectorConst< K, n >::pointer ( size_type  i) const [inline, protected, inherited]
template<class K, int n>
ConstIterator Dune::DiagonalRowVectorConst< K, n >::rbegin ( ) const [inline, inherited]
Deprecated:
This method was renamed to make it distinct from the STL version which returns a reverse iterator. Use the new method beforeEnd instead.
Deprecated:

References Dune::DiagonalRowVectorConst< K, n >::beforeEnd().

template<class K, int n>
Iterator Dune::DiagonalRowVector< K, n >::rbegin ( ) [inline]
Deprecated:
This method was renamed to make it distinct from the STL version which returns a reverse iterator. Use the new method beforeEnd instead.
Deprecated:
template<class K, int n>
size_type Dune::DiagonalRowVectorConst< K, n >::realIndex ( int  i) const [inline, protected, inherited]
template<class K, int n>
ConstIterator Dune::DiagonalRowVectorConst< K, n >::rend ( ) const [inline, inherited]
Deprecated:
This method was renamed to make it distinct from the STL version which returns a reverse iterator. Use the new method beforeBegin instead.
Deprecated:

References Dune::DiagonalRowVectorConst< K, n >::beforeBegin().

template<class K, int n>
Iterator Dune::DiagonalRowVector< K, n >::rend ( ) [inline]
Deprecated:
This method was renamed to make it distinct from the STL version which returns a reverse iterator. Use the new method beforeBegin instead.
Deprecated:
template<class K, int n>
size_type Dune::DiagonalRowVectorConst< K, n >::rowIndex ( ) const [inline, inherited]

index of this row in surrounding matrix

References Dune::DiagonalRowVectorConst< K, n >::row_.

Referenced by Dune::DiagonalRowVectorConst< K, n >::realIndex().


Friends And Related Function Documentation

template<class K, int n>
friend class ContainerWrapperIterator< DiagonalRowVector< K, n >, K, K & > [friend]
template<class K, int n>
friend class DiagonalMatrixWrapper [friend]

Member Data Documentation

template<class K, int n>
K* Dune::DiagonalRowVectorConst< K, n >::p_ [protected, inherited]
template<class K, int n>
size_type Dune::DiagonalRowVectorConst< K, n >::row_ [protected, inherited]

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