dune-fem  2.4.1-rc
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 </local/tomalk/somewhere/tmp/dune-fem/dune/fem/misc/threads/threaditerator.hh>

Inheritance diagram for Dune::Fem::ThreadIteratorStorage< GridPart, pitype >:
Inheritance graph

Public Types

typedef ThreadIterator< GridPart, pitypeThreadIteratorType
 
typedef ThreadIterator< GridPart, pitype >::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)
 
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

ThreadIteratorTypeiterators_
 

Detailed Description

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

Storage of thread iterators.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Member Function Documentation

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

return begin iterator for current thread

References Dune::Fem::ThreadIterator< GridPart, ptype >::begin().

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

return end iterator for current thread

References Dune::Fem::ThreadIterator< GridPart, ptype >::end().

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

return filter for given thread

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

return thread number this entity belongs to

References Dune::Fem::ThreadIterator< GridPart, ptype >::index().

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

set ratio between master thread and other threads in comp time

References Dune::Fem::ThreadIterator< GridPart, ptype >::setMasterRatio().

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

return thread number this entity belongs to

References Dune::Fem::ThreadIterator< GridPart, ptype >::thread().

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

update internal list of iterators

References Dune::Fem::ThreadIterator< GridPart, ptype >::update().

Member Data Documentation

ThreadIteratorType& Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, pitype > >::iterators_
protectedinherited
const PartitionIteratorType Dune::Fem::ThreadIteratorStorageBase< ThreadIterator< GridPart, pitype > >::pitype
staticinherited

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