treelite
tree_node_type.h
Go to the documentation of this file.
1 
8 #ifndef TREELITE_ENUM_TREE_NODE_TYPE_H_
9 #define TREELITE_ENUM_TREE_NODE_TYPE_H_
10 
11 #include <cstdint>
12 #include <string>
13 
14 namespace treelite {
15 
17 enum class TreeNodeType : std::int8_t {
18  kLeafNode = 0,
21 };
22 
25 
27 TreeNodeType TreeNodeTypeFromString(std::string const& name);
28 
29 } // namespace treelite
30 
31 #endif // TREELITE_ENUM_TREE_NODE_TYPE_H_
Definition: contiguous_array.h:14
TreeNodeType TreeNodeTypeFromString(std::string const &name)
Get NodeType from string.
std::string TreeNodeTypeToString(TreeNodeType type)
Get string representation of TreeNodeType.
TreeNodeType
Tree node type.
Definition: tree_node_type.h:17