[#BloombergLP-bdld-DatumMaker]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::DatumMaker
:relfileprefix: ../../
:mrdocs:

This concrete mechanism class provides &quot;sugar&quot; for easily creating `bdld&colon;&colon;Datum` objects for testing&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datummaker&period;h&gt;`

[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&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdld/DatumMaker/2constructor.adoc[`DatumMaker`]         [.small]#[constructor]#
| Create a `DatumMaker` that uses the specified `allocator`&period;
| xref:BloombergLP/bdld/DatumMaker/a.adoc[`a`] 
| Return a `bdld&colon;&colon;Datum` having an array value of the specified `elements`&period;
| xref:BloombergLP/bdld/DatumMaker/allocator.adoc[`allocator`] 
| Return `get&lowbar;allocator()&period;mechanism()`&period;
| xref:BloombergLP/bdld/DatumMaker/bin.adoc[`bin`] 
| Return a binary `bdld&colon;&colon;Datum` that is a copy of the given memory&period;
| xref:BloombergLP/bdld/DatumMaker/get_allocator.adoc[`get&lowbar;allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/bdld/DatumMaker/im.adoc[`im`] 
| Return a `bdld&colon;&colon;Datum` integer&hyphen;map from the specified `entries`&period;
| xref:BloombergLP/bdld/DatumMaker/m.adoc[`m`] 
| Return a `bdld&colon;&colon;Datum` map from the specified `entries`&period;
| xref:BloombergLP/bdld/DatumMaker/mok.adoc[`mok`] 
| Return a `bdld&colon;&colon;Datum` map with owned keys from the specified entries&period;
| xref:BloombergLP/bdld/DatumMaker/operator_call-030.adoc[`operator()`] 
| Function call operators
| xref:BloombergLP/bdld/DatumMaker/ref.adoc[`ref`] 
| Return a `bdld&colon;&colon;Datum` that references, but does not own, `string`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
