ATLAS Offline Software
Public Types | List of all members
Athena::BitTraits< T > Struct Template Reference

Describe the bit features of an integral type T. More...

#include <SealDebug.h>

Collaboration diagram for Athena::BitTraits< T >:

Public Types

enum  { Bits = sizeof (T) * CHAR_BIT }
 Number of bits in T. More...
 
enum  { Bytes = Bits / 8 + ((Bits % 8) > 0) }
 Number of 8-bit bytes in T. More...
 
enum  { Digits = (Bits * 30103) / 100000 + 1 }
 Number of base-10 digits in T (without leading sign). More...
 
enum  { HexDigits = Bits / 4 + ((Bits % 4) > 0) }
 Number of base-16 digits in T (without leading sign). More...
 

Detailed Description

template<class T>
struct Athena::BitTraits< T >

Describe the bit features of an integral type T.

Definition at line 54 of file SealDebug.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T >
anonymous enum

Number of bits in T.

Enumerator
Bits 

Definition at line 57 of file SealDebug.h.

57 { Bits = sizeof (T) * CHAR_BIT };

◆ anonymous enum

template<class T >
anonymous enum

Number of 8-bit bytes in T.

Enumerator
Bytes 

Definition at line 60 of file SealDebug.h.

60 { Bytes = Bits / 8 + ((Bits % 8) > 0) };

◆ anonymous enum

template<class T >
anonymous enum

Number of base-10 digits in T (without leading sign).

Enumerator
Digits 

Definition at line 63 of file SealDebug.h.

63 { Digits = (Bits * 30103) / 100000 + 1 };

◆ anonymous enum

template<class T >
anonymous enum

Number of base-16 digits in T (without leading sign).

Enumerator
HexDigits 

Definition at line 67 of file SealDebug.h.

67 { HexDigits = Bits / 4 + ((Bits % 4) > 0) };

The documentation for this struct was generated from the following file:
Athena::BitTraits::Digits
@ Digits
Definition: SealDebug.h:63
Athena::BitTraits::Bytes
@ Bytes
Definition: SealDebug.h:60
Athena::BitTraits::HexDigits
@ HexDigits
Definition: SealDebug.h:67
Athena::BitTraits::Bits
@ Bits
Definition: SealDebug.h:57
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35