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 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().

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 2529 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.

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 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().

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 2144 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().

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 1940 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 2109 of file group_search.cxx.

ARB_ERROR GroupSearch::rename_found_groups ( const char acisrt)

Definition at line 2116 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 2132 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 2313 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 2325 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: