NCBI C++ ToolKit
Classes | Macros | Functions
writedb_impl.cpp File Reference

Implementation for the CWriteDB_Impl class. More...

#include <ncbi_pch.hpp>
#include <objtools/blast/seqdb_writer/writedb_error.hpp>
#include <objtools/blast/seqdb_reader/seqdbexpert.hpp>
#include <objtools/blast/seqdb_reader/seqdbcommon.hpp>
#include <objects/general/general__.hpp>
#include <objects/seqfeat/seqfeat__.hpp>
#include <util/sequtil/sequtil_convert.hpp>
#include <objects/blastdb/defline_extra.hpp>
#include <serial/typeinfo.hpp>
#include <corelib/ncbi_bswap.hpp>
#include "writedb_impl.hpp"
#include <objtools/blast/seqdb_writer/writedb_convert.hpp>
#include <iostream>
#include <sstream>
#include <cmath>
+ Include dependency graph for writedb_impl.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CWriteDB_IsamKey< T >
 class to support searching for duplicate isam keys More...
 
struct  CWriteDB_IsamKey_Compare< T >
 Comparison function for set<CWriteDB_IsamKey<T> *> More...
 

Macros

#define INT4_SIZE   4
 
#define CHAR_BUFFER_SIZE   256
 
#define TAB_REPLACEMENT   " "
 

Functions

 USING_SCOPE (std)
 Import C++ std namespace. More...
 
template<class T >
static void s_CheckDuplicateIds (set< CWriteDB_IsamKey< T > *, CWriteDB_IsamKey_Compare< T > > &keys)
 Check for duplicate ids across volumes. More...
 
void s_LimitDeflines (CConstRef< CBlast_def_line_set > &dfs)
 
static void s_CheckEmptyLists (CRef< CBlast_def_line_set > &deflines, bool owner)
 
static CRef< CBlast_def_line_sets_EditDeflineSet (CConstRef< CBlast_def_line_set > &deflines)
 
static bool s_UseFastaReaderDeflines (CConstRef< CBioseq > &bioseq, CConstRef< CBlast_def_line_set > &deflines, bool long_seqid)
 
int s_AbsMax (int a, int b)
 
static const string s_EscapeColon (const string &in)
 

Detailed Description

Implementation for the CWriteDB_Impl class.

class for WriteDB.

Definition in file writedb_impl.cpp.

Macro Definition Documentation

◆ CHAR_BUFFER_SIZE

#define CHAR_BUFFER_SIZE   256

◆ INT4_SIZE

#define INT4_SIZE   4

◆ TAB_REPLACEMENT

#define TAB_REPLACEMENT   " "

Definition at line 1714 of file writedb_impl.cpp.

Function Documentation

◆ s_AbsMax()

int s_AbsMax ( int  a,
int  b 
)
inline

Definition at line 1251 of file writedb_impl.cpp.

References a, b, and max().

◆ s_CheckDuplicateIds()

template<class T >
static void s_CheckDuplicateIds ( set< CWriteDB_IsamKey< T > *, CWriteDB_IsamKey_Compare< T > > &  keys)
static

Check for duplicate ids across volumes.

Definition at line 295 of file writedb_impl.cpp.

References ncbi::grid::netcache::search::fields::key, NCBI_THROW, and next().

◆ s_CheckEmptyLists()

static void s_CheckEmptyLists ( CRef< CBlast_def_line_set > &  deflines,
bool  owner 
)
static

◆ s_EditDeflineSet()

static CRef<CBlast_def_line_set> s_EditDeflineSet ( CConstRef< CBlast_def_line_set > &  deflines)
static

Definition at line 552 of file writedb_impl.cpp.

References s_CheckEmptyLists(), and SerialAssign().

Referenced by s_CheckEmptyLists(), and CWriteDB_Impl::x_ExtractDeflines().

◆ s_EscapeColon()

static const string s_EscapeColon ( const string in)
static

Definition at line 1431 of file writedb_impl.cpp.

References in(), and NStr::Replace().

Referenced by CWriteDB_Impl::RegisterMaskAlgorithm().

◆ s_LimitDeflines()

void s_LimitDeflines ( CConstRef< CBlast_def_line_set > &  dfs)

◆ s_UseFastaReaderDeflines()

static bool s_UseFastaReaderDeflines ( CConstRef< CBioseq > &  bioseq,
CConstRef< CBlast_def_line_set > &  deflines,
bool  long_seqid 
)
static

◆ USING_SCOPE()

USING_SCOPE ( std  )

Import C++ std namespace.

Modified on Sat Jun 15 11:54:37 2024 by modify_doxy.py rev. 669887