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. | |
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. | |
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. | |
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< Key< NDIM > > > &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. | |
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::LBDeuxPmap< NDIM >::owner(), madness::Key< NDIM >::parent(), and madness::print().
Referenced by madness::LBDeuxPmap< NDIM >::owner().
|
inlinevirtual |
Reimplemented from madness::WorldDCPmapInterface< Key< NDIM > >.
References madness::print().
|
private |
Referenced by madness::LBDeuxPmap< NDIM >::LBDeuxPmap(), and madness::LBDeuxPmap< NDIM >::owner().