|
BDE 4.14.0 Production release
|
#include <bdlb_nullableallocatedvalue_pointerbitspair.h>
Public Member Functions | |
| NullableAllocatedValue_PointerBitsPair () | |
| NullableAllocatedValue_PointerBitsPair (t_TYPE *ptr, unsigned flags=0) | |
| NullableAllocatedValue_PointerBitsPair (const NullableAllocatedValue_PointerBitsPair &original)=default | |
| ~NullableAllocatedValue_PointerBitsPair ()=default | |
| Destroy this object. | |
| bool | equal (const NullableAllocatedValue_PointerBitsPair &other) const |
| t_TYPE * | getPointer () const |
| Return the held pointer. | |
| bool | readFlag (unsigned idx) const |
| NullableAllocatedValue_PointerBitsPair & | operator= (const NullableAllocatedValue_PointerBitsPair &rhs)=default |
| void | clearFlag (unsigned idx) |
| void | setFlag (unsigned idx) |
| void | setPointer (t_TYPE *new_ptr) |
Set the held pointer to the value of the specified new_ptr. | |
| void | swap (NullableAllocatedValue_PointerBitsPair &other) |
This is a component-private class. Do not use.
This regular, value-semantic class provides a mechanism for storing a number of bit flags in the otherwise unused bits of a pointer to the template parameter class t_TYPE. The number of bits that can be stored is dependent upon the required alignment of the class t_TYPE.
|
default |
Create a NullableAllocatedValue_PointerBitsPair having the same value as the specified original object.
|
default |
|
default |
Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.