OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Geospatial::anonymous_namespace{Types.cpp}::HexDigitToDecimalTable Struct Reference

Public Member Functions

constexpr HexDigitToDecimalTable ()
 
constexpr uint8_t operator[] (const char &hex_digit) const
 

Public Attributes

uint8_t table_ [128]
 

Detailed Description

Definition at line 852 of file Types.cpp.

Constructor & Destructor Documentation

constexpr Geospatial::anonymous_namespace{Types.cpp}::HexDigitToDecimalTable::HexDigitToDecimalTable ( )
inline

Definition at line 854 of file Types.cpp.

854  : table_{} {
855  table_[static_cast<int>('1')] = 1;
856  table_[static_cast<int>('2')] = 2;
857  table_[static_cast<int>('3')] = 3;
858  table_[static_cast<int>('4')] = 4;
859  table_[static_cast<int>('5')] = 5;
860  table_[static_cast<int>('6')] = 6;
861  table_[static_cast<int>('7')] = 7;
862  table_[static_cast<int>('8')] = 8;
863  table_[static_cast<int>('9')] = 9;
864  table_[static_cast<int>('a')] = 10;
865  table_[static_cast<int>('A')] = 10;
866  table_[static_cast<int>('b')] = 11;
867  table_[static_cast<int>('B')] = 11;
868  table_[static_cast<int>('c')] = 12;
869  table_[static_cast<int>('C')] = 12;
870  table_[static_cast<int>('d')] = 13;
871  table_[static_cast<int>('D')] = 13;
872  table_[static_cast<int>('e')] = 14;
873  table_[static_cast<int>('E')] = 14;
874  table_[static_cast<int>('f')] = 15;
875  table_[static_cast<int>('F')] = 15;
876  }

Member Function Documentation

constexpr uint8_t Geospatial::anonymous_namespace{Types.cpp}::HexDigitToDecimalTable::operator[] ( const char &  hex_digit) const
inline

Definition at line 877 of file Types.cpp.

877  {
878  return (hex_digit < 0) ? 0 : table_[static_cast<int>(hex_digit)];
879  }

Member Data Documentation

uint8_t Geospatial::anonymous_namespace{Types.cpp}::HexDigitToDecimalTable::table_[128]

Definition at line 853 of file Types.cpp.


The documentation for this struct was generated from the following file: