Show / Hide Table of Contents

Class FunctionNode

A function node.

Inheritance
System.Object
Node
FunctionNode
Inherited Members
Node.Zero
Node.One
Node.Two
Node.Add(Node, Node)
Node.Subtract(Node, Node)
Node.Multiply(Node, Node)
Node.Divide(Node, Node)
Node.Modulo(Node, Node)
Node.And(Node, Node)
Node.Or(Node, Node)
Node.Equals(Node, Node)
Node.NotEquals(Node, Node)
Node.LessThan(Node, Node)
Node.GreaterThan(Node, Node)
Node.LessThanOrEqual(Node, Node)
Node.GreaterThanOrEqual(Node, Node)
Node.Power(Node, Node)
Node.Plus(Node)
Node.Minus(Node)
Node.Not(Node)
Node.Conditional(Node, Node, Node)
Node.Voltage(String)
Node.Voltage(String, String)
Node.Current(String)
Node.Property(String, String)
Node.Function(String, Node[])
Node.Variable(String)
Node.Constant(Double)
Node.NodeType
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharpBehavioral.Parsers.Nodes
Assembly: SpiceSharpBehavioral.dll
Syntax
public class FunctionNode : Node

Constructors

FunctionNode(String, IReadOnlyList<Node>)

Initializes a new instance of the FunctionNode class.

Declaration
protected FunctionNode(string name, IReadOnlyList<Node> arguments)
Parameters
Type Name Description
System.String name

The name.

System.Collections.Generic.IReadOnlyList<Node> arguments

The arguments.

Properties

Arguments

Gets the arguments.

Declaration
public IReadOnlyList<Node> Arguments { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<Node>

The arguments.

Name

Gets the name of the function.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The name.

Properties

Gets the properties.

Declaration
public override NodeProperties Properties { get; }
Property Value
Type Description
NodeProperties

The properties.

Overrides
Node.Properties

Methods

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)

Function(String, IReadOnlyList<Node>)

Creates a function call.

Declaration
public static FunctionNode Function(string name, IReadOnlyList<Node> arguments)
Parameters
Type Name Description
System.String name

The name of the function.

System.Collections.Generic.IReadOnlyList<Node> arguments

The arguments of the function.

Returns
Type Description
FunctionNode

The node representing the function call.

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.Object.GetHashCode()

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents this instance.

Overrides
System.Object.ToString()

See Also

Node
Back to top Generated by DocFX