BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::CompactedArray_CountedValue< TYPE > Struct Template Reference

#include <bdlc_compactedarray.h>

Public Member Functions

 CompactedArray_CountedValue (const TYPE &value, bsl::size_t count, bslma::Allocator *basicAllocator)
 
 CompactedArray_CountedValue (const CompactedArray_CountedValue< TYPE > &original, bslma::Allocator *basicAllocator)
 
 ~CompactedArray_CountedValue ()
 Destroy this object.
 
CompactedArray_CountedValueoperator= (const CompactedArray_CountedValue< TYPE > &rhs)
 

Public Attributes

bsls::ObjectBuffer< TYPE > d_value
 
bsl::size_t d_count
 

Detailed Description

template<class TYPE>
struct bdlc::CompactedArray_CountedValue< TYPE >

This struct represents a reference-counted value. Note that comparison of d_count is intentionally omitted from the free equality-comparison operators of this class.

Constructor & Destructor Documentation

◆ CompactedArray_CountedValue() [1/2]

template<class TYPE >
bdlc::CompactedArray_CountedValue< TYPE >::CompactedArray_CountedValue ( const TYPE &  value,
bsl::size_t  count,
bslma::Allocator basicAllocator 
)
inline

Create a CompactedArray_CountedValue having the specified value and reference count. The specified basicAllocator is used to supply memory. The behavior is undefined unless 0 != basicAllocator.

◆ CompactedArray_CountedValue() [2/2]

template<class TYPE >
bdlc::CompactedArray_CountedValue< TYPE >::CompactedArray_CountedValue ( const CompactedArray_CountedValue< TYPE > &  original,
bslma::Allocator basicAllocator 
)
inline

Create a CompactedArray_CountedValue having the same underlying object value and reference count as the specified original object. The specified basicAllocator is used to supply memory. The behavior is undefined unless 0 != basicAllocator.

◆ ~CompactedArray_CountedValue()

template<class TYPE >
bdlc::CompactedArray_CountedValue< TYPE >::~CompactedArray_CountedValue ( )
inline

Member Function Documentation

◆ operator=()

template<class TYPE >
CompactedArray_CountedValue< TYPE > & bdlc::CompactedArray_CountedValue< TYPE >::operator= ( const CompactedArray_CountedValue< TYPE > &  rhs)
inline

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

Member Data Documentation

◆ d_count

template<class TYPE >
bsl::size_t bdlc::CompactedArray_CountedValue< TYPE >::d_count

◆ d_value

template<class TYPE >
bsls::ObjectBuffer<TYPE> bdlc::CompactedArray_CountedValue< TYPE >::d_value

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