MADNESS 0.10.1
madness::WorldDCLocalPmap< keyT, hashfunT > Class Template Reference

Local process map will always return the current process as owner. More...

#include <worlddc.h>

Inheritance diagram for madness::WorldDCLocalPmap< keyT, hashfunT >:
Collaboration diagram for madness::WorldDCLocalPmap< keyT, hashfunT >:

Public Member Functions

 WorldDCLocalPmap (World &world)
DistributionType distribution_type () const override
 by default the map is distributed
ProcessID owner (const keyT &key) const override
 Maps key to processor.
Public Member Functions inherited from madness::WorldDCPmapInterface< keyT >
virtual ~WorldDCPmapInterface ()
void deregister_callback (ptrT ptr)
 Deregisters object for receipt of redistribute callbacks.
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

ProcessID me

Additional Inherited Members

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

Detailed Description

template<typename keyT, typename hashfunT = Hash<keyT>>
class madness::WorldDCLocalPmap< keyT, hashfunT >

Local process map will always return the current process as owner.

Constructor & Destructor Documentation

◆ WorldDCLocalPmap()

template<typename keyT, typename hashfunT = Hash<keyT>>
madness::WorldDCLocalPmap< keyT, hashfunT >::WorldDCLocalPmap ( World & world)
inline

References me.

Member Function Documentation

◆ distribution_type()

template<typename keyT, typename hashfunT = Hash<keyT>>
DistributionType madness::WorldDCLocalPmap< keyT, hashfunT >::distribution_type ( ) const
inlineoverridevirtual

by default the map is distributed

Reimplemented from madness::WorldDCPmapInterface< keyT >.

References madness::RankReplicated.

◆ owner()

template<typename keyT, typename hashfunT = Hash<keyT>>
ProcessID madness::WorldDCLocalPmap< keyT, hashfunT >::owner ( const keyT & key) const
inlineoverridevirtual

Maps key to processor.

Parameters
[in]keyKey for container
Returns
Processor that logically owns the key

Implements madness::WorldDCPmapInterface< keyT >.

References me.

Member Data Documentation

◆ me

template<typename keyT, typename hashfunT = Hash<keyT>>
ProcessID madness::WorldDCLocalPmap< keyT, hashfunT >::me
private

Referenced by WorldDCLocalPmap(), and owner().


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