OmniSciDB  471d68cefb
 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_['1'] = 1;
856  table_['2'] = 2;
857  table_['3'] = 3;
858  table_['4'] = 4;
859  table_['5'] = 5;
860  table_['6'] = 6;
861  table_['7'] = 7;
862  table_['8'] = 8;
863  table_['9'] = 9;
864  table_['a'] = 10;
865  table_['A'] = 10;
866  table_['b'] = 11;
867  table_['B'] = 11;
868  table_['c'] = 12;
869  table_['C'] = 12;
870  table_['d'] = 13;
871  table_['D'] = 13;
872  table_['e'] = 14;
873  table_['E'] = 14;
874  table_['f'] = 15;
875  table_['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: