|
BDE 4.14.0 Production release
|
Functions | |
| template<class TYPE > | |
| int | fromInt (TYPE *result, int number) |
| template<class TYPE > | |
| int | fromString (TYPE *result, const char *string, int stringLength) |
| template<class TYPE > | |
| int | makeFallback (TYPE *result) |
| template<class TYPE > | |
| bool | hasFallback (const TYPE &value) |
| template<class TYPE > | |
| bool | isFallback (const TYPE &value) |
| template<class TYPE > | |
| void | toInt (int *result, const TYPE &value) |
| template<class TYPE > | |
| void | toString (bsl::string *result, const TYPE &value) |
| template<class TYPE > | |
| int | bdlat_enumFromInt (TYPE *result, int number) |
| template<class TYPE > | |
| int | bdlat_enumFromString (TYPE *result, const char *string, int stringLength) |
| template<class TYPE > | |
| int | bdlat_enumMakeFallback (TYPE *result) |
| template<class TYPE > | |
| void | bdlat_enumToInt (int *result, const TYPE &value) |
| template<class TYPE > | |
| void | bdlat_enumToString (bsl::string *result, const TYPE &value) |
| template<class TYPE > | |
| bool | bdlat_enumHasFallback (const TYPE &value) |
| template<class TYPE > | |
| bool | bdlat_enumIsFallback (const TYPE &value) |
| int bdlat_EnumFunctions::bdlat_enumFromInt | ( | TYPE * | result, |
| int | number | ||
| ) |
| int bdlat_EnumFunctions::bdlat_enumFromString | ( | TYPE * | result, |
| const char * | string, | ||
| int | stringLength | ||
| ) |
| bool bdlat_EnumFunctions::bdlat_enumHasFallback | ( | const TYPE & | value | ) |
Return true if the specified value supports a fallback enumerator, and false otherwise. The behavior is undefined if this default implementation of bdlat_enumHasFallback is instantiated with a template parameter TYPE such that bdlat_HasFallbackEnumerator<TYPE> is false. Note that this is a customization point function and should not be called directly by user code. Use bdlat_EnumFunctions::hasFallback instead.
| bool bdlat_EnumFunctions::bdlat_enumIsFallback | ( | const TYPE & | value | ) |
Return true if the specified value is equal to a fallback enumerator, and false otherwise. The behavior is undefined if this default implementation of bdlat_enumIsFallback is instantiated with a template parameter TYPE such that bdlat_HasFallbackEnumerator<TYPE> is false. Note that this is a customization point function and should not be called directly by user code. Use bdlat_EnumFunctions::isFallback instead.
| int bdlat_EnumFunctions::bdlat_enumMakeFallback | ( | TYPE * | result | ) |
Load into the specified result the fallback enumerator value. Return 0 on success, and a non-zero value with no effect on result if it does not have a fallback enumerator. The behavior is undefined if this default implementation of bdlat_enumMakeFallback is instantiated with a template parameter TYPE such that bdlat_HasFallbackEnumerator<TYPE> is false. Note that this is a customization point function and should not be called directly by user code. Use bdlat_EnumFunctions::makeFallback instead.
| void bdlat_EnumFunctions::bdlat_enumToInt | ( | int * | result, |
| const TYPE & | value | ||
| ) |
| void bdlat_EnumFunctions::bdlat_enumToString | ( | bsl::string * | result, |
| const TYPE & | value | ||
| ) |
| int bdlat_EnumFunctions::fromInt | ( | TYPE * | result, |
| int | number | ||
| ) |
Load into the specified result the enumerator matching the specified number. Return 0 on success, and a non-zero value with no effect on result if number does not match any enumerator.
| int bdlat_EnumFunctions::fromString | ( | TYPE * | result, |
| const char * | string, | ||
| int | stringLength | ||
| ) |
Load into the specified result the enumerator matching the specified string of the specified stringLength. Return 0 on success, and a non-zero value with no effect on result if string and stringLength do not match any enumerator.
| bool bdlat_EnumFunctions::hasFallback | ( | const TYPE & | value | ) |
Return true if the specified value supports a fallback enumerator, and false otherwise.
| bool bdlat_EnumFunctions::isFallback | ( | const TYPE & | value | ) |
Return true if the specified value is equal to a fallback enumerator, and false otherwise.
| int bdlat_EnumFunctions::makeFallback | ( | TYPE * | result | ) |
Load into the specified result the fallback enumerator value. Return 0 on success, and a non-zero value with no effect on result if it does not have a fallback enumerator.
| void bdlat_EnumFunctions::toInt | ( | int * | result, |
| const TYPE & | value | ||
| ) |
Load into the specified result the integer representation of the enumerator value held by the specified value.
| void bdlat_EnumFunctions::toString | ( | bsl::string * | result, |
| const TYPE & | value | ||
| ) |
Load into the specified result the string representation of the enumerator value held by the specified value.