MathParser\Parsing\Nodes\FunctionNode Class Reference

AST node representing a function applications (e.g. More...

Inheritance diagram for MathParser\Parsing\Nodes\FunctionNode:
MathParser\Parsing\Nodes\Node MathParser\Interpreting\Visitors\Visitable

Public Member Functions

 __construct ($name, $operand)
 Constructor, create a FunctionNode with given name and operand.
 
 getName ()
 Return the name of the function. More...
 
 getOperand ()
 Return the operand. More...
 
 setOperand ($operand)
 Set the operand. More...
 
 getOperator ()
 
 accept (Visitor $visitor)
 Implementing the Visitable interface.
 
 compareTo ($other)
 Implementing the compareTo abstract method. More...
 
- Public Member Functions inherited from MathParser\Parsing\Nodes\Node
 compareTo ($other)
 Helper function, comparing two ASTs. More...
 
 evaluate ($variables)
 Convenience function for evaluating a tree, using the Evaluator class. More...
 
 complexity ()
 Rough estimate of the complexity of the AST. More...
 
 isTerminal ()
 Returns true if the node is a terminal node, i.e. More...
 
 getOperator ()
 
 __toString ()
 

Private Attributes

 $name
 string $name Function name, e.g. More...
 
 $operand
 Node $operand AST of function operand.
 

Additional Inherited Members

- Static Public Member Functions inherited from MathParser\Parsing\Nodes\Node
static rationalFactory (Token $token)
 Node factory, creating an appropriate Node from a Token. More...
 
static factory (Token $token)
 Node factory, creating an appropriate Node from a Token. More...
 
- Public Attributes inherited from MathParser\Parsing\Nodes\Node
const NumericInteger = 1
 
const NumericRational = 2
 
const NumericFloat = 3
 

Detailed Description

AST node representing a function applications (e.g.

sin(...))

Member Function Documentation

MathParser\Parsing\Nodes\FunctionNode::compareTo (   $other)

Implementing the compareTo abstract method.

MathParser\Parsing\Nodes\FunctionNode::getName ( )

Return the name of the function.

Return values
string
MathParser\Parsing\Nodes\FunctionNode::getOperand ( )

Return the operand.

Return values
Node
MathParser\Parsing\Nodes\FunctionNode::setOperand (   $operand)

Set the operand.

Return values
void

Member Data Documentation

MathParser\Parsing\Nodes\FunctionNode::$name
private

string $name Function name, e.g.

'sin'


The documentation for this class was generated from the following file: