#include <bdld_datummaker.h>
This concrete mechanism class provides "sugar" for easily creating bdld::Datum objects for testing.
See bdld_datummaker
◆ AllocatorType
◆ DatumMaker()
◆ a()
template<typename... ELEMENTS>
| bdld::Datum bdld::DatumMaker::a |
( |
const ELEMENTS &... |
elements | ) |
const |
|
inline |
Return a bdld::Datum having an array value of the specified elements.
◆ allocator()
◆ bin()
| bdld::Datum bdld::DatumMaker::bin |
( |
const void * |
pointer, |
|
|
bsl::size_t |
size |
|
) |
| const |
|
inline |
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()
template<typename... ENTRIES>
| bdld::Datum bdld::DatumMaker::im |
( |
const ENTRIES &... |
entries | ) |
const |
|
inline |
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()
template<typename... ENTRIES>
| bdld::Datum bdld::DatumMaker::m |
( |
const ENTRIES &... |
entries | ) |
const |
|
inline |
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()
template<typename... ENTRIES>
| bdld::Datum bdld::DatumMaker::mok |
( |
const ENTRIES &... |
entries | ) |
const |
|
inline |
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()() [1/23]
◆ operator()() [2/23]
◆ operator()() [3/23]
| bdld::Datum bdld::DatumMaker::operator() |
( |
bool |
value | ) |
const |
|
inline |
◆ operator()() [4/23]
◆ operator()() [5/23]
Return a bdld::Datum having the specified value, or null if value is unset.
◆ operator()() [6/23]
◆ operator()() [7/23]
Return a bdld::Datum having the specified size number of elements. Note that where possible, no memory is allocated - arrays are returned as references. Note that DatumMapRef and DatumIntMapRef are not supported at the moment.
◆ operator()() [8/23]
◆ operator()() [9/23]
◆ operator()() [10/23]
◆ operator()() [11/23]
◆ operator()() [12/23]
◆ operator()() [13/23]
◆ operator()() [14/23]
◆ operator()() [15/23]
◆ operator()() [16/23]
◆ operator()() [17/23]
◆ operator()() [18/23]
◆ operator()() [19/23]
Return a bdld::Datum having the specified value. Note that where possible, no memory is allocated - array are returned as references. Note that DatumMapRef and DatumIntMapRef are not supported at the moment.
◆ operator()() [20/23]
Return a bdld::Datum having the specified value. The returned bdld::Datum object will contain a deep-copy of value.
◆ operator()() [21/23]
| bdld::Datum bdld::DatumMaker::operator() |
( |
const char * |
value | ) |
const |
|
inline |
◆ operator()() [22/23]
| bdld::Datum bdld::DatumMaker::operator() |
( |
double |
value | ) |
const |
|
inline |
◆ operator()() [23/23]
| bdld::Datum bdld::DatumMaker::operator() |
( |
int |
value | ) |
const |
|
inline |
◆ 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().
The documentation for this class was generated from the following file: