BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdld::DatumMutableArrayRef Class Reference

#include <bdld_datum.h>

Public Types

typedef Datum::SizeType SizeType
 

Public Member Functions

 DatumMutableArrayRef ()
 Create a DatumMutableArrayRef object that refers to no array.
 
 DatumMutableArrayRef (Datum *data, SizeType *length, SizeType capacity)
 
 DatumMutableArrayRef (const DatumMutableArrayRef &original)=default
 
 ~DatumMutableArrayRef ()=default
 
DatumMutableArrayRefoperator= (const DatumMutableArrayRef &rhs)=default
 
void * allocatedPtr () const
 Return pointer to the memory allocated for the array.
 
Datumdata () const
 Return pointer to the first element of the held array.
 
SizeTypelength () const
 Return pointer to the length of the array.
 
SizeType capacity () const
 Return the allocated capacity of the array.
 

Detailed Description

This class provides mutable access to a datum array. The users of this class can read from and assign to the individual elements as well as change the length of the array.

See bdld_datum

Member Typedef Documentation

◆ SizeType

SizeType is an alias for an unsigned integral value, representing the capacity of a datum array.

Constructor & Destructor Documentation

◆ DatumMutableArrayRef() [1/3]

bdld::DatumMutableArrayRef::DatumMutableArrayRef ( )
inline

◆ DatumMutableArrayRef() [2/3]

bdld::DatumMutableArrayRef::DatumMutableArrayRef ( Datum data,
SizeType length,
SizeType  capacity 
)
inline

Create a DatumMutableArrayRef object having the specified data, length, and capacity.

◆ DatumMutableArrayRef() [3/3]

bdld::DatumMutableArrayRef::DatumMutableArrayRef ( const DatumMutableArrayRef original)
default

Create a DatumMutableArrayRef having the value of the specified original object. Note that this method's definition is compiler generated.

◆ ~DatumMutableArrayRef()

bdld::DatumMutableArrayRef::~DatumMutableArrayRef ( )
default

Destroy this object. Note that this method's definition is compiler generated.

Member Function Documentation

◆ allocatedPtr()

void * bdld::DatumMutableArrayRef::allocatedPtr ( ) const
inline

◆ capacity()

DatumMutableArrayRef::SizeType bdld::DatumMutableArrayRef::capacity ( ) const
inline

◆ data()

Datum * bdld::DatumMutableArrayRef::data ( ) const
inline

◆ length()

DatumMutableArrayRef::SizeType * bdld::DatumMutableArrayRef::length ( ) const
inline

◆ operator=()

DatumMutableArrayRef & bdld::DatumMutableArrayRef::operator= ( const DatumMutableArrayRef rhs)
default

Assign to this object the value of the specified rhs object. Note that this method's definition is compiler generated.


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