AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
ISTLBlockVector< T > Class Template Reference

Inherits VectorBase< ISTLBlockVector< T > >.

Public Types

using BaseVector = Dune::BlockVector< typename BlockVectorType< T >::type >
 The vector type of the underlying base vector.
 
using block_type = typename BaseVector::block_type
 The type of the elements of the DOFVector.
 
using value_type = T
 The type of the elements of the DOFVector.
 
using field_type = typename block_type::field_type
 The underlying field type.
 
using size_type = typename BaseVector::size_type
 The index/size - type.
 

Public Member Functions

template<class Basis , Dune::disableCopyMove< ISTLBlockVector, Basis > = 0>
 ISTLBlockVector (Basis const &)
 Constructor. Constructs new BaseVector.
 
BaseVector const & vector () const
 Return the data-vector vector.
 
BaseVectorvector ()
 Return the data-vector vector.
 
std::size_t size () const
 Return the current size of the vector_.
 
template<class SizeInfo >
void init (SizeInfo const &sizeInfo, bool clear)
 Resize the vector_ to the size given by the sizeProvider.
 
template<class MultiIndex >
value_typeat (MultiIndex const &idx)
 Access the entry idx of the vector_ with write-access.
 
template<class MultiIndex >
value_type const & at (MultiIndex const &idx) const
 Access the entry idx of the vector_ with read-access.
 
- Public Member Functions inherited from VectorBase< ISTLBlockVector< T > >
void finish ()
 
void synchronize ()
 
void insert (MultiIndex const &idx, ValueType const &value, Assign assign)
 Insert or add value at position idx, using the passed assign functor.
 
void gather (IndexRange const &localInd, OutputIterator buffer) const
 Gather values from the vector into the output range buffer decribed as an output iterator.
 
void scatter (IndexRange const &localInd, LocalVec const &vec, FakeContainer< bool, true >, Assign assign)
 Scatter the values from the local vec into the container using the passed assign functor.
 
void scatter (IndexRange const &localInd, LocalVec const &vec, MaskRange const &mask, Assign assign)
 
void forEach (IndexRange const &localInd, Func &&f) const
 Apply the functor f to all entries of the list of multi-indices localInd.
 
void forEach (IndexRange const &localInd, Func &&f)
 Apply the functor f to all entries of the list of multi-indices localInd.
 
void forEach (Func &&f)
 Apply the functor f to all entries of the container.
 
void forEach (Func &&f) const
 Apply the functor f to all entries of the container.
 

Additional Inherited Members

- Protected Member Functions inherited from VectorBase< ISTLBlockVector< T > >
 VectorBase ()=default
 

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