BDE 4.14.0 Production release
|
Typedefs | |
typedef AssertImpUtil_UseContractsNo | AssertImpUtil_UseContracts |
typedef BuildTargetExcYes | BuildTargetExc |
Functions | |
BSLS_LINKCOERCION_FORCE_SYMBOL_DEPENDENCY (const int, bsls_assertimputil_coerce_use_contracts, bsls::AssertImpUtil_UseContracts::s_isAssertUseContracts) struct AssertImpUtil | |
void | debugprint (bool v) |
void | debugprint (char v) |
void | debugprint (signed char v) |
void | debugprint (unsigned char v) |
void | debugprint (short v) |
void | debugprint (unsigned short v) |
void | debugprint (int v) |
void | debugprint (unsigned int v) |
void | debugprint (long v) |
void | debugprint (unsigned long v) |
void | debugprint (long long v) |
void | debugprint (unsigned long long v) |
void | debugprint (float v) |
void | debugprint (double v) |
void | debugprint (long double v) |
void | debugprint (const char *v) |
void | debugprint (char *v) |
void | debugprint (const volatile char *v) |
void | debugprint (volatile char *v) |
void | debugprint (void *v) |
void | debugprint (volatile void *v) |
void | debugprint (const void *v) |
void | debugprint (const volatile void *v) |
template<class RESULT > | |
void | debugprint (RESULT(*v)()) |
template<class TYPE > | |
const char * | nameOfType (const TYPE &) |
Return the name of the type of the object passed to this function. | |
TimeInterval | operator+ (const TimeInterval &lhs, const TimeInterval &rhs) |
TimeInterval | operator+ (const TimeInterval &lhs, double rhs) |
TimeInterval | operator+ (double lhs, const TimeInterval &rhs) |
TimeInterval | operator- (const TimeInterval &lhs, const TimeInterval &rhs) |
TimeInterval | operator- (const TimeInterval &lhs, double rhs) |
TimeInterval | operator- (double lhs, const TimeInterval &rhs) |
TimeInterval | operator- (const TimeInterval &rhs) |
bool | operator== (const TimeInterval &lhs, const TimeInterval &rhs) |
bool | operator== (const TimeInterval &lhs, double rhs) |
bool | operator== (double lhs, const TimeInterval &rhs) |
bool | operator!= (const TimeInterval &lhs, const TimeInterval &rhs) |
bool | operator!= (const TimeInterval &lhs, double rhs) |
bool | operator!= (double lhs, const TimeInterval &rhs) |
bool | operator< (const TimeInterval &lhs, const TimeInterval &rhs) |
bool | operator< (const TimeInterval &lhs, double rhs) |
bool | operator< (double lhs, const TimeInterval &rhs) |
bool | operator<= (const TimeInterval &lhs, const TimeInterval &rhs) |
bool | operator<= (const TimeInterval &lhs, double rhs) |
bool | operator<= (double lhs, const TimeInterval &rhs) |
bool | operator> (const TimeInterval &lhs, const TimeInterval &rhs) |
bool | operator> (const TimeInterval &lhs, double rhs) |
bool | operator> (double lhs, const TimeInterval &rhs) |
bool | operator>= (const TimeInterval &lhs, const TimeInterval &rhs) |
bool | operator>= (const TimeInterval &lhs, double rhs) |
bool | operator>= (double lhs, const TimeInterval &rhs) |
std::ostream & | operator<< (std::ostream &stream, const TimeInterval &timeInterval) |
BSLS_BYTEORDER_*TO*
defined in bsls_byteorder instead. bsls::BSLS_LINKCOERCION_FORCE_SYMBOL_DEPENDENCY | ( | const int | , |
bsls_assertimputil_coerce_use_contracts | , | ||
bsls::AssertImpUtil_UseContracts::s_isAssertUseContracts | |||
) |
This "implementation utility" struct
provides static functions with shared functionality that is made use of by both bsls_assert and bsls_review .
Unconditionally abort the current application. It is up to the caller to first output a useful message describing the location of the failure.
Spin in an infinite loop. It is up to the caller to first output a useful message describing the location of the failure.
void bsls::debugprint | ( | bool | v | ) |
Print to the console the string "true" if the specified v
is true, and the string "false" otherwise.
void bsls::debugprint | ( | char * | v | ) |
void bsls::debugprint | ( | char | v | ) |
Print to the console the specified character, v
, enclosed by single-quote characters (').
void bsls::debugprint | ( | const char * | v | ) |
void bsls::debugprint | ( | const void * | v | ) |
void bsls::debugprint | ( | const volatile char * | v | ) |
void bsls::debugprint | ( | const volatile void * | v | ) |
Print to the console the specified memory address, v
, formatted as a hexadecimal integer.
void bsls::debugprint | ( | double | v | ) |
void bsls::debugprint | ( | float | v | ) |
void bsls::debugprint | ( | int | v | ) |
void bsls::debugprint | ( | long double | v | ) |
Print to the console the specified value, v
, formatted as a string enclosed by single-quote characters (').
void bsls::debugprint | ( | long long | v | ) |
void bsls::debugprint | ( | long | v | ) |
void bsls::debugprint | ( | RESULT(*)() | v | ) |
Print to the console the specified function pointer, v
, formatted as a hexadecimal integer. On some platforms (notably Windows), a function pointer is treated differently from an object pointer, and the compiler will not be able to determine which void *
overload of debugprint
should be used for a function pointer. Therefore an overload of debugprint
is provided specifically for function pointers. Because the type signature of a function pointer varies with its return type as well as with its argument list, a template function is used, to provide matches for all return types.
void bsls::debugprint | ( | short | v | ) |
void bsls::debugprint | ( | signed char | v | ) |
void bsls::debugprint | ( | unsigned char | v | ) |
void bsls::debugprint | ( | unsigned int | v | ) |
void bsls::debugprint | ( | unsigned long long | v | ) |
Print to the console the specified integer value, v
, formatted as a string.
void bsls::debugprint | ( | unsigned long | v | ) |
void bsls::debugprint | ( | unsigned short | v | ) |
void bsls::debugprint | ( | void * | v | ) |
void bsls::debugprint | ( | volatile char * | v | ) |
Print to the console the specified string, v
, enclosed by quote characters ("), unless v
is null, in which case print (null)
(without quotes of any kind).
void bsls::debugprint | ( | volatile void * | v | ) |
const char * bsls::nameOfType | ( | const TYPE & | ) |
bool bsls::operator!= | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
Return true
if the specified lhs
and rhs
time intervals do not have the same value, and false
otherwise. Two time intervals do not have the same value if their respective second or nanosecond fields differ in value. The behavior is undefined unless operands of type double
can be converted to valid TimeInterval
objects.
bool bsls::operator!= | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
bool bsls::operator!= | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
TimeInterval bsls::operator+ | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
Return a TimeInterval
value that is the sum of the specified lhs
and rhs
time intervals. The behavior is undefined unless (1) operands of type double
can be converted to valid TimeInterval
objects, and (2) the resulting time interval can be represented with a 64-bit signed integer.
TimeInterval bsls::operator+ | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
TimeInterval bsls::operator+ | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
TimeInterval bsls::operator- | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
Return a TimeInterval
value that is the difference between the specified lhs
and rhs
time intervals. The behavior is undefined unless (1) operands of type double
can be converted to valid TimeInterval
objects, (2) the value on the right-hand side (potentially after conversion to a TimeInterval
) has a number of seconds that is not LLONG_MIN
, and (3) the resulting time interval can be represented with a 64-bit signed integer.
TimeInterval bsls::operator- | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
TimeInterval bsls::operator- | ( | const TimeInterval & | rhs | ) |
Return a TimeInterval
value that is the negative of the specified rhs
time interval. The behavior is undefined unless LLONG_MIN != rhs.seconds()
.
TimeInterval bsls::operator- | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator< | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
Return true
if the nominal relation between the specified lhs
and rhs
time interval values holds, and false
otherwise. The behavior is undefined unless operands of type double
can be converted to valid TimeInterval
objects.
bool bsls::operator< | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
bool bsls::operator< | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
std::ostream & bsls::operator<< | ( | std::ostream & | stream, |
const TimeInterval & | timeInterval | ||
) |
Write the value of the specified timeInterval
to the specified output stream
in a single-line format, and return a reference providing modifiable access to stream
. If stream
is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified and can change without notice. Also note that this method has the same behavior as object.print(stream, 0, -1)
.
bool bsls::operator<= | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator<= | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
bool bsls::operator<= | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator== | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
Return true
if the specified lhs
and rhs
time intervals have the same value, and false
otherwise. Two time intervals have the same value if their respective second and nanosecond fields have the same value. The behavior is undefined unless operands of type double
can be converted to valid TimeInterval
objects.
bool bsls::operator== | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
bool bsls::operator== | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator> | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator> | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
bool bsls::operator> | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator>= | ( | const TimeInterval & | lhs, |
const TimeInterval & | rhs | ||
) |
bool bsls::operator>= | ( | const TimeInterval & | lhs, |
double | rhs | ||
) |
bool bsls::operator>= | ( | double | lhs, |
const TimeInterval & | rhs | ||
) |