ARB
|
Public Member Functions | |
Clusterer (GBDATA *gb_main, SmartPtr< QueriedGroups > groups_, SmartPtr< DupCriteria > criteria_) | |
int | max_cluster_start_index () const |
void | buildInferableClusterStartingWith (int start_idx, GroupCluster &cluster) |
void | findBestClusterBasedOnWords (int wanted_words, GroupCluster &best, arb_progress &progress_cluster, int &first_cluster_found_from_index) |
bool | already_delivered (int idx) const |
void | deliverCluster (const GroupCluster &ofCluster, QueriedGroups &toResult) |
void | find_and_deliverTo (QueriedGroups &toResult) |
void | deliverRest (QueriedGroups &toResult) |
int | calc_max_used_words (bool ignore_delivered) |
Definition at line 1222 of file group_search.cxx.
|
inline |
Definition at line 1318 of file group_search.cxx.
|
inline |
Definition at line 1328 of file group_search.cxx.
References DupCriteria::min_cluster_size(), and QueriedGroups::size().
Referenced by find_and_deliverTo().
void Clusterer::buildInferableClusterStartingWith | ( | int | start_idx, |
GroupCluster & | cluster | ||
) |
Definition at line 1421 of file group_search.cxx.
References arb_progress::aborted(), already_delivered(), GroupCluster::begin(), DupCriteria::big_enough(), GroupCluster::clear(), DLC_DIFF_TREE, arb_progress::done(), GroupCluster::empty(), GroupCluster::end(), DupCriteria::get_tree_type(), gs_assert, arb_progress::inc_by(), GroupCluster::insert(), DupCriteria::is_inferable(), and QueriedGroups::size().
Referenced by find_and_deliverTo().
void Clusterer::findBestClusterBasedOnWords | ( | int | wanted_words, |
GroupCluster & | best, | ||
arb_progress & | progress_cluster, | ||
int & | first_cluster_found_from_index | ||
) |
Definition at line 1548 of file group_search.cxx.
References arb_progress::aborted(), GroupCluster::allow_lookup(), already_delivered(), DupCriteria::big_enough(), GroupCluster::clear(), GroupCluster::empty(), DupNameCriterion::get_min_wanted_words(), gs_assert, GroupCluster::insert(), DupCriteria::is_inferable(), DupCriteria::min_cluster_size(), DupNameCriterion::set_min_wanted_words(), and QueriedGroups::size().
Referenced by find_and_deliverTo().
|
inline |
Definition at line 1333 of file group_search.cxx.
References GroupCluster::contains().
Referenced by buildInferableClusterStartingWith(), calc_max_used_words(), deliverCluster(), deliverRest(), find_and_deliverTo(), and findBestClusterBasedOnWords().
|
inline |
Definition at line 1334 of file group_search.cxx.
References QueriedGroups::add_informed_group(), already_delivered(), GroupCluster::begin(), GroupCluster::end(), gs_assert, GroupCluster::insert(), and FoundGroup::set_cluster_id().
Referenced by find_and_deliverTo().
void Clusterer::find_and_deliverTo | ( | QueriedGroups & | toResult | ) |
Definition at line 1601 of file group_search.cxx.
References arb_progress::aborted(), GroupCluster::allow_lookup(), already_delivered(), buildInferableClusterStartingWith(), calc_max_used_words(), GroupCluster::clear(), deliverCluster(), arb_progress::done(), GroupCluster::empty(), findBestClusterBasedOnWords(), DupNameCriterion::get_min_wanted_words(), gs_assert, arb_progress::inc_to(), DupCriteria::is_inferable(), max_cluster_start_index(), QueriedGroups::size(), and GroupCluster::size().
|
inline |
Definition at line 1350 of file group_search.cxx.
References QueriedGroups::add_informed_group(), already_delivered(), QueriedGroups::begin(), and QueriedGroups::end().
|
inline |
Definition at line 1359 of file group_search.cxx.
References already_delivered(), gs_assert, QueriedGroups::size(), and DupNameCriterion::wordwise_name_matching().
Referenced by find_and_deliverTo().