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

#include <group_search.h>

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

Public Member Functions

 GroupSearch (GBDATA *gb_main_, const GroupSearchCallback &redisplay_results_cb)
 
 ~GroupSearch ()
 
GBDATAget_gb_main () const
 
void addQueryExpression (CriterionOperator op, CriterionType type, CriterionMatch mtype, const char *expression)
 
void forgetQExpressions ()
 
void addSortCriterion (GroupSortCriterion gsc)
 
void forgetSortCriteria ()
 
void setDupCriteria (bool listDups, DupNameCriterionType ntype, GB_CASE sens, DupTreeCriterionType ttype, int min_cluster_size)
 
void setDupCriteria (bool listDups, DupNameCriterionType ntype, GB_CASE sens, int min_words, const WordSet &ignored_words, const char *wordSeparators, DupTreeCriterionType ttype, int min_cluster_size)
 
void setDupCriteria (bool listDups, DupNameCriterionType ntype, GB_CASE sens, int min_words, const char *ignored_words, const char *wordSeparators, DupTreeCriterionType ttype, int min_cluster_size)
 
void forgetDupCriteria ()
 
void setSearchRange (const TreeNameSet &trees_to_search_)
 
void perform_search (GroupSearchMode mode)
 
GBDATAget_parent_group (GBDATA *gb_group) const
 
int calc_nesting_level (GBDATA *gb_group) const
 
const QueriedGroupsget_results ()
 
bool has_results () const
 
void remove_hit (size_t idx)
 
void forget_results ()
 
GB_ERROR delete_group (size_t idx)
 
GB_ERROR delete_found_groups ()
 
ARB_ERROR rename_group (size_t idx, const char *acisrt)
 
ARB_ERROR rename_found_groups (const char *acisrt)
 
ARB_ERROR fold_group (size_t idx, GroupFoldingMode mode)
 
ARB_ERROR fold_found_groups (GroupFoldingMode mode)
 
ARB_ERROR set_marks_in_group (size_t idx, GroupMarkMode mode)
 
ARB_ERROR set_marks_in_found_groups (GroupMarkMode mode, CollectMode cmode)
 
void refresh_results_after_DBchanges ()
 

Detailed Description

Definition at line 332 of file group_search.h.

Constructor & Destructor Documentation

GroupSearch::GroupSearch ( GBDATA gb_main_,
const GroupSearchCallback &  redisplay_results_cb 
)

Definition at line 551 of file group_search.cxx.

References GroupSearchCommon::add().

GroupSearch::~GroupSearch ( )

Definition at line 560 of file group_search.cxx.

References GroupSearchCommon::empty(), NULp, and GroupSearchCommon::remove().

Member Function Documentation

GBDATA* GroupSearch::get_gb_main ( ) const
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 
)
void GroupSearch::forgetQExpressions ( )

Definition at line 2524 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 1868 of file group_search.cxx.

References add(), forgetSortCriteria(), GSC_NONE, and GSC_REVERSE.

void GroupSearch::forgetSortCriteria ( )
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 1917 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 1921 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 1925 of file group_search.cxx.

References arb_test::none(), setDupCriteria(), and string2WordSet().

void GroupSearch::forgetDupCriteria ( )

Definition at line 1933 of file group_search.cxx.

References SmartPtr< T, C >::setNull().

void GroupSearch::setSearchRange ( const TreeNameSet trees_to_search_)
inline

Definition at line 376 of file group_search.h.

void GroupSearch::perform_search ( GroupSearchMode  mode)
GBDATA * GroupSearch::get_parent_group ( GBDATA gb_group) const
int GroupSearch::calc_nesting_level ( GBDATA gb_group) const

Definition at line 2139 of file group_search.cxx.

Referenced by NestingLevelKey::get_target_data(), and Candidate::inform_group().

const QueriedGroups & GroupSearch::get_results ( )

Definition at line 1684 of file group_search.cxx.

References SmartPtr< T, C >::isNull().

bool GroupSearch::has_results ( ) const
inline

Definition at line 392 of file group_search.h.

References QueriedGroups::empty(), and SmartPtr< T, C >::isSet().

Referenced by delete_found_groups().

void GroupSearch::remove_hit ( size_t  idx)
inline

Definition at line 393 of file group_search.h.

References QueriedGroups::remove_hit().

void GroupSearch::forget_results ( )
inline

Definition at line 394 of file group_search.h.

Referenced by perform_search().

GB_ERROR GroupSearch::delete_group ( size_t  idx)

Definition at line 1937 of file group_search.cxx.

GB_ERROR GroupSearch::delete_found_groups ( )
ARB_ERROR GroupSearch::rename_group ( size_t  idx,
const char acisrt 
)

Definition at line 2106 of file group_search.cxx.

ARB_ERROR GroupSearch::rename_found_groups ( const char acisrt)

Definition at line 2113 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 2127 of file group_search.cxx.

ARB_ERROR GroupSearch::fold_found_groups ( GroupFoldingMode  mode)
ARB_ERROR GroupSearch::set_marks_in_group ( size_t  idx,
GroupMarkMode  mode 
)

Definition at line 2308 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 2320 of file group_search.cxx.

References error(), and set_marks_of().

void GroupSearch::refresh_results_after_DBchanges ( )

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