philsupertramp/game-math
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
MathNode.h File Reference
#include "../format.h"
#include <cstdlib>
#include <cstring>
#include <memory>
#include <regex>
#include <string>

Go to the source code of this file.

Classes

class  MathNode
 

Enumerations

enum  MathNodeType {
  NodeType_Operator = 0 , NodeType_Symbolic = 1 , NodeType_Numeric = 2 , NodeType_Parentheses = 3 ,
  NodeType_Functional = 4 , NodeType_DefaultSymbol = 5 , NodeType_Any = 6 , NodeType_Operator_or_Parentheses = 7
}
 
enum  NodeConnectionType {
  ConnectionType_Dual = 0 , ConnectionType_Left = 2 , ConnectionType_Right = 3 , ConnectionType_None = 4 ,
  ConnectionType_Unknown = 5
}
 

Functions

std::regex GetRegex (MathNodeType type)
 

Enumeration Type Documentation

◆ MathNodeType

Node type representation

Enumerator
NodeType_Operator 
NodeType_Symbolic 
NodeType_Numeric 
NodeType_Parentheses 
NodeType_Functional 
NodeType_DefaultSymbol 
NodeType_Any 
NodeType_Operator_or_Parentheses 

◆ NodeConnectionType

Enumerator
ConnectionType_Dual 
ConnectionType_Left 
ConnectionType_Right 
ConnectionType_None 
ConnectionType_Unknown 

Function Documentation

◆ GetRegex()

std::regex GetRegex ( MathNodeType  type)

regex factory for node types

Parameters
type
Returns
regex for given type
Examples
symb/TestSymbolic.cpp.