|
MADNESS 0.10.1
|
Procmap implemented using Tree of TreeCoords. More...
#include <mypmap.h>


Public Member Functions | |
| MyPmap () | |
| MyPmap (const MyPmap< D > &other) | |
| MyPmap (World &world) | |
| MyPmap (World &world, std::vector< TreeCoords< D > > v) | |
| MyPmap (World &world, unsigned int map_type, int n=100) | |
| MyPmap< D > & | operator= (const MyPmap< D > &other) |
| ProcessID | owner (const KeyD &key) const |
| Find the owner of a given key. | |
| void | print () const |
| Public Member Functions inherited from madness::WorldDCPmapInterface< Key< D > > | |
| virtual | ~WorldDCPmapInterface () |
| void | deregister_callback (ptrT ptr) |
| Deregisters object for receipt of redistribute callbacks. | |
| virtual DistributionType | distribution_type () const |
| by default the map is distributed | |
| 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< D > > > &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. | |
| virtual ProcessID | single_owner () const |
Static Public Member Functions | |
| static bool | costmapcmp (const std::pair< KeyD, double > &a, const std::pair< KeyD, double > &b) |
Private Types | |
| typedef Key< D > | KeyD |
Private Member Functions | |
| void | build_tree_map (std::vector< TreeCoords< D > > v) |
| private method that builds the Tree underlying the procmap | |
| ProcessID | not_so_simple_hash (const KeyD &key) const |
| void | prepare_not_so_simple_map (World &world) |
| ProcessID | simple_hash (const KeyD &key) const |
Private Attributes | |
| unsigned int | map_type |
| const int | n |
| const int | nproc |
| Tensor< ProcessID > | simple_key_map |
| std::shared_ptr< ProcMapImpl< D > > | tree_map |
Additional Inherited Members | |
| Public Types inherited from madness::WorldDCPmapInterface< Key< D > > | |
| typedef WorldDCRedistributeInterface< Key< D > > * | ptrT |
Procmap implemented using Tree of TreeCoords.
|
private |
|
inline |
References map_type.
Referenced by MyPmap(), and operator=().
|
inline |
References map_type, n, nproc, and prepare_not_so_simple_map().
|
inline |
References map_type, n, nproc, prepare_not_so_simple_map(), and madness::World::size().
|
inline |
References build_tree_map(), map_type, n, nproc, and v.
|
inline |
|
inlineprivate |
|
inlinestatic |
Referenced by prepare_not_so_simple_map().
|
inlineprivate |
References madness::Key< NDIM >::level(), n, madness::Key< NDIM >::parent(), simple_key_map, and madness::Key< NDIM >::translation().
Referenced by owner().
|
inlinevirtual |
Find the owner of a given key.
Implements madness::WorldDCPmapInterface< Key< D > >.
References map_type, not_so_simple_hash(), simple_hash(), and tree_map.
|
inlineprivate |
|
inlinevirtual |
Reimplemented from madness::WorldDCPmapInterface< Key< D > >.
References map_type, n, madness::print(), and tree_map.
|
inlineprivate |
References madness::Key< NDIM >::hash(), madness::Key< NDIM >::level(), n, nproc, and madness::Key< NDIM >::parent().
Referenced by owner().
|
private |
|
private |
Referenced by MyPmap(), MyPmap(), MyPmap(), MyPmap(), not_so_simple_hash(), operator=(), prepare_not_so_simple_map(), print(), and simple_hash().
|
private |
Referenced by MyPmap(), MyPmap(), MyPmap(), MyPmap(), operator=(), and simple_hash().
|
private |
Referenced by not_so_simple_hash(), operator=(), and prepare_not_so_simple_map().
|
private |
Referenced by MyPmap(), build_tree_map(), operator=(), owner(), and print().