|
BDE 4.39.x Production Release
|
#include <bslalg_hashtableanchor.h>
This complex constrained in-*core* (value-semantic) attribute class characterizes the key data elements of a hash table. See the [](#Attributes) section information on the class attributes.
This class:
bdex serialization and default constructionconst thread-safe For terminology see bsldoc_glossary .Public Member Functions | |
| BSLMF_NESTED_TRAIT_DECLARATION (HashTableAnchor, bslmf::IsBitwiseCopyable) | |
| HashTableAnchor (HashTableBucket *bucketArrayAddress, std::size_t bucketArraySize, BidirectionalLink *listRootAddress) | |
| HashTableAnchor (const HashTableAnchor &original)=default | |
| ~HashTableAnchor () | |
| void | setBucketArrayAddressAndSize (HashTableBucket *bucketArrayAddress, std::size_t bucketArraySize) |
| void | setListRootAddress (BidirectionalLink *value) |
| void | swap (HashTableAnchor &other) |
| HashTableBucket * | bucketArrayAddress () const |
| std::size_t | bucketArraySize () const |
| BidirectionalLink * | listRootAddress () const |
|
inline |
Create a bslalg::HashTableAnchor object having the specified bucketArrayAddress, bucketArraySize, and listRootAddress attributes.
bucketArrayAddress refers to a contiguous sequence of valid bslalg::HashTableBucket objects of at least bucketArraySize or unless both bucketArrayAddress and bucketArraySize are 0.
|
default |
Create a bslalg::HashTableAnchor object having the same value as the specified original object.
| bslalg::HashTableAnchor::~HashTableAnchor | ( | ) |
Destroy this object.
| bslalg::HashTableAnchor::BSLMF_NESTED_TRAIT_DECLARATION | ( | HashTableAnchor | , |
| bslmf::IsBitwiseCopyable | |||
| ) |
|
inline |
Return the value of the bucketArrayAddress attribute of this object.
|
inline |
Return the value of the bucketArraySize attribute of this object.
|
inline |
Return the value listRootAddress attribute of this object.
|
inline |
Set the bucket array address and bucket array size attributes of this object to the specified bucketArrayAddress and bucketArraySize values.
bucketArrayAddress refers to a contiguous sequence of valid bslalg::HashTableBucket objects of at least bucketArraySize, or unless both bucketArrayAddress and bucketArraySize are 0.
|
inline |
Set the listRootAddress attribute of this object to the specified value.
|
inline |
Efficiently exchange the value of this object with the value of the specified other object. This method provides the no-throw exception-safety guarantee.