dune-fem  2.8-git
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< GridPart, InteriorBorder_Partition > ThreadIteratorType
 
typedef ThreadIterator< GridPart, InteriorBorder_Partition > ::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 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
 

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

typedef IteratorType :: Entity Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::EntityType
inherited

◆ FilterType

typedef ThreadIteratorType :: FilterType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::FilterType
inherited

◆ GridPartType

typedef ThreadIterator< GridPart, InteriorBorder_Partition > :: GridPartType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::GridPartType
inherited

◆ IndexSetType

typedef GridPartType :: IndexSetType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::IndexSetType
inherited

◆ IteratorType

typedef ThreadIteratorType :: IteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::IteratorType
inherited

◆ ThreadIteratorType

typedef ThreadIterator< GridPart, InteriorBorder_Partition > Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::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()

IteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::begin ( ) const
inlineinherited

return begin iterator for current thread

◆ end()

IteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::end ( ) const
inlineinherited

return end iterator for current thread

◆ filter()

const FilterType& Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::filter ( const int  thread) const
inlineinherited

return filter for given thread

◆ index()

int Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::index ( const EntityType entity) const
inlineinherited

return thread number this entity belongs to

◆ iterators()

ThreadIteratorType& Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::iterators ( ) const
inlineinherited

◆ setMasterRatio()

void Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::setMasterRatio ( const double  ratio)
inlineinherited

set ratio between master thread and other threads in comp time

◆ thread()

int Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::thread ( const EntityType entity) const
inlineinherited

return thread number this entity belongs to

◆ update()

void Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::update ( )
inlineinherited

update internal list of iterators

Member Data Documentation

◆ iterators_

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

◆ pitype

const PartitionIteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, InteriorBorder_Partition > >::pitype
staticinherited

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