NCBI C++ ToolKit
Functions
bdb_types.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbi_bswap.hpp>
#include <db/bdb/bdb_types.hpp>
#include <db.h>
+ Include dependency graph for bdb_types.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static const unsigned char * s_GetLString (const unsigned char *str, bool check_legacy, int *str_len)
 
static const unsigned char * s_GetLString (const DBT *val, bool check_legacy, int *str_len)
 
int BDB_UintCompare (DB *db, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned int" keys. More...
 
int BDB_Uint4Compare (DB *, const DBT *val1, const DBT *val2)
 
int BDB_Int8Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "Int8" keys. More...
 
int BDB_Uint8Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "Uint8" keys. More...
 
int BDB_IntCompare (DB *db, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "int" keys. More...
 
int BDB_Int4Compare (DB *, const DBT *val1, const DBT *val2)
 
int BDB_Int2Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "short int" keys. More...
 
int BDB_Uint2Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned short int" keys. More...
 
int BDB_CharCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "char" keys. More...
 
int BDB_UCharCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned char" keys. More...
 
int BDB_FloatCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "float" keys. More...
 
int BDB_DoubleCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "double" keys. More...
 
int BDB_StringCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "C string" keys. More...
 
int BDB_FixedByteStringCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented fixed length string keys. More...
 
int BDB_LStringCompare (DB *db, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented length prefixed string keys. More...
 
int BDB_StringCaseCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "case insensitive C string" keys. More...
 
int BDB_Compare (DB *db, const DBT *val1, const DBT *val2)
 General purpose DBD comparison function. More...
 
unsigned int BDB_Hash (DB *, const void *bytes, unsigned length)
 String hash function taken from SStringHash (algo/text/text_util) More...
 
unsigned int BDB_Uint4Hash (DB *db, const void *bytes, unsigned length)
 Hash method for databases with a single (unique) UInt4 key. More...
 
int BDB_ByteSwap_UintCompare (DB *db, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned int" keys. More...
 
int BDB_ByteSwap_Uint4Compare (DB *, const DBT *val1, const DBT *val2)
 
int BDB_ByteSwap_Int8Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "Int8" keys Used when the data file is in a different byte order architecture. More...
 
int BDB_ByteSwap_Uint8Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "Uint8" keys Used when the data file is in a different byte order architecture. More...
 
int BDB_ByteSwap_IntCompare (DB *db, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "int" keys Used when the data file is in a different byte order architecture. More...
 
int BDB_ByteSwap_Int4Compare (DB *, const DBT *val1, const DBT *val2)
 
int BDB_ByteSwap_Int2Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "short int" keys Used when the data file is in a different byte order architecture. More...
 
int BDB_ByteSwap_Uint2Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned short int" keys Used when the data file is in a different byte order architecture. More...
 
int BDB_ByteSwap_FloatCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "float" keys Used when the data file is in a different byte order architecture. More...
 
int BDB_ByteSwap_DoubleCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "double" keys Used when the data file is in a different byte order architecture. More...
 

Function Documentation

◆ s_GetLString() [1/2]

static const unsigned char* s_GetLString ( const DBT val,
bool  check_legacy,
int str_len 
)
static

Definition at line 75 of file bdb_types.cpp.

References _ASSERT, if(), int, s_GetLString(), str(), and val.

◆ s_GetLString() [2/2]

static const unsigned char* s_GetLString ( const unsigned char *  str,
bool  check_legacy,
int str_len 
)
static

Definition at line 41 of file bdb_types.cpp.

References _ASSERT, int, and str().

Referenced by BDB_LStringCompare(), CBDB_FieldLString::GetLString(), and s_GetLString().

Modified on Sat Mar 02 10:55:46 2024 by modify_doxy.py rev. 669887