dune-fem  2.4.1-rc
Public Member Functions | Protected Member Functions | List of all members
Dune::Fem::CommunicationIndexMap Class Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/common/commindexmap.hh>

Public Member Functions

 CommunicationIndexMap ()
 constructor creating empty map More...
 
const IndexType & operator[] (const size_t i) const
 return index map for entry i More...
 
void clear ()
 clear index map More...
 
template<class GlobalKey >
void insert (const std::vector< GlobalKey > &idx)
 
template<class GlobalKey >
void set (const std::set< GlobalKey > &idxSet)
 insert sorted set of indices More...
 
size_t size () const
 return size of map More...
 
void print (std::ostream &s, int rank) const
 print map for debugging only More...
 
template<class CommBuffer >
void writeToBuffer (CommBuffer &buffer) const
 write all indices to buffer More...
 
template<class CommBuffer >
void readFromBuffer (CommBuffer &buffer)
 read all indices from buffer More...
 

Protected Member Functions

void resize (size_t size)
 resize map with size size More...
 
void reserve (size_t size)
 

Constructor & Destructor Documentation

Dune::Fem::CommunicationIndexMap::CommunicationIndexMap ( )
inline

constructor creating empty map

References Dune::Fem::MutableArray< T, AllocatorType >::setMemoryFactor().

Member Function Documentation

void Dune::Fem::CommunicationIndexMap::clear ( )
inline

clear index map

References resize().

Referenced by Dune::Fem::SlaveDofs< Space, Mapper >::initialize().

template<class GlobalKey >
void Dune::Fem::CommunicationIndexMap::insert ( const std::vector< GlobalKey > &  idx)
inline

append index vector with idx result is unsorted

References resize(), size(), and Dune::Fem::StaticArray< T >::size().

const IndexType& Dune::Fem::CommunicationIndexMap::operator[] ( const size_t  i) const
inline

return index map for entry i

References size().

void Dune::Fem::CommunicationIndexMap::print ( std::ostream &  s,
int  rank 
) const
inline

print map for debugging only

References size().

template<class CommBuffer >
void Dune::Fem::CommunicationIndexMap::readFromBuffer ( CommBuffer &  buffer)
inline

read all indices from buffer

References Dune::Fem::MutableArray< T, AllocatorType >::resize().

void Dune::Fem::CommunicationIndexMap::reserve ( size_t  size)
inlineprotected
void Dune::Fem::CommunicationIndexMap::resize ( size_t  size)
inlineprotected

resize map with size size

References Dune::Fem::MutableArray< T, AllocatorType >::resize().

Referenced by clear(), insert(), and set().

template<class GlobalKey >
void Dune::Fem::CommunicationIndexMap::set ( const std::set< GlobalKey > &  idxSet)
inline

insert sorted set of indices

References resize().

Referenced by Dune::Fem::SlaveDofs< Space, Mapper >::finalize().

size_t Dune::Fem::CommunicationIndexMap::size ( ) const
inline
template<class CommBuffer >
void Dune::Fem::CommunicationIndexMap::writeToBuffer ( CommBuffer &  buffer) const
inline

write all indices to buffer

References Dune::Fem::StaticArray< T >::size().


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