Treelite
optable.cc
Go to the documentation of this file.
1 
8 #include <treelite/base.h>
9 #include <string>
10 #include <unordered_map>
11 
12 namespace treelite {
13 
14 const std::unordered_map<std::string, Operator> optable{
15  {"==", Operator::kEQ},
16  {"<", Operator::kLT},
17  {"<=", Operator::kLE},
18  {">", Operator::kGT},
19  {">=", Operator::kGE}
20 };
21 
22 } // namespace treelite
const std::unordered_map< std::string, Operator > optable
conversion table from string to Operator, defined in tables.cc
Definition: optable.cc:14
defines configuration macros of Treelite