dune-common 2.9.0
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Dune::DiagonalRowVectorConst< K, n > Class Template Reference

#include <dune/common/diagonalmatrix.hh>

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

Public Types

typedef K field_type
 export the type representing the field More...
 
typedef K block_type
 export the type representing the components More...
 
typedef std::size_t size_type
 The type used for the index access and size operation. More...
 
typedef ContainerWrapperIterator< DiagonalRowVectorConst< K, n >, const K, const K & > ConstIterator
 ConstIterator class for sequential access. More...
 
typedef ConstIterator const_iterator
 typedef for stl compliant access More...
 

Public Member Functions

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

Static Public Attributes

static constexpr int dimension = n
 
static constexpr int blocklevel = 1
 The number of block levels we contain. More...
 
static constexpr int size = n
 The size of this vector. More...
 

Protected Member Functions

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

Protected Attributes

K * p_
 
size_type row_
 

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