ARB
|
#include <ed4_search.hxx>
Public Member Functions | |
ED4_SearchResults () | |
~ED4_SearchResults () | |
void | search (const ED4_sequence_terminal *seq_terminal) |
void | addSearchPosition (ED4_SearchPosition *pos) |
ED4_SearchPosition * | get_first () const |
ED4_SearchPosition * | get_first_at (ED4_SearchPositionType type, int start, int end) const |
ED4_SearchPosition * | get_first_starting_after (ED4_SearchPositionType type, int pos, int mustBeShown) const |
ED4_SearchPosition * | get_last_starting_before (ED4_SearchPositionType type, int pos, int mustBeShown) const |
ED4_SearchPosition * | get_shown_at (int pos) const |
void | searchAgain () |
char * | buildColorString (const ED4_sequence_terminal *seq_terminal, int start, int end) |
Static Public Member Functions | |
static void | setNewSearch (ED4_SearchPositionType type) |
Definition at line 106 of file ed4_search.hxx.
ED4_SearchResults::ED4_SearchResults | ( | ) |
Definition at line 885 of file ED4_search.cxx.
References ARB_calloc(), buffer, initialized, NULp, resultsAreShown(), and SEARCH_PATTERNS.
ED4_SearchResults::~ED4_SearchResults | ( | ) |
Definition at line 910 of file ED4_search.cxx.
void ED4_SearchResults::search | ( | const ED4_sequence_terminal * | seq_terminal | ) |
Definition at line 943 of file ED4_search.cxx.
References e4_assert, SearchTree::findMatches(), NULp, ED4_SearchPosition::remove(), reportSearchPosition(), ED4_terminal::resolve_pointer_to_string_copy(), SEARCH_PATTERNS, and seq.
Referenced by buildColorString(), ED4_mark_matching_species(), ED4_search_cb(), and searchParamsChanged().
void ED4_SearchResults::addSearchPosition | ( | ED4_SearchPosition * | pos | ) |
Definition at line 927 of file ED4_search.cxx.
References e4_assert, and ED4_SearchPosition::insert().
Referenced by reportSearchPosition().
|
inline |
Definition at line 137 of file ed4_search.hxx.
Referenced by buildColorString(), and get_shown_at().
ED4_SearchPosition * ED4_SearchResults::get_first_at | ( | ED4_SearchPositionType | type, |
int | start, | ||
int | end | ||
) | const |
Definition at line 990 of file ED4_search.cxx.
References e4_assert, ED4_ANY_PATTERN, ED4_SearchPosition::get_end_pos(), ED4_SearchPosition::get_next(), ED4_SearchPosition::get_start_pos(), ED4_SearchPosition::get_whatsFound(), NULp, start, and type.
Referenced by buildColorString().
ED4_SearchPosition * ED4_SearchResults::get_first_starting_after | ( | ED4_SearchPositionType | type, |
int | pos, | ||
int | mustBeShown | ||
) | const |
Definition at line 1045 of file ED4_search.cxx.
References ED4_ANY_PATTERN, ED4_SearchPosition::get_next(), ED4_SearchPosition::get_start_pos(), ED4_SearchPosition::get_whatsFound(), resultsAreShown(), and type.
Referenced by ED4_mark_matching_species(), ED4_search_cb(), and searchParamsChanged().
ED4_SearchPosition * ED4_SearchResults::get_last_starting_before | ( | ED4_SearchPositionType | type, |
int | pos, | ||
int | mustBeShown | ||
) | const |
Definition at line 1060 of file ED4_search.cxx.
References ED4_ANY_PATTERN, ED4_SearchPosition::get_next(), ED4_SearchPosition::get_start_pos(), ED4_SearchPosition::get_whatsFound(), NULp, resultsAreShown(), and type.
Referenced by ED4_search_cb(), get_shown_at(), and searchParamsChanged().
ED4_SearchPosition * ED4_SearchResults::get_shown_at | ( | int | pos | ) | const |
Definition at line 1184 of file ED4_search.cxx.
References ED4_SearchPosition::containsPos(), e4_assert, ED4_ANY_PATTERN, get_first(), get_last_starting_before(), ED4_SearchPosition::get_next_at(), ED4_SearchPosition::get_whatsFound(), NULp, and type.
|
static |
Definition at line 1079 of file ED4_search.cxx.
References ED4_ANY_PATTERN, resultsAreShown(), SEARCH_PATTERNS, and type.
Referenced by searchParamsChanged().
void ED4_SearchResults::searchAgain | ( | ) |
Definition at line 1096 of file ED4_search.cxx.
References SEARCH_PATTERNS.
Referenced by call_edit(), and executeKeystroke().
char * ED4_SearchResults::buildColorString | ( | const ED4_sequence_terminal * | seq_terminal, |
int | start, | ||
int | end | ||
) |
Definition at line 1104 of file ED4_search.cxx.
References abs, ARB_calloc(), buffer, e4_assert, ED4_ANY_PATTERN, ED4_G_MBACK, ED4_G_SBACK_0, ED4_SearchPosition::get_end_pos(), get_first(), get_first_at(), ED4_SearchPosition::get_next(), ED4_SearchPosition::get_start_pos(), ED4_SearchPosition::get_whatsFound(), ED4_SearchPosition::getMismatches(), max, min, NULp, s, search(), SEARCH_PATTERNS, and start.
Referenced by ED4_host::get_search_background().