dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
Dune::Fem::ThreadIteratorStorage< GridPart, pitype > Class Template Reference

Storage of thread iterators. More...

#include <dune/fem/misc/threads/threaditerator.hh>

Inheritance diagram for Dune::Fem::ThreadIteratorStorage< GridPart, pitype >:
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

 ThreadIteratorStorage (const GridPart &gridPart)
 
ThreadIteratorTypeiterators () const
 
const FilterTypefilter (const int thread) const
 return filter for given thread
 
void update ()
 update internal list of iterators
 
void setMasterRatio (const double ratio)
 set ratio between master thread and other threads in comp time
 
IteratorType begin () const
 return begin iterator for current thread
 
IteratorType end () const
 return end iterator for current thread
 
int index (const EntityType &entity) const
 return thread number this entity belongs to
 
int thread (const EntityType &entity) const
 return thread number this entity belongs to
 

Static Public Attributes

static const PartitionIteratorType pitype = ThreadIteratorType :: pitype
 

Protected Attributes

std::unique_ptr< ThreadIteratorType, typename IteratorProviderType::Deleteriterators_
 

Detailed Description

template<class GridPart, PartitionIteratorType pitype = InteriorBorder_Partition>
class Dune::Fem::ThreadIteratorStorage< GridPart, pitype >

Storage of thread iterators.

Member Typedef Documentation

◆ EntityType

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

◆ FilterType

◆ GridPartType

◆ IndexSetType

template<class ThreadIterator >
typedef GridPartType::IndexSetType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::IndexSetType
inherited

◆ IteratorType

◆ ThreadIteratorType

template<class ThreadIterator >
typedef ThreadIterator Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::ThreadIteratorType
inherited

Constructor & Destructor Documentation

◆ ThreadIteratorStorage()

template<class GridPart , PartitionIteratorType pitype = InteriorBorder_Partition>
Dune::Fem::ThreadIteratorStorage< GridPart, pitype >::ThreadIteratorStorage ( const GridPart &  gridPart)
inline

Member Function Documentation

◆ begin()

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

return begin iterator for current thread

◆ end()

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

return end iterator for current thread

◆ filter()

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

return filter for given thread

◆ index()

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

return thread number this entity belongs to

◆ iterators()

template<class ThreadIterator >
ThreadIteratorType & Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::iterators ( ) const
inlineinherited

◆ setMasterRatio()

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

set ratio between master thread and other threads in comp time

◆ thread()

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

return thread number this entity belongs to

◆ update()

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

update internal list of iterators

Member Data Documentation

◆ iterators_

template<class ThreadIterator >
std::unique_ptr< ThreadIteratorType, typename IteratorProviderType::Deleter> Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::iterators_
protectedinherited

◆ pitype

template<class ThreadIterator >
const PartitionIteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator >::pitype = ThreadIteratorType :: pitype
staticinherited

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