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

#include <bdld_datum.h>

Public Types

typedef Datum::SizeType SizeType
 

Public Member Functions

 DatumMutableIntMapRef ()
 Create a DatumMutableIntMapRef object.
 
 DatumMutableIntMapRef (DatumIntMapEntry *data, SizeType *size, bool *sorted)
 
 DatumMutableIntMapRef (const DatumMutableIntMapRef &original)=default
 
 ~DatumMutableIntMapRef ()=default
 
DatumMutableIntMapRefoperator= (const DatumMutableIntMapRef &rhs)=default
 
void * allocatedPtr () const
 Return pointer to the memory allocated for the map.
 
DatumIntMapEntrydata () const
 Return pointer to the first element in the (held) map.
 
SizeTypesize () const
 
bool * sorted () const
 

Detailed Description

This class provides a mutable access to a datum int-map. The users of this class can assign to the individual elements and also change the size of the map.

See bdld_datum

Member Typedef Documentation

◆ SizeType

SizeType is an alias for an unsigned integral value, representing the capacity of a datum array, the capacity of a datum map, the capacity of the keys-capacity of a datum-key-owning map or the length of a string.

Constructor & Destructor Documentation

◆ DatumMutableIntMapRef() [1/3]

bdld::DatumMutableIntMapRef::DatumMutableIntMapRef ( )
inline

◆ DatumMutableIntMapRef() [2/3]

bdld::DatumMutableIntMapRef::DatumMutableIntMapRef ( DatumIntMapEntry data,
SizeType size,
bool *  sorted 
)
inline

Create a DatumMutableIntMapRef object having the specified data, size, and sorted.

◆ DatumMutableIntMapRef() [3/3]

bdld::DatumMutableIntMapRef::DatumMutableIntMapRef ( const DatumMutableIntMapRef original)
default

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

◆ ~DatumMutableIntMapRef()

bdld::DatumMutableIntMapRef::~DatumMutableIntMapRef ( )
default

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

Member Function Documentation

◆ allocatedPtr()

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

◆ data()

DatumIntMapEntry * bdld::DatumMutableIntMapRef::data ( ) const
inline

◆ operator=()

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

◆ size()

DatumMutableIntMapRef::SizeType * bdld::DatumMutableIntMapRef::size ( ) const
inline

Return pointer to the location where the (held) map's size is stored.

◆ sorted()

bool * bdld::DatumMutableIntMapRef::sorted ( ) const
inline

Return pointer to the location where the (held) map's sorted flag is stored.


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