Quick Links:

bal | bbl | bdl | bsl

Classes | Typedefs | Functions

bsls Namespace Reference
[Component bdlt_iso8601utilComponent bsls_alignedbufferComponent bsls_alignmentComponent bsls_alignmentfromtypeComponent bsls_alignmentimpComponent bsls_alignmenttotypeComponent bsls_alignmentutilComponent bsls_assertComponent bsls_assertimputilComponent bsls_asserttestComponent bsls_asserttestexceptionComponent bsls_atomicComponent bsls_atomicoperationsComponent bsls_atomicoperations_defaultComponent bsls_blockgrowthComponent bsls_bslexceptionutilComponent bsls_bsllockComponent bsls_bslonceComponent bsls_bslsourcenameparserutilComponent bsls_bsltestutilComponent bsls_buildtargetComponent bsls_byteorderutilComponent bsls_byteorderutil_implComponent bsls_fuzztestComponent bsls_fuzztestpreconditionexceptionComponent bsls_logComponent bsls_logseverityComponent bsls_nameofComponent bsls_nullptrComponent bsls_objectbufferComponent bsls_outputredirectorComponent bsls_performancehintComponent bsls_platformutilComponent bsls_pointercastutilComponent bsls_preconditionsComponent bsls_protocoltestComponent bsls_reviewComponent bsls_spinlockComponent bsls_stackaddressutilComponent bsls_stopwatchComponent bsls_systemclocktypeComponent bsls_systemtimeComponent bsls_timeintervalComponent bsls_timeutilComponent bsls_typesComponent bsls_unspecifiedboolComponent bsls_util]

Classes

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

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

Typedef Documentation


Function Documentation

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.

See Component bsls_assertimputil

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

References BSLS_ANNOTATION_NORETURN.

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  ) 

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

void bsls::debugprint ( signed char  v  ) 
void bsls::debugprint ( unsigned char  v  ) 
void bsls::debugprint ( short  v  ) 
void bsls::debugprint ( unsigned short  v  ) 
void bsls::debugprint ( int  v  ) 
void bsls::debugprint ( unsigned int  v  ) 
void bsls::debugprint ( long  v  ) 
void bsls::debugprint ( unsigned long  v  ) 
void bsls::debugprint ( long long  v  ) 
void bsls::debugprint ( unsigned long long  v  ) 

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

void bsls::debugprint ( float  v  ) 
void bsls::debugprint ( double  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 ( const char *  v  ) 
void bsls::debugprint ( char *  v  ) 
void bsls::debugprint ( const volatile char *  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 ( void *  v  ) 
void bsls::debugprint ( volatile void *  v  ) 
void bsls::debugprint ( const void *  v  ) 
void bsls::debugprint ( const volatile void *  v  ) 

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

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.

template<class TYPE >
const char* bsls::nameOfType ( const TYPE &   ) 
TimeInterval bsls::operator+ ( const TimeInterval &  lhs,
const TimeInterval &  rhs 
)
TimeInterval bsls::operator+ ( const TimeInterval &  lhs,
double  rhs 
)
TimeInterval bsls::operator+ ( double  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,
const TimeInterval &  rhs 
)
TimeInterval bsls::operator- ( const TimeInterval &  lhs,
double  rhs 
)
TimeInterval bsls::operator- ( double  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 &  rhs  ) 

Return a TimeInterval value that is the negative of the specified rhs time interval. The behavior is undefined unless LLONG_MIN != rhs.seconds().

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 
)

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,
const TimeInterval &  rhs 
)
bool bsls::operator!= ( const TimeInterval &  lhs,
double  rhs 
)
bool bsls::operator!= ( double  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,
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 
)
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 
)

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.

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