MADNESS
0.10.1
|
Public Member Functions | |
TestPmap (World &world, int shift) | |
ProcessID | owner (const int &key) const |
Maps key to processor. More... | |
Public Member Functions inherited from madness::WorldDCPmapInterface< int > | |
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< int >> &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 |
const int | shift |
Additional Inherited Members | |
Public Types inherited from madness::WorldDCPmapInterface< int > | |
typedef WorldDCRedistributeInterface< int > * | ptrT |
|
inline |
|
inlinevirtual |
Maps key to processor.
[in] | key | Key for container |
Implements madness::WorldDCPmapInterface< int >.
References shift.
|
private |
|
private |