dune-istl  3.0-git
Classes | Public Types | Public Member Functions | List of all members

A hierarchy of coantainers (e.g. matrices or vectors) More...

#include <dune/istl/paamg/hierarchy.hh>

Inheritance diagram for Dune::Amg::Hierarchy< T, A >:
Inheritance graph

Classes

class  LevelIterator
 Iterator over the levels in the hierarchy. More...
 

Public Types

typedef T MemberType
 The type of the container we store. More...
 
typedef A::template rebind< Element >::other Allocator
 If true only the method addCoarser will be usable otherwise only the method addFiner will be usable. More...
 
typedef ConstructionTraits< T >::Arguments Arguments
 
typedef LevelIterator< Hierarchy< T, A >, T > Iterator
 Type of the mutable iterator. More...
 
typedef LevelIterator< const Hierarchy< T, A >, const T > ConstIterator
 Type of the const iterator. More...
 

Public Member Functions

 Hierarchy (MemberType &first)
 Construct a new hierarchy. More...
 
 Hierarchy (MemberType *first)
 Construct a new hierarchy. More...
 
 Hierarchy ()
 Construct a new empty hierarchy. More...
 
 Hierarchy (const Hierarchy &other)
 Copy constructor. More...
 
void addCoarser (Arguments &args)
 Add an element on a coarser level. More...
 
void addRedistributedOnCoarsest (Arguments &args)
 
void addFiner (Arguments &args)
 Add an element on a finer level. More...
 
Iterator finest ()
 Get an iterator positioned at the finest level. More...
 
Iterator coarsest ()
 Get an iterator positioned at the coarsest level. More...
 
ConstIterator finest () const
 Get an iterator positioned at the finest level. More...
 
ConstIterator coarsest () const
 Get an iterator positioned at the coarsest level. More...
 
std::size_t levels () const
 Get the number of levels in the hierarchy. More...
 
 ~Hierarchy ()
 Destructor. More...
 

Detailed Description

template<typename T, typename A = std::allocator<T>>
class Dune::Amg::Hierarchy< T, A >

A hierarchy of coantainers (e.g. matrices or vectors)

Because sometimes a redistribution of the parallel data might be advisable one can add redistributed version of the container at each level.

Member Typedef Documentation

◆ Allocator

template<typename T, typename A = std::allocator<T>>
typedef A::template rebind<Element>::other Dune::Amg::Hierarchy< T, A >::Allocator

If true only the method addCoarser will be usable otherwise only the method addFiner will be usable.

The allocator to use for the list elements.

◆ Arguments

template<typename T, typename A = std::allocator<T>>
typedef ConstructionTraits<T>::Arguments Dune::Amg::Hierarchy< T, A >::Arguments

◆ ConstIterator

template<typename T, typename A = std::allocator<T>>
typedef LevelIterator<const Hierarchy<T,A>, const T> Dune::Amg::Hierarchy< T, A >::ConstIterator

Type of the const iterator.

◆ Iterator

template<typename T, typename A = std::allocator<T>>
typedef LevelIterator<Hierarchy<T,A>,T> Dune::Amg::Hierarchy< T, A >::Iterator

Type of the mutable iterator.

◆ MemberType

template<typename T, typename A = std::allocator<T>>
typedef T Dune::Amg::Hierarchy< T, A >::MemberType

The type of the container we store.


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