BloombergLP::bdld::DatumIntMapBuilder

Mechanism to build a Datum object having an int-map value.

Synopsis

Declared in <bdld_datumintmapbuilder.h>

class DatumIntMapBuilder;

Description

This class provides a mechanism to build a Datum object having an int-map value in an exception-safe manner. See bdld_datum for more information about integer maps.

Type Aliases

NameDescription
SizeType SizeType is an alias for a unsigned integral value, representing the capacity or size of a datum int-map.
allocator_type Allocator type used by this builder.

Member Functions

NameDescription
DatumIntMapBuilder [constructor]Constructors
~DatumIntMapBuilder [destructor]Destroy this object.
append Append the specified array entries having the specified size to the Datum int-map being build by this object.
capacity Return the capacity of the held Datum int-map.
commit Return a Datum int-map value holding the elements supplied to pushBack or append.
get_allocator Return the allocator used by this object to supply memory.
pushBack Append the entry with the specified key and the specified value to the Datum int-map being build by this object.
setSorted Mark the Datum int-map being built by this object as sorted if the specified value is true and mark it unsorted otherwise.
size Return the size of the held Datum int-map. The behavior is undefined if commit or sortAndCommit has already been called on this object.
sortAndCommit Return a Datum int-map value holding the elements supplied to pushBack or append sorted by their keys.
operator BloombergLP::bslmf::NestedTraitDeclaration<DatumIntMapBuilder, UsesBslmaAllocator> Declare that this type uses a bslma allocator.