ARB
|
#include <group_search.h>
Definition at line 332 of file group_search.h.
GroupSearch::GroupSearch | ( | GBDATA * | gb_main_, |
const GroupSearchCallback & | redisplay_results_cb | ||
) |
Definition at line 554 of file group_search.cxx.
References GroupSearchCommon::add().
GroupSearch::~GroupSearch | ( | ) |
Definition at line 563 of file group_search.cxx.
References GroupSearchCommon::empty(), NULp, and GroupSearchCommon::remove().
|
inline |
Definition at line 357 of file group_search.h.
Referenced by GroupSearchCommon::add().
void GroupSearch::addQueryExpression | ( | CriterionOperator | op, |
CriterionType | type, | ||
CriterionMatch | mtype, | ||
const char * | expression | ||
) |
Definition at line 2533 of file group_search.cxx.
References AND, QueryExpr::append(), CM_MISMATCH, CO_AND, CO_IGNORE, CO_OR, CT_AID, CT_FOLDED, CT_KEELED, CT_MARKED, CT_MARKED_PC, CT_NAME, CT_NESTING_LEVEL, CT_PARENT_ALL, CT_PARENT_ANY, CT_PARENT_DIRECT, CT_SIZE, CT_ZOMBIES, ILLEGAL, and OR.
Referenced by perform_search().
void GroupSearch::forgetQExpressions | ( | ) |
Definition at line 2574 of file group_search.cxx.
void GroupSearch::addSortCriterion | ( | GroupSortCriterion | gsc | ) |
add new primary sort criterion previously added (different) criteria remain active, but become secondary, tertiary, ...
Definition at line 1871 of file group_search.cxx.
References add(), forgetSortCriteria(), GSC_NONE, and GSC_REVERSE.
|
inline |
Definition at line 366 of file group_search.h.
Referenced by addSortCriterion().
void GroupSearch::setDupCriteria | ( | bool | listDups, |
DupNameCriterionType | ntype, | ||
GB_CASE | sens, | ||
DupTreeCriterionType | ttype, | ||
int | min_cluster_size | ||
) |
Definition at line 1920 of file group_search.cxx.
References DNC_WORDWISE, and gs_assert.
Referenced by setDupCriteria().
void GroupSearch::setDupCriteria | ( | bool | listDups, |
DupNameCriterionType | ntype, | ||
GB_CASE | sens, | ||
int | min_words, | ||
const WordSet & | ignored_words, | ||
const char * | wordSeparators, | ||
DupTreeCriterionType | ttype, | ||
int | min_cluster_size | ||
) |
Definition at line 1924 of file group_search.cxx.
References DNC_WORDWISE, and gs_assert.
void GroupSearch::setDupCriteria | ( | bool | listDups, |
DupNameCriterionType | ntype, | ||
GB_CASE | sens, | ||
int | min_words, | ||
const char * | ignored_words, | ||
const char * | wordSeparators, | ||
DupTreeCriterionType | ttype, | ||
int | min_cluster_size | ||
) |
Definition at line 1928 of file group_search.cxx.
References arb_test::none(), setDupCriteria(), and string2WordSet().
void GroupSearch::forgetDupCriteria | ( | ) |
Definition at line 1936 of file group_search.cxx.
References SmartPtr< T, C >::setNull().
|
inline |
Definition at line 376 of file group_search.h.
void GroupSearch::perform_search | ( | GroupSearchMode | mode | ) |
Definition at line 739 of file group_search.cxx.
References QueriedGroups::add_candidate(), QueriedGroups::add_informed_group(), addQueryExpression(), QueriedGroups::begin(), CM_MATCH, CO_OR, collect_searched_trees(), CT_NAME, ParentCache::defineParentOf(), ARB_edge::dest(), DOWNCAST, EDGE_TO_LEAF, EDGE_TO_ROOT, QueriedGroups::end(), error(), forget_results(), TreeNode::gb_node, GBS_global_string(), GBT_get_species_data(), GBT_message(), GroupSearchCommon::get_parent_cache(), ARB_edge::get_type(), gs_assert, GSM_ADD, GSM_FORGET_EXISTING, GSM_MISMATCH, TreeNode::has_group_info(), arb_progress::inc_and_error_if_aborted(), arb_progress::inc_by(), TreeNode::is_keeled_group(), TreeNode::is_leaf(), TreeNode::is_normal_group(), isCorrectParent(), SmartPtr< T, C >::isNull(), SmartPtr< T, C >::isSet(), ParentCache::lookupParent(), QueryExpr::matches(), QueryExpr::negate(), ARB_edge::next(), NULp, ROOT_EDGE, rootEdge(), ARB_edge::source(), start, swap(), and ta.
Referenced by GroupUIdata::run_search().
Definition at line 2184 of file group_search.cxx.
Referenced by ParentGroupNameQueryKey::get_target_data(), and ParentGroupNameQueryKey::iterate().
Definition at line 2189 of file group_search.cxx.
Referenced by NestingLevelKey::get_target_data(), and Candidate::inform_group().
const QueriedGroups & GroupSearch::get_results | ( | ) |
Definition at line 1687 of file group_search.cxx.
References SmartPtr< T, C >::isNull().
|
inline |
Definition at line 392 of file group_search.h.
References QueriedGroups::empty(), and SmartPtr< T, C >::isSet().
Referenced by delete_found_groups().
|
inline |
Definition at line 393 of file group_search.h.
References QueriedGroups::remove_hit().
|
inline |
Definition at line 394 of file group_search.h.
Referenced by perform_search().
Definition at line 1940 of file group_search.cxx.
GB_ERROR GroupSearch::delete_found_groups | ( | ) |
Definition at line 1945 of file group_search.cxx.
References QueriedGroups::begin(), GB_transaction::close(), QueriedGroups::end(), error(), group, has_results(), NULp, and ta.
Definition at line 2154 of file group_search.cxx.
Definition at line 2161 of file group_search.cxx.
References GB_transaction::close(), error(), group, and ta.
ARB_ERROR GroupSearch::fold_group | ( | size_t | idx, |
GroupFoldingMode | mode | ||
) |
Definition at line 2177 of file group_search.cxx.
ARB_ERROR GroupSearch::fold_found_groups | ( | GroupFoldingMode | mode | ) |
Definition at line 2199 of file group_search.cxx.
References FoundGroup::change_folding(), GB_transaction::close(), collect_searched_trees(), error(), GB_entry(), GB_nextEntry(), GFM_COLLAPSE, GFM_COLLAPSE_REST, GFM_EXPAND, GFM_PARENTS_ONLY, GFM_RECURSE, GFM_TOGGLE, and ta.
ARB_ERROR GroupSearch::set_marks_in_group | ( | size_t | idx, |
GroupMarkMode | mode | ||
) |
Definition at line 2358 of file group_search.cxx.
References QueriedGroups::add_informed_group(), error(), set_marks_of(), and UNITE.
ARB_ERROR GroupSearch::set_marks_in_found_groups | ( | GroupMarkMode | mode, |
CollectMode | cmode | ||
) |
Definition at line 2370 of file group_search.cxx.
References error(), and set_marks_of().
void GroupSearch::refresh_results_after_DBchanges | ( | ) |
Definition at line 1858 of file group_search.cxx.
References QueriedGroups::contains_changed(), QueriedGroups::empty(), QueriedGroups::erase_deleted(), and SmartPtr< T, C >::isNull().
Referenced by GroupSearchCommon::refresh_all_results().