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

Storage of thread iterators using domain decomposition. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/misc/threads/threaditeratorstorage.hh>

Inheritance diagram for Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >:
Inheritance graph

Public Types

typedef ThreadIterator ThreadIteratorType
 
typedef ThreadIterator::GridPartType GridPartType
 
typedef GridPartType::IndexSetType IndexSetType
 
typedef ThreadIteratorType::FilterType FilterType
 
typedef ThreadIteratorType::IteratorType IteratorType
 
typedef IteratorType::Entity EntityType
 

Public Member Functions

 ThreadIteratorStorageBase (const GridPartType &gridPart)
 contructor creating thread iterators More...
 
 ~ThreadIteratorStorageBase ()
 destructor removing instance of thread iterators More...
 
const FilterTypefilter (const int thread) const
 return filter for given thread More...
 
void update ()
 update internal list of iterators More...
 
void setMasterRatio (const double ratio)
 set ratio between master thread and other threads in comp time More...
 
IteratorType begin () const
 return begin iterator for current thread More...
 
IteratorType end () const
 return end iterator for current thread More...
 
int index (const EntityType &entity) const
 return thread number this entity belongs to More...
 
int thread (const EntityType &entity) const
 return thread number this entity belongs to More...
 

Static Public Attributes

static const PartitionIteratorType pitype = ThreadIteratorType :: pitype
 

Protected Attributes

ThreadIteratorTypeiterators_
 

Detailed Description

template<class ThreadIterator>
class Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >

Storage of thread iterators using domain decomposition.

Member Typedef Documentation

template<class ThreadIterator>
typedef IteratorType :: Entity Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::EntityType

Constructor & Destructor Documentation

template<class ThreadIterator>
Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::ThreadIteratorStorageBase ( const GridPartType gridPart)
inlineexplicit

contructor creating thread iterators

template<class ThreadIterator>
Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::~ThreadIteratorStorageBase ( )
inline

destructor removing instance of thread iterators

Member Function Documentation

template<class ThreadIterator>
IteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::begin ( ) const
inline

return begin iterator for current thread

template<class ThreadIterator>
IteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::end ( ) const
inline

return end iterator for current thread

template<class ThreadIterator>
const FilterType& Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::filter ( const int  thread) const
inline

return filter for given thread

template<class ThreadIterator>
int Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::index ( const EntityType entity) const
inline

return thread number this entity belongs to

template<class ThreadIterator>
void Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::setMasterRatio ( const double  ratio)
inline

set ratio between master thread and other threads in comp time

template<class ThreadIterator>
int Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::thread ( const EntityType entity) const
inline

return thread number this entity belongs to

template<class ThreadIterator>
void Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::update ( )
inline

Member Data Documentation

template<class ThreadIterator>
ThreadIteratorType& Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::iterators_
protected
template<class ThreadIterator>
const PartitionIteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::pitype = ThreadIteratorType :: pitype
static

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