[#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 new `DatumMaker` object that uses the specified `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory for the created `bdld&colon;&colon;Datum` objects&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` having a value that is the copy of the memory area described by the specified `pointer` and `size`&period;
| xref:BloombergLP/bdld/DatumMaker/get_allocator.adoc[`get&lowbar;allocator`] 
| Return the allocator used by this object to supply memory&period; Note that if no allocator was supplied at construction the default allocator in effect at construction is used&period;
| xref:BloombergLP/bdld/DatumMaker/im.adoc[`im`] 
| Return a `bdld&colon;&colon;Datum` object containing an integer&hyphen;map of the specified `entries`&period; The `entries` are supplied in pairs (supplying an odd number will result in a compilation failure) where the first supplied argument is an integer key, and the second is its corresponding value&period; The behavior is undefined if the same key is supplied more than once&period;
| xref:BloombergLP/bdld/DatumMaker/m.adoc[`m`] 
| Return a `bdld&colon;&colon;Datum` object containing a map of the specified `entries`&period; The `entries` are supplied as pairs (odd number of `sizeof&period;&period;&period;(entries)` being an error) where the first specified element is the key, and the second is its corresponding value&period; The behavior is undefined if the same key is supplied more than once&period;
| xref:BloombergLP/bdld/DatumMaker/mok.adoc[`mok`] 
| Return a `bdld&colon;&colon;Datum` object containing a map with owned keys consisting of the specified `entries`&period; The `entries` are supplied as pairs (odd number of `sizeof&period;&period;&period;(entries)` being an error) where the first specified element is the key, and the second is its corresponding value&period; The behavior is undefined if the same key is supplied more than once&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` object that references, but does not own the specified `string`, possibly using the allocator of this object to obtain memory&period; Note that this can be used to refer to string literals&period; See `bdld&colon;&colon;Datum&colon;&colon;createStringRef()`&period;
|===



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