Quick Links: |
#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 () | |
CompactedArray_CountedValue & | operator= (const CompactedArray_CountedValue< TYPE > &rhs) |
Public Attributes | |
bsls::ObjectBuffer< TYPE > | d_value |
bsl::size_t | d_count |
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.
See Component bdlc_compactedarray
bdlc::CompactedArray_CountedValue< TYPE >::CompactedArray_CountedValue | ( | const TYPE & | value, | |
bsl::size_t | count, | |||
bslma::Allocator * | basicAllocator | |||
) |
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
.
bdlc::CompactedArray_CountedValue< TYPE >::CompactedArray_CountedValue | ( | const CompactedArray_CountedValue< TYPE > & | original, | |
bslma::Allocator * | basicAllocator | |||
) |
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
.
bdlc::CompactedArray_CountedValue< TYPE >::~CompactedArray_CountedValue | ( | ) |
Destroy this object.
CompactedArray_CountedValue& bdlc::CompactedArray_CountedValue< TYPE >::operator= | ( | const CompactedArray_CountedValue< TYPE > & | rhs | ) |
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.
bsls::ObjectBuffer<TYPE> bdlc::CompactedArray_CountedValue< TYPE >::d_value |
footprint of stored object
bsl::size_t bdlc::CompactedArray_CountedValue< TYPE >::d_count |
reference count of the stored object