OmniSciDB  95562058bd
 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 781 of file Types.cpp.

Constructor & Destructor Documentation

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

Definition at line 783 of file Types.cpp.

783  : table_{} {
784  table_['1'] = 1;
785  table_['2'] = 2;
786  table_['3'] = 3;
787  table_['4'] = 4;
788  table_['5'] = 5;
789  table_['6'] = 6;
790  table_['7'] = 7;
791  table_['8'] = 8;
792  table_['9'] = 9;
793  table_['a'] = 10;
794  table_['A'] = 10;
795  table_['b'] = 11;
796  table_['B'] = 11;
797  table_['c'] = 12;
798  table_['C'] = 12;
799  table_['d'] = 13;
800  table_['D'] = 13;
801  table_['e'] = 14;
802  table_['E'] = 14;
803  table_['f'] = 15;
804  table_['F'] = 15;
805  }

Member Function Documentation

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

Definition at line 806 of file Types.cpp.

806  {
807  return (hex_digit < 0) ? 0 : table_[static_cast<int>(hex_digit)];
808  }

Member Data Documentation

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

Definition at line 782 of file Types.cpp.


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