NCBI C++ ToolKit
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CQueryDataPerChunk Class Reference

Search Toolkit Book for CQueryDataPerChunk

Auxiliary class to determine information about the query that was split into chunks. More...

#include "split_query_aux_priv.hpp"
(Private to src/algo/blast/api.)

+ Collaboration diagram for CQueryDataPerChunk:

Public Member Functions

 CQueryDataPerChunk (const CSplitQueryBlk &sqb, EBlastProgramType program, CRef< ILocalQueryData > local_query_data)
 Constructor. More...
 
size_t GetQueryLength (size_t chunk_num, int context_in_chunk) const
 Get the length of the query. More...
 
size_t GetQueryLength (int global_query_index) const
 Get the length of the query. More...
 
int GetLastChunk (int global_query_index)
 get the last chunk where query identified with global_query_index is found More...
 
int GetLastChunk (size_t chunk_num, int context_in_chunk)
 get the last chunk where query identified with global_query_index is found More...
 

Private Types

enum  { kUninitialized = -1 }
 Initial value of all entries in the above cache. More...
 

Private Member Functions

size_t x_ContextInChunkToQueryIndex (int context_in_chunk) const
 Convert a context in a chunk to a query index (within the chunk) More...
 

Private Attributes

EBlastProgramType m_Program
 BLAST program type. More...
 
vector< vector< size_t > > m_QueryIndicesPerChunk
 Each element in this vector represents a chunk, and it contains the query indices that correspond in the full concatenated query. More...
 
vector< size_t > m_QueryLengths
 Lengths of the queries. More...
 
vector< intm_LastChunkForQueryCache
 Lists the last chunk where the query can be found. More...
 

Detailed Description

Auxiliary class to determine information about the query that was split into chunks.

Definition at line 172 of file split_query_aux_priv.hpp.


The documentation for this class was generated from the following files:
Modified on Wed Apr 24 14:09:43 2024 by modify_doxy.py rev. 669887