OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 822 of file Types.cpp.

Constructor & Destructor Documentation

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

Definition at line 824 of file Types.cpp.

824  : table_{} {
825  table_['1'] = 1;
826  table_['2'] = 2;
827  table_['3'] = 3;
828  table_['4'] = 4;
829  table_['5'] = 5;
830  table_['6'] = 6;
831  table_['7'] = 7;
832  table_['8'] = 8;
833  table_['9'] = 9;
834  table_['a'] = 10;
835  table_['A'] = 10;
836  table_['b'] = 11;
837  table_['B'] = 11;
838  table_['c'] = 12;
839  table_['C'] = 12;
840  table_['d'] = 13;
841  table_['D'] = 13;
842  table_['e'] = 14;
843  table_['E'] = 14;
844  table_['f'] = 15;
845  table_['F'] = 15;
846  }

Member Function Documentation

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

Definition at line 847 of file Types.cpp.

847  {
848  return (hex_digit < 0) ? 0 : table_[static_cast<int>(hex_digit)];
849  }

Member Data Documentation

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

Definition at line 823 of file Types.cpp.


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