#include <bdlar_nullablevalueref.h>
◆ CategoryTag
◆ NullableValueConstRef() [1/3]
template<class t_NULLABLE >
| bdlar::NullableValueConstRef::NullableValueConstRef |
( |
const t_NULLABLE & |
nullable, |
|
|
typename bsl::enable_if< IsNullable< t_NULLABLE >::value >::type * |
= 0 |
|
) |
| |
|
inlineexplicit |
◆ NullableValueConstRef() [2/3]
| bdlar::NullableValueConstRef::NullableValueConstRef |
( |
const void * |
objectAddress, |
|
|
const NullableValueConstVtable * |
vtable |
|
) |
| |
|
inline |
Create NullableValueConstRef object.
- Precondition
- The behaviour is undefined unless
objectAddress and vtable point to the valid objects.
◆ NullableValueConstRef() [3/3]
| bdlar::NullableValueConstRef::NullableValueConstRef |
( |
const NullableValueRef & |
object | ) |
|
|
inline |
◆ accessValue()
template<class t_ACCESSOR >
| int bdlar::NullableValueConstRef::accessValue |
( |
t_ACCESSOR & |
accessor | ) |
const |
|
inline |
Invoke the specified accessor on the referred non-null value. The supplied accessor must be a callable type that can be called as if it had the following signature:
int accessor(const VALUE& refOrValue);
Return the value from the invocation of accessor.
- Precondition
- The behavior is undefined if the referred object is null.
◆ isNull()
| bool bdlar::NullableValueConstRef::isNull |
( |
| ) |
const |
|
inline |
Return true if the referred object contains a null value, and false otherwise.
◆ objectAddress()
| const void * bdlar::NullableValueConstRef::objectAddress |
( |
| ) |
const |
|
inline |
Return a pointer to the wrapped object.
◆ valueCategory()
Return the value type category.
◆ vtable()
Return a pointer to the vtable.
◆ xsdName()
| const char * bdlar::NullableValueConstRef::xsdName |
( |
int |
format | ) |
const |
|
inline |
The documentation for this class was generated from the following file: