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

#include <bdld_datum.h>

Public Types

typedef Datum::SizeType SizeType
 

Public Member Functions

 DatumMutableMapOwningKeysRef ()
 Create a DatumMutableMapOwningKeysRef object.
 
 DatumMutableMapOwningKeysRef (DatumMapEntry *data, SizeType *size, SizeType allocatedSize, char *keys, bool *sorted)
 
 DatumMutableMapOwningKeysRef (const DatumMutableMapOwningKeysRef &original)=default
 
 ~DatumMutableMapOwningKeysRef ()=default
 Destroy this object.
 
DatumMutableMapOwningKeysRefoperator= (const DatumMutableMapOwningKeysRef &rhs)=default
 
SizeType allocatedSize () const
 Return the number of bytes allocated for the map.
 
void * allocatedPtr () const
 Return pointer to the memory allocated for the map.
 
DatumMapEntrydata () const
 Return pointer to the first element in the held map.
 
char * keys () const
 Return pointer to the start of the buffer where keys are stored.
 
SizeTypesize () const
 
bool * sorted () const
 

Detailed Description

This class provides mutable access to a datum key-owning map. The users of this class can assign to the individual elements, copy keys and 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

◆ DatumMutableMapOwningKeysRef() [1/3]

bdld::DatumMutableMapOwningKeysRef::DatumMutableMapOwningKeysRef ( )
inline

◆ DatumMutableMapOwningKeysRef() [2/3]

bdld::DatumMutableMapOwningKeysRef::DatumMutableMapOwningKeysRef ( DatumMapEntry data,
SizeType size,
SizeType  allocatedSize,
char *  keys,
bool *  sorted 
)
inline

Create a DatumMutableMapOwningKeysRef object having the specified data, size, allocatedSize, keys, and sorted.

◆ DatumMutableMapOwningKeysRef() [3/3]

bdld::DatumMutableMapOwningKeysRef::DatumMutableMapOwningKeysRef ( const DatumMutableMapOwningKeysRef original)
default

Create a DatumMutableMapOwningKeysRef having the value of the specified original object.

◆ ~DatumMutableMapOwningKeysRef()

bdld::DatumMutableMapOwningKeysRef::~DatumMutableMapOwningKeysRef ( )
default

Member Function Documentation

◆ allocatedPtr()

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

◆ allocatedSize()

DatumMutableMapOwningKeysRef::SizeType bdld::DatumMutableMapOwningKeysRef::allocatedSize ( ) const
inline

◆ data()

DatumMapEntry * bdld::DatumMutableMapOwningKeysRef::data ( ) const
inline

◆ keys()

char * bdld::DatumMutableMapOwningKeysRef::keys ( ) const
inline

◆ operator=()

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

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

◆ size()

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

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

◆ sorted()

bool * bdld::DatumMutableMapOwningKeysRef::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: