Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Public Attributes

bdlc::CompactedArray_CountedValue< TYPE > Struct Template Reference

#include <bdlc_compactedarray.h>

List of all members.

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_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.

See Component bdlc_compactedarray


Constructor & Destructor Documentation

template<class TYPE>
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.

template<class TYPE>
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.

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

Destroy this object.


Member Function Documentation

template<class TYPE>
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.


Member Data Documentation

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

footprint of stored object

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

reference count of the stored object


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