This concrete mechanism class provides "sugar" for easily creating bdld::Datum objects for testing.
Declared in <bdld_datummaker.h>
class DatumMaker;
| Name | Description |
|---|---|
AllocatorType | Allocator type used to supply memory for constructed Datum values. |
| Name | Description |
|---|---|
DatumMaker [constructor] | Create a new DatumMaker object that uses the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory for the created bdld::Datum objects. |
a | Return a bdld::Datum having an array value of the specified elements. |
allocator | Return get_allocator().mechanism(). |
bin | Return a binary bdld::Datum having a value that is the copy of the memory area described by the specified pointer and size. |
get_allocator | Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used. |
im | Return a bdld::Datum object containing an integer-map of the specified entries. 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. The behavior is undefined if the same key is supplied more than once. |
m | Return a bdld::Datum object containing a map of the specified entries. The entries are supplied as pairs (odd number of sizeof...(entries) being an error) where the first specified element is the key, and the second is its corresponding value. The behavior is undefined if the same key is supplied more than once. |
mok | Return a bdld::Datum object containing a map with owned keys consisting of the specified entries. The entries are supplied as pairs (odd number of sizeof...(entries) being an error) where the first specified element is the key, and the second is its corresponding value. The behavior is undefined if the same key is supplied more than once. |
operator() | Function call operators |
ref | Return a bdld::Datum object that references, but does not own the specified string, possibly using the allocator of this object to obtain memory. Note that this can be used to refer to string literals. See bdld::Datum::createStringRef(). |