OpenFlexTyper
Public Member Functions | Private Member Functions | List of all members
ft::Finder Class Reference

A class that handles the main search functions.

#include <finder.h>

Inherits ft::IFinder.

Public Member Functions

 Finder ()
 Constructor.
 
virtual ~Finder ()
 Destructor.
 
void searchIndexes (ft::FTMap &ftMap)
 Main search function based on the parameters set in FTMap. More...
 
void parallelSearch (FTMap &ftMap, const fs::path &indexPath, long long offset)
 parallelSearch searches kmers in parallel in a single index. More...
 
void sequentialSearch (ft::FTMap &ftMap, const fs::path &indexPath, long long offset)
 sequentialSearch searches kmers sequentially in a single index. More...
 

Private Member Functions

void addResultsFutures (std::map< std::string, ft::KmerClass > &indexResults, ft::KmerClass &tmpResult, uint offset)
 add results from an index to FTMap
 
void indexParallelSearch (ft::FTMap &ftMap)
 indexParallelSearch searches across all indexes in parallel
 
void indexSequentialSearch (ft::FTMap &ftMap)
 indexSequentialSearch searches across all indexes sequentially
 
void testIndex (const FTProp &ftProps, algo::IFmIndex *fmIndex, const fs::path &indexPath, std::string &testkmer)
 

Member Function Documentation

◆ parallelSearch()

void ft::Finder::parallelSearch ( FTMap &  ftMap,
const fs::path &  indexPath,
long long  offset 
)

Parallel Search parallelSearch will search each kmer in parallel across a single index using asynchronous programming

Parameters
FTMapThe search class containing parameters and results
indexPaththe index to search
offsetthe position offset of the index
Returns
adds the results of the search to the FTMap

◆ searchIndexes()

void ft::Finder::searchIndexes ( ft::FTMap &  ftMap)

Search Indexes

Parameters
ft::FTMapftMap containing all the search properties

◆ sequentialSearch()

void ft::Finder::sequentialSearch ( ft::FTMap &  ftMap,
const fs::path &  indexPath,
long long  offset 
)

Sequential Search

Parameters
FTMapThe search class containing parameters and results
indexPaththe index to search
offsetthe position offset of the index
Returns
adds the results of the search to the FTMap

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