ARB
|
#include <CT_hash.hxx>
Public Member Functions | |
PartRegistry () | |
~PartRegistry () | |
void | put_part_from_complete_tree (PART *&part, const TreeNode *node) |
void | put_part_from_partial_tree (PART *&part, const PART *partialTree, const TreeNode *node) |
void | put_artificial_part (PART *&part) |
void | build_sorted_list (double overall_weight) |
PART * | get_part () |
const PART * | peek_part (int idx) const |
size_t | size () const |
Definition at line 30 of file CT_hash.hxx.
|
inline |
Definition at line 42 of file CT_hash.hxx.
References arb_assert.
PartRegistry::~PartRegistry | ( | ) |
Definition at line 18 of file CT_hash.cxx.
insert part in PartRegistry (destroys/reassigns part)
Definition at line 46 of file CT_hash.cxx.
References arb_assert, NULp, PART::set_origin(), and PART::standardize().
Referenced by put_part_from_partial_tree().
void PartRegistry::put_part_from_partial_tree | ( | PART *& | part, |
const PART * | partialTree, | ||
const TreeNode * | node | ||
) |
insert part from partialTree into PartRegistry (destroys/reassigns part)
Definition at line 80 of file CT_hash.cxx.
References arb_assert, PART::clone(), diff(), PART::get_members(), PART::get_nonmembers(), PART::invertInSuperset(), leafs_2_edges(), put_part_from_complete_tree(), ROOTED, PART::set_faked_weight(), and swap().
void PartRegistry::put_artificial_part | ( | PART *& | part | ) |
Definition at line 65 of file CT_hash.cxx.
References arb_assert, NULp, and PART::standardize().
void PartRegistry::build_sorted_list | ( | double | overall_weight | ) |
sort the parts into insertion order.
Definition at line 143 of file CT_hash.cxx.
References arb_assert, copy(), and insertionOrder_less().
Referenced by DeconstructedTree::start_sorted_retrieval().
PART * PartRegistry::get_part | ( | ) |
each call to get_part() returns the next part from the sorted PART-list. build_sorted_list() has to be called once before.
Definition at line 24 of file CT_hash.cxx.
References arb_assert, NULp, and swap().
Referenced by DeconstructedTree::get_part().
Definition at line 38 of file CT_hash.cxx.
References arb_assert, and size().
Referenced by DeconstructedTree::peek_part().
|
inline |
Definition at line 59 of file CT_hash.hxx.
Referenced by DeconstructedTree::get_part_count(), and peek_part().