MADNESS  0.10.1
Public Member Functions | Private Attributes | List of all members
madness::SimplePmap< keyT > Class Template Reference

A simple process map. More...

#include <funcimpl.h>

Inheritance diagram for madness::SimplePmap< keyT >:
Inheritance graph
[legend]
Collaboration diagram for madness::SimplePmap< keyT >:
Collaboration graph
[legend]

Public Member Functions

 SimplePmap (World &world)
 
ProcessID owner (const keyT &key) const
 Maps key to processor. More...
 
- Public Member Functions inherited from madness::WorldDCPmapInterface< keyT >
virtual ~WorldDCPmapInterface ()
 
void deregister_callback (ptrT ptr)
 Deregisters object for receipt of redistribute callbacks. More...
 
std::size_t global_size (World &world) const
 Counts global number of entries in all containers associated with this process map. More...
 
std::size_t local_size () const
 Counts local number of entries in all containers associated with this process map. More...
 
virtual void print () const
 
void print_data_sizes (World &world, const std::string msg="") const
 Prints size info to std::cout. More...
 
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. More...
 
void register_callback (ptrT ptr)
 Registers object for receipt of redistribute callbacks. More...
 

Private Attributes

const ProcessID me
 
const int nproc
 

Additional Inherited Members

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

Detailed Description

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

A simple process map.

Constructor & Destructor Documentation

◆ SimplePmap()

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

Member Function Documentation

◆ owner()

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

Maps key to processor.

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

Implements madness::WorldDCPmapInterface< keyT >.

References madness::SimplePmap< keyT >::nproc.

Member Data Documentation

◆ me

template<typename keyT >
const ProcessID madness::SimplePmap< keyT >::me
private

◆ nproc

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

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