dune-pdelab  2.4-dev
Public Types | Public Member Functions | List of all members
Dune::PDELab::simple::VectorContainer< GFS, C > Class Template Reference

#include <dune/pdelab/backend/simple/vector.hh>

Inheritance diagram for Dune::PDELab::simple::VectorContainer< GFS, C >:
Inheritance graph

Public Types

typedef C Container
 
typedef Container::value_type ElementType
 
typedef ElementType E
 
typedef ElementType field_type
 
typedef GFS GridFunctionSpace
 
typedef Container::size_type size_type
 
typedef GFS::Ordering::Traits::ContainerIndex ContainerIndex
 
typedef Container::iterator iterator
 
typedef Container::const_iterator const_iterator
 
template<typename LFSCache >
using LocalView = UncachedVectorView< VectorContainer, LFSCache >
 
template<typename LFSCache >
using ConstLocalView = ConstUncachedVectorView< const VectorContainer, LFSCache >
 

Public Member Functions

 VectorContainer (const VectorContainer &rhs)
 
 VectorContainer (const GFS &gfs, Backend::attached_container=Backend::attached_container())
 
 VectorContainer (const GFS &gfs, Backend::unattached_container)
 Creates a VectorContainer without allocating storage. More...
 
 VectorContainer (const GFS &gfs, Container &container)
 Constructs an VectorContainer for an explicitly given vector object. More...
 
 VectorContainer (const GFS &gfs, const E &e)
 
void detach ()
 
void attach (std::shared_ptr< Container > container)
 
bool attached () const
 
const std::shared_ptr< Container > & storage () const
 
size_type N () const
 
VectorContaineroperator= (const VectorContainer &r)
 
VectorContaineroperator= (const E &e)
 
VectorContaineroperator*= (const E &e)
 
VectorContaineroperator+= (const E &e)
 
VectorContaineroperator+= (const VectorContainer &y)
 
VectorContaineroperator-= (const VectorContainer &y)
 
Eoperator[] (const ContainerIndex &ci)
 
const Eoperator[] (const ContainerIndex &ci) const
 
Dune::template FieldTraits< E >::real_type two_norm () const
 
Dune::template FieldTraits< E >::real_type one_norm () const
 
Dune::template FieldTraits< E >::real_type infinity_norm () const
 
E operator* (const VectorContainer &y) const
 
E dot (const VectorContainer &y) const
 
VectorContaineraxpy (const E &a, const VectorContainer &y)
 
Containerbase ()
 
const Containerbase () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_t flatsize () const
 
const GFS & gridFunctionSpace () const
 

Member Typedef Documentation

template<typename GFS , typename C >
typedef Container::const_iterator Dune::PDELab::simple::VectorContainer< GFS, C >::const_iterator
template<typename GFS , typename C >
template<typename LFSCache >
using Dune::PDELab::simple::VectorContainer< GFS, C >::ConstLocalView = ConstUncachedVectorView<const VectorContainer,LFSCache>
template<typename GFS , typename C >
typedef C Dune::PDELab::simple::VectorContainer< GFS, C >::Container
template<typename GFS , typename C >
typedef GFS::Ordering::Traits::ContainerIndex Dune::PDELab::simple::VectorContainer< GFS, C >::ContainerIndex
template<typename GFS , typename C >
typedef ElementType Dune::PDELab::simple::VectorContainer< GFS, C >::E
template<typename GFS , typename C >
typedef Container::value_type Dune::PDELab::simple::VectorContainer< GFS, C >::ElementType
template<typename GFS , typename C >
typedef ElementType Dune::PDELab::simple::VectorContainer< GFS, C >::field_type
template<typename GFS , typename C >
typedef GFS Dune::PDELab::simple::VectorContainer< GFS, C >::GridFunctionSpace
template<typename GFS , typename C >
typedef Container::iterator Dune::PDELab::simple::VectorContainer< GFS, C >::iterator
template<typename GFS , typename C >
template<typename LFSCache >
using Dune::PDELab::simple::VectorContainer< GFS, C >::LocalView = UncachedVectorView<VectorContainer,LFSCache>
template<typename GFS , typename C >
typedef Container::size_type Dune::PDELab::simple::VectorContainer< GFS, C >::size_type

Constructor & Destructor Documentation

template<typename GFS , typename C >
Dune::PDELab::simple::VectorContainer< GFS, C >::VectorContainer ( const VectorContainer< GFS, C > &  rhs)
inline
template<typename GFS , typename C >
Dune::PDELab::simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
Backend::attached_container  = Backend::attached_container() 
)
inline
template<typename GFS , typename C >
Dune::PDELab::simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
Backend::unattached_container   
)
inline

Creates a VectorContainer without allocating storage.

template<typename GFS , typename C >
Dune::PDELab::simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
Container container 
)
inline

Constructs an VectorContainer for an explicitly given vector object.

Parameters
gfsGridFunctionSpace that determines the size and the blocking of the vector
containerThe actual container class
template<typename GFS , typename C >
Dune::PDELab::simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
const E e 
)
inline

Member Function Documentation

template<typename GFS , typename C >
void Dune::PDELab::simple::VectorContainer< GFS, C >::attach ( std::shared_ptr< Container container)
inline
template<typename GFS , typename C >
bool Dune::PDELab::simple::VectorContainer< GFS, C >::attached ( ) const
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::axpy ( const E a,
const VectorContainer< GFS, C > &  y 
)
inline
template<typename GFS , typename C >
Container& Dune::PDELab::simple::VectorContainer< GFS, C >::base ( )
inline
template<typename GFS , typename C >
const Container& Dune::PDELab::simple::VectorContainer< GFS, C >::base ( ) const
inline
template<typename GFS , typename C >
iterator Dune::PDELab::simple::VectorContainer< GFS, C >::begin ( )
inline
template<typename GFS , typename C >
const_iterator Dune::PDELab::simple::VectorContainer< GFS, C >::begin ( ) const
inline
template<typename GFS , typename C >
void Dune::PDELab::simple::VectorContainer< GFS, C >::detach ( )
inline
template<typename GFS , typename C >
E Dune::PDELab::simple::VectorContainer< GFS, C >::dot ( const VectorContainer< GFS, C > &  y) const
inline
template<typename GFS , typename C >
iterator Dune::PDELab::simple::VectorContainer< GFS, C >::end ( )
inline
template<typename GFS , typename C >
const_iterator Dune::PDELab::simple::VectorContainer< GFS, C >::end ( ) const
inline
template<typename GFS , typename C >
size_t Dune::PDELab::simple::VectorContainer< GFS, C >::flatsize ( ) const
inline
template<typename GFS , typename C >
const GFS& Dune::PDELab::simple::VectorContainer< GFS, C >::gridFunctionSpace ( ) const
inline
template<typename GFS , typename C >
Dune::template FieldTraits<E>::real_type Dune::PDELab::simple::VectorContainer< GFS, C >::infinity_norm ( ) const
inline
template<typename GFS , typename C >
size_type Dune::PDELab::simple::VectorContainer< GFS, C >::N ( ) const
inline
template<typename GFS , typename C >
Dune::template FieldTraits<E>::real_type Dune::PDELab::simple::VectorContainer< GFS, C >::one_norm ( ) const
inline
template<typename GFS , typename C >
E Dune::PDELab::simple::VectorContainer< GFS, C >::operator* ( const VectorContainer< GFS, C > &  y) const
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::operator*= ( const E e)
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::operator+= ( const E e)
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::operator+= ( const VectorContainer< GFS, C > &  y)
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::operator-= ( const VectorContainer< GFS, C > &  y)
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::operator= ( const VectorContainer< GFS, C > &  r)
inline
template<typename GFS , typename C >
VectorContainer& Dune::PDELab::simple::VectorContainer< GFS, C >::operator= ( const E e)
inline

References e.

template<typename GFS , typename C >
E& Dune::PDELab::simple::VectorContainer< GFS, C >::operator[] ( const ContainerIndex ci)
inline
template<typename GFS , typename C >
const E& Dune::PDELab::simple::VectorContainer< GFS, C >::operator[] ( const ContainerIndex ci) const
inline
template<typename GFS , typename C >
const std::shared_ptr<Container>& Dune::PDELab::simple::VectorContainer< GFS, C >::storage ( ) const
inline
template<typename GFS , typename C >
Dune::template FieldTraits<E>::real_type Dune::PDELab::simple::VectorContainer< GFS, C >::two_norm ( ) const
inline

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