BDE 4.39.x Production Release
Loading...
Searching...
No Matches

Classes

struct  BaseType
 
struct  BaseType< bdlar::CustomizedTypeConstRef >
 
struct  BaseType< bdlar::CustomizedTypeRef >
 
struct  BaseType< s_baltst::TestCustomizedType< VALUE_TYPE, BASE_TYPE > >
 
struct  BaseType< s_baltst::TestDynamicType< VALUE_TYPE > >
 
struct  BaseType< s_baltst::TestTaggedValue< TAG_TYPE, VALUE_TYPE > >
 
struct  IsCustomizedType
 
struct  IsCustomizedType< bdlar::CustomizedTypeConstRef >
 
struct  IsCustomizedType< bdlar::CustomizedTypeRef >
 
struct  IsCustomizedType< s_baltst::TestCustomizedType< VALUE_TYPE, BASE_TYPE > >
 
struct  IsCustomizedType< s_baltst::TestDynamicType< VALUE_TYPE > >
 
struct  IsCustomizedType< s_baltst::TestTaggedValue< TAG_TYPE, VALUE_TYPE > >
 

Functions

template<class t_TYPE , class t_MANIPULATOR >
int createBaseAndConvert (t_TYPE *object, t_MANIPULATOR &baseManipulator)
 
template<class TYPE , class BASE_TYPE >
int convertFromBaseType (TYPE *object, const BASE_TYPE &value)
 
template<class TYPE >
const BaseType< TYPE >::Type & convertToBaseType (const TYPE &object)
 
template<class t_TYPE , class t_MANIPULATOR >
int bdlat_customizedTypeCreateBaseAndConvert (t_TYPE *object, t_MANIPULATOR &baseManipulator)
 
template<class TYPE , class BASE_TYPE >
int bdlat_customizedTypeConvertFromBaseType (TYPE *object, const BASE_TYPE &value)
 
template<class TYPE >
const BaseType< TYPE >::Type & bdlat_customizedTypeConvertToBaseType (const TYPE &object)
 

Detailed Description

This namespace provides functions that expose "customized type" behavior for "customized type" types. See the component-level documentation for more information.

This namespace declaration adds the default implementations of the "customized type" customization-point functions to bdlat_CustomizedTypeFunctions. These default implementations assume the type of the acted-upon object has member functions to convert to and from "simple" types.

Function Documentation

◆ bdlat_customizedTypeConvertFromBaseType()

template<class TYPE , class BASE_TYPE >
int bdlat_CustomizedTypeFunctions::bdlat_customizedTypeConvertFromBaseType ( TYPE *  object,
const BASE_TYPE &  value 
)

◆ bdlat_customizedTypeConvertToBaseType()

template<class TYPE >
const BaseType< TYPE >::Type & bdlat_CustomizedTypeFunctions::bdlat_customizedTypeConvertToBaseType ( const TYPE &  object)

◆ bdlat_customizedTypeCreateBaseAndConvert()

template<class t_TYPE , class t_MANIPULATOR >
int bdlat_CustomizedTypeFunctions::bdlat_customizedTypeCreateBaseAndConvert ( t_TYPE *  object,
t_MANIPULATOR &  baseManipulator 
)

◆ convertFromBaseType()

template<class TYPE , class BASE_TYPE >
int bdlat_CustomizedTypeFunctions::convertFromBaseType ( TYPE *  object,
const BASE_TYPE &  value 
)

Convert from the specified value to the specified customized object. Return 0 if successful and non-zero otherwise.

◆ convertToBaseType()

template<class TYPE >
const BaseType< TYPE >::Type & bdlat_CustomizedTypeFunctions::convertToBaseType ( const TYPE &  object)

Load into the specified result the value of the specified object.

◆ createBaseAndConvert()

template<class t_TYPE , class t_MANIPULATOR >
int bdlat_CustomizedTypeFunctions::createBaseAndConvert ( t_TYPE *  object,
t_MANIPULATOR &  baseManipulator 
)

Create an uninitialized value of the base type, apply the specified baseManipulator to it, then call the bdlat_CustomizedTypeFunctions::convertFromBaseType function with the specified object and the value.