OmniSciDB  a987f07e93
 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 993 of file Types.cpp.

Constructor & Destructor Documentation

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

Definition at line 995 of file Types.cpp.

995  : table_{} {
996  table_[static_cast<int>('1')] = 1;
997  table_[static_cast<int>('2')] = 2;
998  table_[static_cast<int>('3')] = 3;
999  table_[static_cast<int>('4')] = 4;
1000  table_[static_cast<int>('5')] = 5;
1001  table_[static_cast<int>('6')] = 6;
1002  table_[static_cast<int>('7')] = 7;
1003  table_[static_cast<int>('8')] = 8;
1004  table_[static_cast<int>('9')] = 9;
1005  table_[static_cast<int>('a')] = 10;
1006  table_[static_cast<int>('A')] = 10;
1007  table_[static_cast<int>('b')] = 11;
1008  table_[static_cast<int>('B')] = 11;
1009  table_[static_cast<int>('c')] = 12;
1010  table_[static_cast<int>('C')] = 12;
1011  table_[static_cast<int>('d')] = 13;
1012  table_[static_cast<int>('D')] = 13;
1013  table_[static_cast<int>('e')] = 14;
1014  table_[static_cast<int>('E')] = 14;
1015  table_[static_cast<int>('f')] = 15;
1016  table_[static_cast<int>('F')] = 15;
1017  }

Member Function Documentation

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

Definition at line 1018 of file Types.cpp.

1018  {
1019  return (hex_digit < 0) ? 0 : table_[static_cast<int>(hex_digit)];
1020  }

Member Data Documentation

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

Definition at line 994 of file Types.cpp.


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