OmniSciDB  a5dc49c757
 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 994 of file Types.cpp.

Constructor & Destructor Documentation

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

Definition at line 996 of file Types.cpp.

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

Member Function Documentation

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

Definition at line 1019 of file Types.cpp.

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

Member Data Documentation

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

Definition at line 995 of file Types.cpp.


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