BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls Namespace Reference
Group bdl » Package bdlt » bdlt_iso8601util | Group bsl » Package bslfwd » bslfwd_bsls_asserttestexception | Group bsl » Package bslfwd » bslfwd_bsls_stopwatch | Group bsl » Package bslfwd » bslfwd_bsls_types | Group bsl » Package bslmf » bslmf_istriviallycopyable | Group bsl » Package bsls » bsls_alignedbuffer | Group bsl » Package bsls » bsls_alignment | Group bsl » Package bsls » bsls_alignmentfromtype | Group bsl » Package bsls » bsls_alignmentimp | Group bsl » Package bsls » bsls_alignmenttotype | Group bsl » Package bsls » bsls_alignmentutil | Group bsl » Package bsls » bsls_assert | Group bsl » Package bsls » bsls_assertimputil | Group bsl » Package bsls » bsls_asserttest | Group bsl » Package bsls » bsls_asserttestexception | Group bsl » Package bsls » bsls_atomic | Group bsl » Package bsls » bsls_atomicoperations | Group bsl » Package bsls » bsls_atomicoperations_default | Group bsl » Package bsls » bsls_blockgrowth | Group bsl » Package bsls » bsls_bslexceptionutil | Group bsl » Package bsls » bsls_bsllock | Group bsl » Package bsls » bsls_bslonce | Group bsl » Package bsls » bsls_bslsourcenameparserutil | Group bsl » Package bsls » bsls_bsltestutil | Group bsl » Package bsls » bsls_buildtarget | Group bsl » Package bsls » bsls_byteorderutil | Group bsl » Package bsls » bsls_byteorderutil_impl | Group bsl » Package bsls » bsls_fuzztest | Group bsl » Package bsls » bsls_fuzztestpreconditionexception | Group bsl » Package bsls » bsls_log | Group bsl » Package bsls » bsls_logseverity | Group bsl » Package bsls » bsls_nameof | Group bsl » Package bsls » bsls_nullptr | Group bsl » Package bsls » bsls_objectbuffer | Group bsl » Package bsls » bsls_outputredirector | Group bsl » Package bsls » bsls_performancehint | Group bsl » Package bsls » bsls_platformutil | Group bsl » Package bsls » bsls_pointercastutil | Group bsl » Package bsls » bsls_preconditions | Group bsl » Package bsls » bsls_protocoltest | Group bsl » Package bsls » bsls_review | Group bsl » Package bsls » bsls_spinlock | Group bsl » Package bsls » bsls_stackaddressutil | Group bsl » Package bsls » bsls_stopwatch | Group bsl » Package bsls » bsls_systemclocktype | Group bsl » Package bsls » bsls_systemtime | Group bsl » Package bsls » bsls_timeinterval | Group bsl » Package bsls » bsls_timeutil | Group bsl » Package bsls » bsls_types | Group bsl » Package bsls » bsls_unspecifiedbool | Group bsl » Package bsls » bsls_util

Classes

class  AlignedBuffer
 
union  AlignedBuffer_Data
 
struct  Alignment
 
struct  AlignmentFromType
 
struct  AlignmentImp_Priority
 
struct  AlignmentImp_Priority< 1 >
 
struct  AlignmentImpCalc
 
struct  AlignmentImpMatch
 
struct  AlignmentImpPriorityToType
 
struct  AlignmentImpPriorityToType< 1 >
 
struct  AlignmentImpPriorityToType< 10 >
 
struct  AlignmentImpPriorityToType< 11 >
 
struct  AlignmentImpPriorityToType< 12 >
 
struct  AlignmentImpPriorityToType< 2 >
 
struct  AlignmentImpPriorityToType< 3 >
 
struct  AlignmentImpPriorityToType< 4 >
 
struct  AlignmentImpPriorityToType< 5 >
 
struct  AlignmentImpPriorityToType< 6 >
 
struct  AlignmentImpPriorityToType< 7 >
 
struct  AlignmentImpPriorityToType< 8 >
 
struct  AlignmentImpPriorityToType< 9 >
 
struct  AlignmentImpTag
 
struct  AlignmentToType
 
struct  AlignmentUtil
 
class  Assert
 
class  AssertFailureHandlerGuard
 
struct  AssertImpUtil_UseContractsNo
 
struct  AssertTest
 
class  AssertTestException
 
class  AssertTestHandlerGuard
 
class  AssertViolation
 
struct  Atomic_TypeTraits
 
class  AtomicBool
 
class  AtomicInt
 
class  AtomicInt64
 
struct  AtomicOperations
 
struct  AtomicOperations_Default32
 
struct  AtomicOperations_Default64
 
struct  AtomicOperations_DefaultInt
 
struct  AtomicOperations_DefaultInt64
 
struct  AtomicOperations_DefaultPointer32
 
struct  AtomicOperations_DefaultPointer64
 
struct  AtomicOperations_DefaultUint
 
struct  AtomicOperations_DefaultUint64
 
class  AtomicPointer
 
class  AtomicUint
 
class  AtomicUint64
 
struct  BlockGrowth
 
struct  BslExceptionUtil
 
class  BslLock
 
class  BslLockGuard
 
struct  BslOnce
 
class  BslOnceGuard
 
struct  BslSourceNameParserUtil
 
struct  BslTestUtil
 
struct  BuildTargetExcYes
 
struct  ByteOrderUtil
 
struct  ByteOrderUtil_Impl
 
struct  ByteOrderUtil_Impl< TYPE, 1 >
 
struct  ByteOrderUtil_Impl< TYPE, 2 >
 
struct  ByteOrderUtil_Impl< TYPE, 4 >
 
struct  ByteOrderUtil_Impl< TYPE, 8 >
 
class  FuzzTestHandlerGuard
 
class  FuzzTestPreconditionException
 
struct  FuzzTestPreconditionTracker
 
class  Log
 
struct  LogSeverity
 
class  NameOf
 
class  NameOf_Base
 
struct  Nullptr_Impl
 
union  ObjectBuffer
 
class  OutputRedirector
 
struct  PerformanceHint
 
struct  PlatformUtil
 
struct  PointerCastUtil
 
class  PreconditionsHandler
 
class  ProtocolTest
 
class  ProtocolTest_AsBigAsT
 
struct  ProtocolTest_Dtor
 
struct  ProtocolTest_IsAbstract
 
struct  ProtocolTest_MethodReturnRefType
 
struct  ProtocolTest_MethodReturnType
 
class  ProtocolTest_Status
 
class  ProtocolTestImp
 
class  Review
 
class  ReviewFailureHandlerGuard
 
class  ReviewViolation
 
struct  SpinLock
 
class  SpinLock_MemberInitializer
 
class  SpinLockGuard
 
struct  StackAddressUtil
 
class  Stopwatch
 
struct  SystemClockType
 
struct  SystemTime
 This struct provides a namespace for system-time-retrieval functions. More...
 
class  TimeInterval
 
struct  TimeInterval_DurationTraits
 
struct  TimeInterval_IsDuration
 
struct  TimeInterval_IsDuration< std::chrono::duration< REP, PER > >
 Template metafunction specialization for std::chrono::duration types. More...
 
struct  TimeInterval_RepTraits
 
struct  TimeUtil
 
struct  Types
 
class  UnspecifiedBool
 
struct  Util
 
struct  Util_Identity
 

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)
 

Detailed Description

Deprecated:
Use preprocessor macros BSLS_BYTEORDER_*TO* defined in bsls_byteorder instead.

Typedef Documentation

◆ AssertImpUtil_UseContracts

◆ BuildTargetExc

Function Documentation

◆ BSLS_LINKCOERCION_FORCE_SYMBOL_DEPENDENCY()

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.

◆ debugprint() [1/24]

void bsls::debugprint ( bool  v)

Print to the console the string "true" if the specified v is true, and the string "false" otherwise.

◆ debugprint() [2/24]

void bsls::debugprint ( char *  v)

◆ debugprint() [3/24]

void bsls::debugprint ( char  v)

Print to the console the specified character, v, enclosed by single-quote characters (').

◆ debugprint() [4/24]

void bsls::debugprint ( const char *  v)

◆ debugprint() [5/24]

void bsls::debugprint ( const void *  v)

◆ debugprint() [6/24]

void bsls::debugprint ( const volatile char *  v)

◆ debugprint() [7/24]

void bsls::debugprint ( const volatile void *  v)

Print to the console the specified memory address, v, formatted as a hexadecimal integer.

◆ debugprint() [8/24]

void bsls::debugprint ( double  v)

◆ debugprint() [9/24]

void bsls::debugprint ( float  v)

◆ debugprint() [10/24]

void bsls::debugprint ( int  v)

◆ debugprint() [11/24]

void bsls::debugprint ( long double  v)

Print to the console the specified value, v, formatted as a string enclosed by single-quote characters (').

◆ debugprint() [12/24]

void bsls::debugprint ( long long  v)

◆ debugprint() [13/24]

void bsls::debugprint ( long  v)

◆ debugprint() [14/24]

template<class RESULT >
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.

◆ debugprint() [15/24]

void bsls::debugprint ( short  v)

◆ debugprint() [16/24]

void bsls::debugprint ( signed char  v)

◆ debugprint() [17/24]

void bsls::debugprint ( unsigned char  v)

◆ debugprint() [18/24]

void bsls::debugprint ( unsigned int  v)

◆ debugprint() [19/24]

void bsls::debugprint ( unsigned long long  v)

Print to the console the specified integer value, v, formatted as a string.

◆ debugprint() [20/24]

void bsls::debugprint ( unsigned long  v)

◆ debugprint() [21/24]

void bsls::debugprint ( unsigned short  v)

◆ debugprint() [22/24]

void bsls::debugprint ( void *  v)

◆ debugprint() [23/24]

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).

◆ debugprint() [24/24]

void bsls::debugprint ( volatile void *  v)

◆ nameOfType()

template<class TYPE >
const char * bsls::nameOfType ( const TYPE &  )

◆ operator!=() [1/3]

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.

◆ operator!=() [2/3]

bool bsls::operator!= ( const TimeInterval lhs,
double  rhs 
)

◆ operator!=() [3/3]

bool bsls::operator!= ( double  lhs,
const TimeInterval rhs 
)

◆ operator+() [1/3]

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.

◆ operator+() [2/3]

TimeInterval bsls::operator+ ( const TimeInterval lhs,
double  rhs 
)

◆ operator+() [3/3]

TimeInterval bsls::operator+ ( double  lhs,
const TimeInterval rhs 
)

◆ operator-() [1/4]

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.

◆ operator-() [2/4]

TimeInterval bsls::operator- ( const TimeInterval lhs,
double  rhs 
)

◆ operator-() [3/4]

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().

◆ operator-() [4/4]

TimeInterval bsls::operator- ( double  lhs,
const TimeInterval rhs 
)

◆ operator<() [1/3]

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.

◆ operator<() [2/3]

bool bsls::operator< ( const TimeInterval lhs,
double  rhs 
)

◆ operator<() [3/3]

bool bsls::operator< ( double  lhs,
const TimeInterval rhs 
)

◆ operator<<()

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).

◆ operator<=() [1/3]

bool bsls::operator<= ( const TimeInterval lhs,
const TimeInterval rhs 
)

◆ operator<=() [2/3]

bool bsls::operator<= ( const TimeInterval lhs,
double  rhs 
)

◆ operator<=() [3/3]

bool bsls::operator<= ( double  lhs,
const TimeInterval rhs 
)

◆ operator==() [1/3]

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.

◆ operator==() [2/3]

bool bsls::operator== ( const TimeInterval lhs,
double  rhs 
)

◆ operator==() [3/3]

bool bsls::operator== ( double  lhs,
const TimeInterval rhs 
)

◆ operator>() [1/3]

bool bsls::operator> ( const TimeInterval lhs,
const TimeInterval rhs 
)

◆ operator>() [2/3]

bool bsls::operator> ( const TimeInterval lhs,
double  rhs 
)

◆ operator>() [3/3]

bool bsls::operator> ( double  lhs,
const TimeInterval rhs 
)

◆ operator>=() [1/3]

bool bsls::operator>= ( const TimeInterval lhs,
const TimeInterval rhs 
)

◆ operator>=() [2/3]

bool bsls::operator>= ( const TimeInterval lhs,
double  rhs 
)

◆ operator>=() [3/3]

bool bsls::operator>= ( double  lhs,
const TimeInterval rhs 
)