[#BloombergLP-bdld-DatumMaker] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::DatumMaker :relfileprefix: ../../ :mrdocs: This concrete mechanism class provides "sugar" for easily creating `bdld::Datum` objects for testing. == Synopsis Declared in `<bdld_datummaker.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DatumMaker; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdld/DatumMaker/AllocatorType.adoc[`AllocatorType`] | Allocator type used to supply memory for constructed `Datum` values. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdld/DatumMaker/2constructor.adoc[`DatumMaker`] [.small]#[constructor]# | Create a `DatumMaker` that uses the specified `allocator`. | xref:BloombergLP/bdld/DatumMaker/a.adoc[`a`] | Return a `bdld::Datum` having an array value of the specified `elements`. | xref:BloombergLP/bdld/DatumMaker/allocator.adoc[`allocator`] | Return `get_allocator().mechanism()`. | xref:BloombergLP/bdld/DatumMaker/bin.adoc[`bin`] | Return a binary `bdld::Datum` that is a copy of the given memory. | xref:BloombergLP/bdld/DatumMaker/get_allocator.adoc[`get_allocator`] | Return the allocator used by this object to supply memory. | xref:BloombergLP/bdld/DatumMaker/im.adoc[`im`] | Return a `bdld::Datum` integer‐map from the specified `entries`. | xref:BloombergLP/bdld/DatumMaker/m.adoc[`m`] | Return a `bdld::Datum` map from the specified `entries`. | xref:BloombergLP/bdld/DatumMaker/mok.adoc[`mok`] | Return a `bdld::Datum` map with owned keys from the specified entries. | xref:BloombergLP/bdld/DatumMaker/operator_call-030.adoc[`operator()`] | Function call operators | xref:BloombergLP/bdld/DatumMaker/ref.adoc[`ref`] | Return a `bdld::Datum` that references, but does not own, `string`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#