ARB
Public Member Functions | List of all members
PartRegistry Class Reference

#include <CT_hash.hxx>

Inheritance diagram for PartRegistry:
Inheritance graph
[legend]
Collaboration diagram for PartRegistry:
Collaboration graph
[legend]

Public Member Functions

 PartRegistry ()
 
 ~PartRegistry ()
 
void put_part_from_complete_tree (PART *&part)
 
void put_part_from_partial_tree (PART *&part, const PART *partialTree)
 
void put_artificial_part (PART *&part)
 
void build_sorted_list (double overall_weight)
 
PARTget_part ()
 
size_t size () const
 

Detailed Description

Definition at line 30 of file CT_hash.hxx.

Constructor & Destructor Documentation

PartRegistry::PartRegistry ( )
inline

Definition at line 42 of file CT_hash.hxx.

References arb_assert.

PartRegistry::~PartRegistry ( )

Definition at line 18 of file CT_hash.cxx.

Member Function Documentation

void PartRegistry::put_part_from_complete_tree ( PART *&  part)

insert part in PartRegistry (destroys/reassigns part)

Definition at line 38 of file CT_hash.cxx.

References arb_assert, NULp, and PART::standardize().

Referenced by put_part_from_partial_tree().

void PartRegistry::put_part_from_partial_tree ( PART *&  part,
const PART partialTree 
)
void PartRegistry::put_artificial_part ( PART *&  part)

Definition at line 56 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 134 of file CT_hash.cxx.

References arb_assert, copy(), and insertionOrder_less().

Referenced by ConsensusTree::get_consensus_tree().

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 ConsensusTree::get_consensus_tree().

size_t PartRegistry::size ( ) const
inline

Definition at line 58 of file CT_hash.hxx.

Referenced by ConsensusTree::get_consensus_tree().


The documentation for this class was generated from the following files: