Quick Links:

bal | bbl | bdl | bsl

Classes | Functions

bdlat_NullableValueFunctions Namespace Reference
[Component bdlat_nullablevaluefunctions]

Classes

struct  IsNullableValue
struct  IsNullableValue< bdlb::NullableValue< TYPE > >
struct  ValueType< bdlb::NullableValue< TYPE > >
struct  IsNullableValue< bdlb::NullableAllocatedValue< TYPE > >
struct  ValueType< bdlb::NullableAllocatedValue< TYPE > >

Functions

template<class TYPE >
void makeValue (TYPE *object)
template<class TYPE , class MANIPULATOR >
int manipulateValue (TYPE *object, MANIPULATOR &manipulator)
template<class TYPE , class ACCESSOR >
int accessValue (const TYPE &object, ACCESSOR &accessor)
template<class TYPE >
bool isNull (const TYPE &object)
template<class TYPE >
void bdlat_nullableValueMakeValue (bdlb::NullableValue< TYPE > *object)
template<class TYPE , class MANIPULATOR >
int bdlat_nullableValueManipulateValue (bdlb::NullableValue< TYPE > *object, MANIPULATOR &manipulator)
template<class TYPE , class ACCESSOR >
int bdlat_nullableValueAccessValue (const bdlb::NullableValue< TYPE > &object, ACCESSOR &accessor)
template<class TYPE >
bool bdlat_nullableValueIsNull (const bdlb::NullableValue< TYPE > &object)
template<class TYPE >
void bdlat_nullableValueMakeValue (bdlb::NullableAllocatedValue< TYPE > *object)
template<class TYPE , class MANIPULATOR >
int bdlat_nullableValueManipulateValue (bdlb::NullableAllocatedValue< TYPE > *object, MANIPULATOR &manipulator)
template<class TYPE , class ACCESSOR >
int bdlat_nullableValueAccessValue (const bdlb::NullableAllocatedValue< TYPE > &object, ACCESSOR &accessor)
template<class TYPE >
bool bdlat_nullableValueIsNull (const bdlb::NullableAllocatedValue< TYPE > &object)

Function Documentation

template<class TYPE >
void bdlat_NullableValueFunctions::makeValue ( TYPE *  object  ) 

Assign to the specified "nullable" object the default value for the contained type.

Referenced by bsl::optional< bsl::string >::operator UnspecifiedBool(), and bsl::function< void(const bsl::string &prefix, bsl::istream &stream)>::operator UnspecifiedBool().

template<class TYPE , class MANIPULATOR >
int bdlat_NullableValueFunctions::manipulateValue ( TYPE *  object,
MANIPULATOR &  manipulator 
)

Invoke the specified manipulator on the address of the value stored in the specified "nullable" object. Return the value from the invocation of manipulator. The behavior is undefined unless object does not contain a null value.

template<class TYPE , class ACCESSOR >
int bdlat_NullableValueFunctions::accessValue ( const TYPE &  object,
ACCESSOR &  accessor 
)

Invoke the specified accessor on the non-modifiable value stored in the specified "nullable" object. Return the value from the invocation of accessor. The behavior is undefined unless object does not contain a null value.

template<class TYPE >
bool bdlat_NullableValueFunctions::isNull ( const TYPE &  object  ) 

Return true if the specified "nullable" object contains a null value, and false otherwise.

Referenced by balxml::TypesPrintUtilImp_PrintListElementDefault::operator()().

template<class TYPE >
void bdlat_NullableValueFunctions::bdlat_nullableValueMakeValue ( bdlb::NullableValue< TYPE > *  object  ) 
template<class TYPE , class MANIPULATOR >
int bdlat_NullableValueFunctions::bdlat_nullableValueManipulateValue ( bdlb::NullableValue< TYPE > *  object,
MANIPULATOR &  manipulator 
)
template<class TYPE , class ACCESSOR >
int bdlat_NullableValueFunctions::bdlat_nullableValueAccessValue ( const bdlb::NullableValue< TYPE > &  object,
ACCESSOR &  accessor 
)
template<class TYPE >
bool bdlat_NullableValueFunctions::bdlat_nullableValueIsNull ( const bdlb::NullableValue< TYPE > &  object  ) 
template<class TYPE >
void bdlat_NullableValueFunctions::bdlat_nullableValueMakeValue ( bdlb::NullableAllocatedValue< TYPE > *  object  ) 
template<class TYPE , class MANIPULATOR >
int bdlat_NullableValueFunctions::bdlat_nullableValueManipulateValue ( bdlb::NullableAllocatedValue< TYPE > *  object,
MANIPULATOR &  manipulator 
)
template<class TYPE , class ACCESSOR >
int bdlat_NullableValueFunctions::bdlat_nullableValueAccessValue ( const bdlb::NullableAllocatedValue< TYPE > &  object,
ACCESSOR &  accessor 
)
template<class TYPE >
bool bdlat_NullableValueFunctions::bdlat_nullableValueIsNull ( const bdlb::NullableAllocatedValue< TYPE > &  object  )