BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS > Class Template Reference

#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_PointerBitsPairoperator= (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)
 

Detailed Description

template<class t_TYPE, unsigned t_NUM_BITS>
class bdlb::NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS >

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.

See bdlb_nullableallocatedvalue_pointerbitspair

Constructor & Destructor Documentation

◆ NullableAllocatedValue_PointerBitsPair()

template<class t_TYPE , unsigned t_NUM_BITS>
bdlb::NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS >::NullableAllocatedValue_PointerBitsPair ( const NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS > &  original)
default

Create a NullableAllocatedValue_PointerBitsPair having the same value as the specified original object.

◆ ~NullableAllocatedValue_PointerBitsPair()

template<class t_TYPE , unsigned t_NUM_BITS>
bdlb::NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS >::~NullableAllocatedValue_PointerBitsPair ( )
default

Member Function Documentation

◆ operator=()

template<class t_TYPE , unsigned t_NUM_BITS>
NullableAllocatedValue_PointerBitsPair & bdlb::NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS >::operator= ( const NullableAllocatedValue_PointerBitsPair< t_TYPE, t_NUM_BITS > &  rhs)
default

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.


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