MADNESS
version 0.9
|
#include <lbdeux.h>
Public Member Functions | |
LBNodeDeux () | |
LBNodeDeux (const LBNodeDeux< NDIM > &other) | |
LBNodeDeux< NDIM > & | operator= (const LBNodeDeux< NDIM > &other) |
bool | has_children () const |
double | get_total_cost () const |
Void | add (double cost, bool got_kids) |
Accumulates cost into this node. More... | |
Void | sum (const treeT &tree, const keyT &child, double value) |
Accumulates cost up the tree from children. More... | |
Void | deleter (const treeT &tree, const keyT &key) |
Logically deletes this node by setting cost to -1. More... | |
Void | partition (const treeT &tree, const keyT &key, double avg) |
Descends tree deleting all except internal nodes and sub-tree parents. More... | |
template<typename Archive > | |
void | serialize (Archive &ar) |
|
inline |
|
inline |
|
inline |
Accumulates cost into this node.
|
inline |
Logically deletes this node by setting cost to -1.
Cannot actually erase this node from the container since the send() handler is holding an accessor to it.
References madness::LBNodeDeux< NDIM >::has_children().
Referenced by madness::LBNodeDeux< NDIM >::partition().
|
inline |
|
inline |
Referenced by madness::LBNodeDeux< NDIM >::deleter(), and madness::LBNodeDeux< NDIM >::partition().
|
inline |
|
inline |
Descends tree deleting all except internal nodes and sub-tree parents.
References madness::LBNodeDeux< NDIM >::deleter(), madness::LBNodeDeux< NDIM >::has_children(), and std::swap().
Referenced by madness::LoadBalanceDeux< NDIM >::load_balance().
|
inline |
References madness::archive::wrap_opaque().
|
inline |
Accumulates cost up the tree from children.
References madness::Key< NDIM >::level(), and madness::Key< NDIM >::parent().