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

Search Toolkit Book for CContextTranslator

Auxiliary class to provide convenient and efficient access to conversions between contexts local to query split chunks and the absolute (full, unsplit) query. More...

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

Public Member Functions

 CContextTranslator (const CSplitQueryBlk &sqb, vector< CRef< IQueryFactory > > *query_chunk_factories=NULL, const CBlastOptions *options=NULL)
 Constructor. More...
 
int GetAbsoluteContext (size_t chunk_num, Int4 context_in_chunk) const
 Get the context number in the absolute (i.e. More...
 
int GetContextInChunk (size_t chunk_num, int absolute_context) const
 Get the context number in the split query chunk. More...
 
int GetStartingChunk (size_t curr_chunk, Int4 context_in_chunk) const
 Get the chunk number where context_in_chunk starts (i.e. More...
 

Private Attributes

vector< vector< int > > m_ContextsPerChunk
 Each element in this vector represents a chunk, and it contains the contexts numbers that correspond in the full concatenated query. More...
 
vector< vector< int > > m_StartingChunks
 
vector< vector< int > > m_AbsoluteContexts
 

Friends

ostream & operator<< (ostream &out, const CContextTranslator &rhs)
 Print this object so that its contents can be directly used to update split_query.ini (for unit testing) More...
 

Detailed Description

Auxiliary class to provide convenient and efficient access to conversions between contexts local to query split chunks and the absolute (full, unsplit) query.

Definition at line 105 of file split_query_aux_priv.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Apr 12 17:23:14 2024 by modify_doxy.py rev. 669887