Show / Hide Table of Contents

Class BinaryOperatorNode

A binary operator.

Inheritance
System.Object
Node
BinaryOperatorNode
Inherited Members
Node.Zero
Node.One
Node.Two
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, IReadOnlyList<Node>)
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 BinaryOperatorNode : Node

Constructors

BinaryOperatorNode(NodeTypes, Node, Node)

Initializes a new instance of the BinaryOperatorNode class.

Declaration
protected BinaryOperatorNode(NodeTypes type, Node left, Node right)
Parameters
Type Name Description
NodeTypes type

The node type.

Node left

The left argument.

Node right

The right argument.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if left or right is null.

Properties

Left

Gets the left argument.

Declaration
public Node Left { get; }
Property Value
Type Description
Node

The left argument.

Properties

Gets the properties.

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

The properties.

Overrides
Node.Properties

Right

Gets the right argument.

Declaration
public Node Right { get; }
Property Value
Type Description
Node

The right argument.

Methods

Add(Node, Node)

Creates an addition of two arguments.

Declaration
public static BinaryOperatorNode Add(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

The node representing the added result.

And(Node, Node)

Declaration
public static BinaryOperatorNode And(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

Divide(Node, Node)

Creates a division of two arguments.

Declaration
public static BinaryOperatorNode Divide(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

The node representing the divided result.

Equals(Node, Node)

Declaration
public static BinaryOperatorNode Equals(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

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)

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()

GreaterThan(Node, Node)

Declaration
public static BinaryOperatorNode GreaterThan(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

GreaterThanOrEqual(Node, Node)

Declaration
public static BinaryOperatorNode GreaterThanOrEqual(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

LessThan(Node, Node)

Declaration
public static BinaryOperatorNode LessThan(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

LessThanOrEqual(Node, Node)

Declaration
public static BinaryOperatorNode LessThanOrEqual(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

Modulo(Node, Node)

Declaration
public static BinaryOperatorNode Modulo(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

Multiply(Node, Node)

Creates a multiplication of two arguments.

Declaration
public static BinaryOperatorNode Multiply(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

The node representing the multiplied result.

NotEquals(Node, Node)

Declaration
public static BinaryOperatorNode NotEquals(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

Or(Node, Node)

Declaration
public static BinaryOperatorNode Or(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

Power(Node, Node)

Declaration
public static BinaryOperatorNode Power(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

Subtract(Node, Node)

Creates a subtraction of two arguments.

Declaration
public static BinaryOperatorNode Subtract(Node left, Node right)
Parameters
Type Name Description
Node left

The left argument.

Node right

The right argument.

Returns
Type Description
BinaryOperatorNode

The node representing the subtracted result.

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