MADNESS 0.10.1
madness::LevelPmap< keyT > Class Template Reference

A pmap that locates children on odd levels with their even level parents. More...

#include <funcimpl.h>

Inheritance diagram for madness::LevelPmap< keyT >:
Collaboration diagram for madness::LevelPmap< keyT >:

Public Member Functions

 LevelPmap ()
 LevelPmap (World &world)
ProcessID owner (const keyT &key) const
 Find the owner of a given key.
Public Member Functions inherited from madness::WorldDCPmapInterface< keyT >
virtual ~WorldDCPmapInterface ()
void deregister_callback (ptrT ptr)
 Deregisters object for receipt of redistribute callbacks.
virtual DistributionType distribution_type () const
 by default the map is distributed
std::size_t global_size (World &world) const
 Counts global number of entries in all containers associated with this process map.
std::size_t local_size () const
 Counts local number of entries in all containers associated with this process map.
virtual void print () const
void print_data_sizes (World &world, const std::string msg="") const
 Prints size info to std::cout.
void redistribute (World &world, const std::shared_ptr< WorldDCPmapInterface< keyT > > &newpmap)
 Invoking this switches all registered objects from this process map to the new one.
void register_callback (ptrT ptr)
 Registers object for receipt of redistribute callbacks.
virtual ProcessID single_owner () const

Private Attributes

const int nproc

Additional Inherited Members

Public Types inherited from madness::WorldDCPmapInterface< keyT >
typedef WorldDCRedistributeInterface< keyT > * ptrT

Detailed Description

template<typename keyT>
class madness::LevelPmap< keyT >

A pmap that locates children on odd levels with their even level parents.

Constructor & Destructor Documentation

◆ LevelPmap() [1/2]

template<typename keyT>
madness::LevelPmap< keyT >::LevelPmap ( )
inline

References nproc.

◆ LevelPmap() [2/2]

template<typename keyT>
madness::LevelPmap< keyT >::LevelPmap ( World & world)
inline

References nproc.

Member Function Documentation

◆ owner()

template<typename keyT>
ProcessID madness::LevelPmap< keyT >::owner ( const keyT & key) const
inlinevirtual

Find the owner of a given key.

Implements madness::WorldDCPmapInterface< keyT >.

References Key::hash(), madness::Key< NDIM >::hash(), nproc, and Key::parent().

Member Data Documentation

◆ nproc

template<typename keyT>
const int madness::LevelPmap< keyT >::nproc
private

Referenced by LevelPmap(), LevelPmap(), and owner().


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