bcParser.NET
Math Parser for .NET
Public Member Functions | List of all members
Bestcode.MathParser.OneParameterFunc Class Referenceabstract

Base class for math parser functions that take 1 parameter. More...

Inheritance diagram for Bestcode.MathParser.OneParameterFunc:
Bestcode.MathParser.IFunction

Public Member Functions

int GetNumberOfParams ()
 Number of parameters that this IFunction requires. For OneParameterFunc, this function returns 1. More...
 
abstract IConvertible Run (IParameter[] p)
 Execute the logic for this IFunction with the given list of parameters. More...
 

Detailed Description

Base class for math parser functions that take 1 parameter.

Member Function Documentation

int Bestcode.MathParser.OneParameterFunc.GetNumberOfParams ( )

Number of parameters that this IFunction requires. For OneParameterFunc, this function returns 1.

Returns
2

Implements Bestcode.MathParser.IFunction.

abstract IConvertible Bestcode.MathParser.OneParameterFunc.Run ( IParameter[]  p)
pure virtual

Execute the logic for this IFunction with the given list of parameters.

Parameters
p
Returns

Implements Bestcode.MathParser.IFunction.