This concrete mechanism class provides "sugar" for easily creating bdld::Datum objects for testing.

Synopsis

Declared in <bdld_datummaker.h>

class DatumMaker;

Type Aliases

Name

Description

AllocatorType

Allocator type used to supply memory for constructed Datum values.

Member Functions

Name

Description

DatumMaker [constructor]

Create a DatumMaker that uses the specified allocator.

a

Return a bdld::Datum having an array value of the specified elements.

allocator

Return get_allocator().mechanism().

bin

Return a binary bdld::Datum that is a copy of the given memory.

get_allocator

Return the allocator used by this object to supply memory.

im

Return a bdld::Datum integer‐map from the specified entries.

m

Return a bdld::Datum map from the specified entries.

mok

Return a bdld::Datum map with owned keys from the specified entries.

operator()

Function call operators

ref

Return a bdld::Datum that references, but does not own, string.

Created with MrDocs