BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::HashTableDefaultTraits Struct Reference

#include <bdlc_hashtable.h>

Static Public Member Functions

template<class BUCKET >
static void load (BUCKET *dstBucket, const BUCKET &srcBucket)
 Load the specified srcBucket into the specified dstBucket.
 
template<class KEY >
static bool areEqual (const KEY &key1, const KEY &key2)
 
static bool areEqual (const ConstCharPtr &key1, const ConstCharPtr &key2)
 
template<class BUCKET >
static bool isNull (const BUCKET &bucket)
 
static bool isNull (const bsl::string &bucket)
 
static bool isNull (const ConstCharPtr &bucket)
 
template<class KEY , class VALUE >
static bool isNull (const bsl::pair< KEY, VALUE > &bucket)
 
template<class BUCKET >
static void setToNull (BUCKET *bucket)
 Load a null value into the specified bucket.
 
static void setToNull (bsl::string *bucket)
 
static void setToNull (ConstCharPtr *bucket)
 
template<class KEY , class VALUE >
static void setToNull (bsl::pair< KEY, VALUE > *bucket)
 
template<class BUCKET >
static bool isRemoved (const BUCKET &bucket)
 
static bool isRemoved (const bsl::string &bucket)
 
static bool isRemoved (const ConstCharPtr &bucket)
 
template<class KEY , class VALUE >
static bool isRemoved (const bsl::pair< KEY, VALUE > &bucket)
 
template<class BUCKET >
static void setToRemoved (BUCKET *bucket)
 Load a removed value into the specified bucket.
 
static void setToRemoved (bsl::string *bucket)
 
static void setToRemoved (ConstCharPtr *bucket)
 
template<class KEY , class VALUE >
static void setToRemoved (bsl::pair< KEY, VALUE > *bucket)
 

Detailed Description

Default traits provided by this component. See component-level documentation for more details. Note that this class is not intended to be used by clients, but the name of this struct must be public so that clients can explicitly specify this struct when default traits are needed.

Member Function Documentation

◆ areEqual() [1/2]

bool bdlc::HashTableDefaultTraits::areEqual ( const ConstCharPtr &  key1,
const ConstCharPtr &  key2 
)
inlinestatic

◆ areEqual() [2/2]

template<class KEY >
bool bdlc::HashTableDefaultTraits::areEqual ( const KEY &  key1,
const KEY &  key2 
)
inlinestatic

Return true if the specified key1 and the specified key2 are equal, and false otherwise.

◆ isNull() [1/4]

template<class KEY , class VALUE >
bool bdlc::HashTableDefaultTraits::isNull ( const bsl::pair< KEY, VALUE > &  bucket)
inlinestatic

◆ isNull() [2/4]

bool bdlc::HashTableDefaultTraits::isNull ( const bsl::string bucket)
inlinestatic

◆ isNull() [3/4]

template<class BUCKET >
bool bdlc::HashTableDefaultTraits::isNull ( const BUCKET &  bucket)
inlinestatic

Return true if the specified bucket has a null value, and false otherwise.

◆ isNull() [4/4]

bool bdlc::HashTableDefaultTraits::isNull ( const ConstCharPtr &  bucket)
inlinestatic

◆ isRemoved() [1/4]

template<class KEY , class VALUE >
bool bdlc::HashTableDefaultTraits::isRemoved ( const bsl::pair< KEY, VALUE > &  bucket)
inlinestatic

◆ isRemoved() [2/4]

bool bdlc::HashTableDefaultTraits::isRemoved ( const bsl::string bucket)
inlinestatic

◆ isRemoved() [3/4]

template<class BUCKET >
bool bdlc::HashTableDefaultTraits::isRemoved ( const BUCKET &  bucket)
inlinestatic

Return true if the specified bucket has a removed value, and false otherwise.

◆ isRemoved() [4/4]

bool bdlc::HashTableDefaultTraits::isRemoved ( const ConstCharPtr &  bucket)
inlinestatic

◆ load()

template<class BUCKET >
void bdlc::HashTableDefaultTraits::load ( BUCKET *  dstBucket,
const BUCKET &  srcBucket 
)
inlinestatic

◆ setToNull() [1/4]

template<class KEY , class VALUE >
void bdlc::HashTableDefaultTraits::setToNull ( bsl::pair< KEY, VALUE > *  bucket)
inlinestatic

◆ setToNull() [2/4]

void bdlc::HashTableDefaultTraits::setToNull ( bsl::string bucket)
inlinestatic

◆ setToNull() [3/4]

template<class BUCKET >
void bdlc::HashTableDefaultTraits::setToNull ( BUCKET *  bucket)
inlinestatic

◆ setToNull() [4/4]

void bdlc::HashTableDefaultTraits::setToNull ( ConstCharPtr *  bucket)
inlinestatic

◆ setToRemoved() [1/4]

template<class KEY , class VALUE >
void bdlc::HashTableDefaultTraits::setToRemoved ( bsl::pair< KEY, VALUE > *  bucket)
inlinestatic

◆ setToRemoved() [2/4]

void bdlc::HashTableDefaultTraits::setToRemoved ( bsl::string bucket)
inlinestatic

◆ setToRemoved() [3/4]

template<class BUCKET >
void bdlc::HashTableDefaultTraits::setToRemoved ( BUCKET *  bucket)
inlinestatic

◆ setToRemoved() [4/4]

void bdlc::HashTableDefaultTraits::setToRemoved ( ConstCharPtr *  bucket)
inlinestatic

The documentation for this struct was generated from the following file: