MADNESS  0.10.1
Public Member Functions | Private Attributes | List of all members
LevelPmap Class Reference

#include <electronicstructureapp.h>

Inheritance diagram for LevelPmap:
Inheritance graph
[legend]
Collaboration diagram for LevelPmap:
Collaboration graph
[legend]

Public Member Functions

 LevelPmap ()
 
 LevelPmap ()
 
 LevelPmap (World &world)
 
 LevelPmap (World &world)
 
ProcessID owner (const Key< 3 > &key) const
 Find the owner of a given key. More...
 
ProcessID owner (const Key< 3 > &key) const
 Maps key to processor. More...
 
- Public Member Functions inherited from madness::WorldDCPmapInterface< Key< 3 > >
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< Key< 3 > >> &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 int nproc
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ LevelPmap() [1/4]

LevelPmap::LevelPmap ( )
inline

◆ LevelPmap() [2/4]

LevelPmap::LevelPmap ( World &  world)
inline

◆ LevelPmap() [3/4]

LevelPmap::LevelPmap ( )
inline

◆ LevelPmap() [4/4]

LevelPmap::LevelPmap ( World world)
inline

Member Function Documentation

◆ owner() [1/2]

ProcessID LevelPmap::owner ( const Key< 3 > &  key) const
inline

Find the owner of a given key.

References Key::hash(), nproc, and Key::parent().

◆ owner() [2/2]

ProcessID LevelPmap::owner ( const Key< 3 > &  key) const
inlinevirtual

Maps key to processor.

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

Implements madness::WorldDCPmapInterface< Key< 3 > >.

References madness::Key< NDIM >::hash(), madness::Key< NDIM >::level(), and madness::LevelPmap< keyT >::nproc.

Member Data Documentation

◆ nproc

const int LevelPmap::nproc
private

Referenced by owner().


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