BDB library field types
[BDB]

Collaboration diagram for BDB library field types:


Classes

class  IBDB_Field
 BDB Data Field interface definition. More...
class  IBDB_FieldConvert
 BDB Data Field conversion interface definition. More...
class  CBDB_FieldInterfaces
 Interface definition class for field construction. More...
class  CBDB_Field
 Base class for constructing BDB fields. More...
class  CBDB_FieldSimple< T >
 Template class for building simple scalar data fields. More...
class  CBDB_FieldSimpleInt< T >
 Template class for building simple scalar integer compatible data fields. More...
class  CBDB_FieldSimpleFloat< T >
 Template class for building simple scalar floating point compatible fields. More...
class  CBDB_FieldInt8
 Int8 field type. More...
class  CBDB_FieldUint8
 Uint8 field type. More...
class  CBDB_FieldInt4
 Int4 field type. More...
class  CBDB_FieldInt2
 Int2 field type. More...
class  CBDB_FieldUint2
 Uint2 field type. More...
class  CBDB_FieldUChar
 Char field type. More...
class  CBDB_FieldChar
class  CBDB_FieldInt1
 Int1 field type. More...
class  CBDB_FieldUint1
 Uint1 field type. More...
class  CBDB_FieldUint4
 Uint4 field type. More...
class  CBDB_FieldFloat
 Float field type. More...
class  CBDB_FieldDouble
 Double precision floating point field type. More...
class  CBDB_FieldFixedByteString
 Fixed length bytestring. More...
class  CBDB_FieldStringBase
 String field type. More...
class  CBDB_FieldString
 String field type designed to work with C-strings (ASCIIZ). More...
class  CBDB_FieldStringCase
 Case-insensitive (but case preserving) string field type. More...
class  CBDB_FieldLString
 Length prefised string field type. More...
class  CBDB_BufferManager
 BDB Data Field Buffer manager class. More...
class  CBDB_FieldFactory
 Class factory for BDB field types. More...
struct  SBDB_TypeTraits< Type >
 SBDB_TypeTraits defines via template parameters a policy for mapping a built-in type to a BDB field type. More...
struct  SBDB_TypeTraits< Int1 >
 8-bit signed and unsigned integral types More...
struct  SBDB_TypeTraits< Uint1 >
struct  SBDB_TypeTraits< Int2 >
 16-bit signed and unsigned integral types More...
struct  SBDB_TypeTraits< Uint2 >
struct  SBDB_TypeTraits< Int4 >
 32-bit signed and unsigned integral types More...
struct  SBDB_TypeTraits< Uint4 >
struct  SBDB_TypeTraits< Int8 >
 64-bit signed and unsigned integral types More...
struct  SBDB_TypeTraits< Uint8 >
struct  SBDB_TypeTraits< string >
 string types More...
struct  SBDB_TypeTraits< float >
 32- and 64- bit floating point types More...
struct  SBDB_TypeTraits< double >

Functions

NCBI_DEPRECATED int BDB_UintCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned int" keys.
int BDB_Uint4Compare (DB *, const DBT *val1, const DBT *val2)
NCBI_DEPRECATED int BDB_IntCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "int" keys.
int BDB_Int4Compare (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.
int BDB_Uint8Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "Uint8" keys.
int BDB_Int2Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "short int" keys.
int BDB_Uint2Compare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned short int" keys.
int BDB_CharCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "char" keys.
int BDB_UCharCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned char" keys.
int BDB_FloatCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "float" keys.
int BDB_DoubleCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "double" keys.
int BDB_StringCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "C string" keys.
int BDB_LStringCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented length prefixed string keys.
int BDB_FixedByteStringCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented fixed length string keys.
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.
int BDB_Compare (DB *db, const DBT *val1, const DBT *val2)
 General purpose DBD comparison function.
NCBI_DEPRECATED int BDB_ByteSwap_UintCompare (DB *, const DBT *val1, const DBT *val2)
 Simple and fast comparison function for tables with non-segmented "unsigned int" keys.
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.
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.
NCBI_DEPRECATED int BDB_ByteSwap_IntCompare (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.
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.
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.
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.
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.
unsigned int BDB_Hash (DB *, const void *bytes, unsigned length)
 General purpose hash function.
unsigned int BDB_Uint4Hash (DB *, const void *bytes, unsigned length)
 Hash method for databases with a single (unique) UInt4 key.


Function Documentation

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.

Definition at line 421 of file bdb_types.cpp.

References CByteSwap::GetDouble().

Referenced by CBDB_FieldDouble::GetCompareFunction().

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.

Definition at line 411 of file bdb_types.cpp.

References CByteSwap::GetFloat().

Referenced by CBDB_FieldFloat::GetCompareFunction().

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.

Definition at line 392 of file bdb_types.cpp.

References CByteSwap::GetInt2().

Referenced by CBDB_FieldInt2::GetCompareFunction().

int BDB_ByteSwap_Int4Compare DB ,
const DBT val1,
const DBT val2
 

Definition at line 383 of file bdb_types.cpp.

References CByteSwap::GetInt4().

Referenced by BDB_ByteSwap_IntCompare(), CBDB_FieldInt4::GetCompareFunction(), and CBDB_IdFile::SetCmp().

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.

Definition at line 360 of file bdb_types.cpp.

References CByteSwap::GetInt8().

Referenced by CBDB_FieldInt8::GetCompareFunction().

NCBI_DEPRECATED int BDB_ByteSwap_IntCompare 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.

Definition at line 378 of file bdb_types.cpp.

References BDB_ByteSwap_Int4Compare().

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.

Definition at line 401 of file bdb_types.cpp.

References CByteSwap::GetInt2().

Referenced by CBDB_FieldUint2::GetCompareFunction().

int BDB_ByteSwap_Uint4Compare DB ,
const DBT val1,
const DBT val2
 

Definition at line 351 of file bdb_types.cpp.

References CByteSwap::GetInt4().

Referenced by BDB_ByteSwap_UintCompare(), CBDB_FieldUint4::GetCompareFunction(), and CBDB_LobFile::SetCmp().

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.

Definition at line 369 of file bdb_types.cpp.

References CByteSwap::GetInt8().

Referenced by CBDB_FieldUint8::GetCompareFunction().

NCBI_DEPRECATED int BDB_ByteSwap_UintCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "unsigned int" keys.

Used when the data file is in a different byte order architecture.

Definition at line 346 of file bdb_types.cpp.

References BDB_ByteSwap_Uint4Compare().

int BDB_CharCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "char" keys.

Definition at line 193 of file bdb_types.cpp.

Referenced by CBDB_FieldChar::GetCompareFunction().

int BDB_Compare DB db,
const DBT val1,
const DBT val2
 

General purpose DBD comparison function.

Definition at line 284 of file bdb_types.cpp.

References _ASSERT, IBDB_Field::Compare(), CBDB_BufferManager::FieldCount(), CBDB_BufferManager::GetField(), CBDB_BufferManager::GetFieldCompareLimit(), and CBDB_BufferManager::IsByteSwapped().

Referenced by CBDB_BufferManager::GetCompareFunction(), and CBDB_Field::GetCompareFunction().

int BDB_DoubleCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "double" keys.

Definition at line 225 of file bdb_types.cpp.

Referenced by CBDB_FieldDouble::GetCompareFunction().

int BDB_FixedByteStringCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented fixed length string keys.

Definition at line 244 of file bdb_types.cpp.

References _ASSERT.

Referenced by CBDB_FieldFixedByteString::GetCompareFunction().

int BDB_FloatCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "float" keys.

Definition at line 211 of file bdb_types.cpp.

Referenced by CBDB_FieldFloat::GetCompareFunction().

unsigned int BDB_Hash DB ,
const void *  bytes,
unsigned  length
 

General purpose hash function.

Definition at line 319 of file bdb_types.cpp.

References buf.

Referenced by BDB_Uint4Hash(), CBDB_BufferManager::GetHashFunction(), and CBDB_RawFile::SetHash().

int BDB_Int2Compare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "short int" keys.

Definition at line 165 of file bdb_types.cpp.

Referenced by CBDB_FieldInt2::GetCompareFunction().

int BDB_Int4Compare DB ,
const DBT val1,
const DBT val2
 

Definition at line 151 of file bdb_types.cpp.

Referenced by BDB_IntCompare(), CBDB_FieldInt4::GetCompareFunction(), and CBDB_IdFile::SetCmp().

int BDB_Int8Compare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "Int8" keys.

Definition at line 118 of file bdb_types.cpp.

Referenced by CBDB_FieldInt8::GetCompareFunction().

NCBI_DEPRECATED int BDB_IntCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "int" keys.

Definition at line 146 of file bdb_types.cpp.

References BDB_Int4Compare().

int BDB_LStringCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented length prefixed string keys.

Definition at line 254 of file bdb_types.cpp.

References CBDB_BufferManager::IsLegacyStrings(), and s_GetLString().

Referenced by CBDB_FieldLString::GetCompareFunction().

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.

Definition at line 279 of file bdb_types.cpp.

References NStr::strcasecmp().

Referenced by CBDB_FieldStringCase::GetCompareFunction().

int BDB_StringCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "C string" keys.

Definition at line 239 of file bdb_types.cpp.

References util::strcmp().

Referenced by CBDB_FieldString::GetCompareFunction().

int BDB_UCharCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "unsigned char" keys.

Definition at line 202 of file bdb_types.cpp.

Referenced by CBDB_FieldUChar::GetCompareFunction().

int BDB_Uint2Compare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "unsigned short int" keys.

Definition at line 179 of file bdb_types.cpp.

Referenced by CBDB_FieldUint2::GetCompareFunction().

int BDB_Uint4Compare DB ,
const DBT val1,
const DBT val2
 

Definition at line 104 of file bdb_types.cpp.

Referenced by BDB_UintCompare(), CBDB_FieldUint4::GetCompareFunction(), and CBDB_LobFile::SetCmp().

unsigned int BDB_Uint4Hash DB ,
const void *  bytes,
unsigned  length
 

Hash method for databases with a single (unique) UInt4 key.

Definition at line 333 of file bdb_types.cpp.

References BDB_Hash().

Referenced by CBDB_IdBlobFile::SetHash().

int BDB_Uint8Compare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "Uint8" keys.

Definition at line 132 of file bdb_types.cpp.

Referenced by CBDB_FieldUint8::GetCompareFunction().

NCBI_DEPRECATED int BDB_UintCompare DB ,
const DBT val1,
const DBT val2
 

Simple and fast comparison function for tables with non-segmented "unsigned int" keys.

Definition at line 99 of file bdb_types.cpp.

References BDB_Uint4Compare().


Generated on Mon Dec 7 16:02:08 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:36 2009 by modify_doxy.py rev. 173732