treelite
operator.h
Go to the documentation of this file.
1 
8 #ifndef TREELITE_ENUM_OPERATOR_H_
9 #define TREELITE_ENUM_OPERATOR_H_
10 
11 #include <cstdint>
12 #include <string>
13 
14 namespace treelite {
15 
17 enum class Operator : std::int8_t {
18  kNone,
19  kEQ,
20  kLT,
21  kLE,
22  kGT,
23  kGE,
24 };
25 
27 std::string OperatorToString(Operator type);
28 
30 Operator OperatorFromString(std::string const& name);
31 
32 } // namespace treelite
33 
34 #endif // TREELITE_ENUM_OPERATOR_H_
Definition: contiguous_array.h:14
std::string OperatorToString(Operator type)
Get string representation of Operator.
Operator OperatorFromString(std::string const &name)
Get Operator from string.
Operator
Type of comparison operators used in numerical test nodes.
Definition: operator.h:17