43 enum class type : uint32_t {
Represents a node in the syntax tree.
Definition: node.h:38
node & operator=(const node &src)
assignment operator
node(int fid)
Construct a variable node.
int fid
Definition: node.h:160
static const int kInvalidFeatureId
Definition: node.h:151
node()
Default constructor for node.
bool is_nonterminal() const
node(type ft)
Construct a function node.
union cuml::genetic::node::@0 u
type t
Definition: node.h:154
type
All possible types of nodes. For simplicity, all the terminal and non-terminal types are clubbed toge...
Definition: node.h:43
node(float val)
Construct a constant node.
float val
Definition: node.h:162
static type from_str(const std::string &ntype)
Helper method to get node type from input string.