MADNESS
0.10.1
|
#include <lbdeux.h>
Public Member Functions | |
LBDeuxPmap (const std::vector< pairT > &v) | |
ProcessID | owner (const keyT &key) const |
Maps key to processor. More... | |
void | print () const |
Public Member Functions inherited from madness::WorldDCPmapInterface< Key< NDIM > > | |
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... | |
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< NDIM > >> &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 Types | |
typedef mapT::const_iterator | iteratorT |
typedef Key< NDIM > | keyT |
typedef std::map< keyT, ProcessID > | mapT |
typedef std::pair< keyT, ProcessID > | pairT |
Private Attributes | |
mapT | map |
Additional Inherited Members | |
Public Types inherited from madness::WorldDCPmapInterface< Key< NDIM > > | |
typedef WorldDCRedistributeInterface< Key< NDIM > > * | ptrT |
|
private |
|
private |
|
private |
|
private |
|
inline |
References madness::LBDeuxPmap< NDIM >::map, and v.
|
inlinevirtual |
Maps key to processor.
[in] | key | Key for container |
Implements madness::WorldDCPmapInterface< Key< NDIM > >.
References madness::Key< NDIM >::level(), madness::LBDeuxPmap< NDIM >::map, madness::Key< NDIM >::parent(), and madness::print().
|
inlinevirtual |
Reimplemented from madness::WorldDCPmapInterface< Key< NDIM > >.
References madness::print().
|
private |
Referenced by madness::LBDeuxPmap< NDIM >::LBDeuxPmap(), and madness::LBDeuxPmap< NDIM >::owner().