dune-functions 2.9.0
Public Types | Public Member Functions | Protected Attributes | List of all members
Dune::Functions::SizeInfo< B > Class Template Reference

A class encapsulating size information. More...

#include <dune/functions/functionspacebases/sizeinfo.hh>

Public Types

using Basis = B
 
using size_type = typename Basis::size_type
 
using SizePrefix = typename Basis::SizePrefix
 

Public Member Functions

 SizeInfo (const Basis &basis)
 Construct from basis. More...
 
size_type operator() (const SizePrefix &prefix) const
 Return number possible values for next position in multi index. More...
 
size_type size (const SizePrefix &prefix) const
 Return number possible values for next position in multi index. More...
 
 operator size_type () const
 

Protected Attributes

const Basisbasis_
 

Detailed Description

template<class B>
class Dune::Functions::SizeInfo< B >

A class encapsulating size information.

This class encapsulates size information of a basis.

We may want to return this or a similar class when calling basis.size() without arguments. Until we decided on this, we can use sizeInfo(basis) and use the result as size provider for a VectorBackend.

Member Typedef Documentation

◆ Basis

template<class B >
using Dune::Functions::SizeInfo< B >::Basis = B

◆ size_type

template<class B >
using Dune::Functions::SizeInfo< B >::size_type = typename Basis::size_type

◆ SizePrefix

template<class B >
using Dune::Functions::SizeInfo< B >::SizePrefix = typename Basis::SizePrefix

Constructor & Destructor Documentation

◆ SizeInfo()

template<class B >
Dune::Functions::SizeInfo< B >::SizeInfo ( const Basis basis)
inline

Construct from basis.

Member Function Documentation

◆ operator size_type()

template<class B >
Dune::Functions::SizeInfo< B >::operator size_type ( ) const
inline

◆ operator()()

template<class B >
size_type Dune::Functions::SizeInfo< B >::operator() ( const SizePrefix prefix) const
inline

Return number possible values for next position in multi index.

◆ size()

template<class B >
size_type Dune::Functions::SizeInfo< B >::size ( const SizePrefix prefix) const
inline

Return number possible values for next position in multi index.

This shall vanish. It's just here such that this can be used as size provider n place of the basis.

Member Data Documentation

◆ basis_

template<class B >
const Basis* Dune::Functions::SizeInfo< B >::basis_
protected

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