C# Class xFunc.Maths.Helpers

The helper class with additional methods.
Mostra file Open project: sys27/xFunc

Public Methods

Method Description
ConvertExpressionToCollection ( IExpression expression ) : IEnumerable

Converts the logic expression to collection.

GetAllVariables ( IExpression expression ) : IEnumerable

Gets all variables.

GetParameters ( IEnumerable tokens ) : ParameterCollection

Gets parameters of expression.

HasVariable ( IExpression expression, xFunc.Maths.Expressions.Variable arg ) : bool

Checks that expression has the arg variable.

Private Methods

Method Description
ConvertToColletion ( IExpression expression, List collection ) : void
GetAllVariables ( IExpression expression, HashSet collection ) : void

Method Details

ConvertExpressionToCollection() public static method

Converts the logic expression to collection.
The variable is null.
public static ConvertExpressionToCollection ( IExpression expression ) : IEnumerable
expression IExpression The expression.
return IEnumerable

GetAllVariables() public static method

Gets all variables.
is null.
public static GetAllVariables ( IExpression expression ) : IEnumerable
expression IExpression The expression.
return IEnumerable

GetParameters() public static method

Gets parameters of expression.
public static GetParameters ( IEnumerable tokens ) : ParameterCollection
tokens IEnumerable The list of tokens.
return ParameterCollection

HasVariable() public static method

Checks that expression has the arg variable.
public static HasVariable ( IExpression expression, xFunc.Maths.Expressions.Variable arg ) : bool
expression IExpression The expression that is checked.
arg xFunc.Maths.Expressions.Variable The variable that can be contained in the expression.
return bool