dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::SimpleBlockVectorBlock< BlockVector > Class Template Reference

This is the implementation of a block of SimpleBlockVector. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/function/blockvectors/defaultblockvectors.hh>

Inheritance diagram for Dune::Fem::SimpleBlockVectorBlock< BlockVector >:
Inheritance graph

Public Types

typedef BlockVectorType::SizeType size_type
 

Public Member Functions

 SimpleBlockVectorBlock (const BlockVectorType &blockVector, unsigned int blockBegin)
 Standard constructor for SimpleBlockVectorBlocks. More...
 
 SimpleBlockVectorBlock (const SimpleBlockVectorBlock< BlockVectorType > &other)
 Copy constructor. More...
 
size_type size () const
 
size_type vec_size () const
 
ThisTypeoperator= (const ConstBlockType &other)
 Copy assignment operator for constant blocks. More...
 
FieldType & vec_access (unsigned int index)
 Obtain a dof inside this block. More...
 
const FieldType & vec_access (unsigned int index) const
 Obtain a dof inside this block. More...
 
int dim () const
 Returns the size of the block. More...
 

Static Public Attributes

static const unsigned int blockSize = BlockVector :: blockSize
 The block size. More...
 

Protected Member Functions

 SimpleBlockVectorBlock ()
 
template<class Block >
void copy (const Block &other)
 

Protected Attributes

BlockVectorType & blockVector_
 
const unsigned int blockBegin_
 

Detailed Description

template<class BlockVector>
class Dune::Fem::SimpleBlockVectorBlock< BlockVector >

This is the implementation of a block of SimpleBlockVector.

Template Parameters
FThe ground fields. All dofs are elements of this field.
BlockSizeSize of the blocks

Member Typedef Documentation

template<class BlockVector>
typedef BlockVectorType :: SizeType Dune::Fem::SimpleBlockVectorBlock< BlockVector >::size_type

Constructor & Destructor Documentation

template<class BlockVector>
Dune::Fem::SimpleBlockVectorBlock< BlockVector >::SimpleBlockVectorBlock ( const BlockVectorType &  blockVector,
unsigned int  blockBegin 
)
inline

Standard constructor for SimpleBlockVectorBlocks.

Parameters
[in]blockVectorThe block vector in which this block lives
[in]blockBeginBeginning index of this block in the block vector's array (implementation detail)
template<class BlockVector>
Dune::Fem::SimpleBlockVectorBlock< BlockVector >::SimpleBlockVectorBlock ( const SimpleBlockVectorBlock< BlockVectorType > &  other)
inline

Copy constructor.

template<class BlockVector>
Dune::Fem::SimpleBlockVectorBlock< BlockVector >::SimpleBlockVectorBlock ( )
protected

Member Function Documentation

template<class BlockVector>
template<class Block >
void Dune::Fem::SimpleBlockVectorBlock< BlockVector >::copy ( const Block &  other)
inlineprotected
template<class BlockVector>
int Dune::Fem::SimpleBlockVectorBlock< BlockVector >::dim ( ) const
inline

Returns the size of the block.

template<class BlockVector>
ThisType& Dune::Fem::SimpleBlockVectorBlock< BlockVector >::operator= ( const ConstBlockType other)
inline

Copy assignment operator for constant blocks.

Parameters
[in]otherOther block (constant) which should be assigned to *this
Returns
Constant reference to *this
template<class BlockVector>
size_type Dune::Fem::SimpleBlockVectorBlock< BlockVector >::size ( ) const
inline
template<class BlockVector>
FieldType& Dune::Fem::SimpleBlockVectorBlock< BlockVector >::vec_access ( unsigned int  index)
inline

Obtain a dof inside this block.

Parameters
[in]indexIndex of the dof
Returns
Reference to the dof
template<class BlockVector>
const FieldType& Dune::Fem::SimpleBlockVectorBlock< BlockVector >::vec_access ( unsigned int  index) const
inline

Obtain a dof inside this block.

Parameters
[in]indexIndex of the dof
Returns
Constant reference to the dof
template<class BlockVector>
size_type Dune::Fem::SimpleBlockVectorBlock< BlockVector >::vec_size ( ) const
inline

Member Data Documentation

template<class BlockVector>
const unsigned int Dune::Fem::SimpleBlockVectorBlock< BlockVector >::blockBegin_
protected
template<class BlockVector>
const unsigned int Dune::Fem::SimpleBlockVectorBlock< BlockVector >::blockSize = BlockVector :: blockSize
static

The block size.

template<class BlockVector>
BlockVectorType& Dune::Fem::SimpleBlockVectorBlock< BlockVector >::blockVector_
protected

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