Show / Hide Table of Contents

Struct Bridge<T>

Describes a bridge between the local and global circuit.

Implements
IEquatable<Bridge<T>>
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Components.Subcircuits
Assembly: SpiceSharp.dll
Syntax
public readonly struct Bridge<T> : IEquatable<Bridge<T>>
Type Parameters
Name Description
T

The value type.

Constructors

Bridge(T, T)

Initializes a new instance of the Bridge<T> struct.

Declaration
public Bridge(T local, T global)
Parameters
Type Name Description
T local

The local instance.

T global

The global instance.

Fields

Global

The global/external instance.

Declaration
public readonly T Global
Field Value
Type Description
T

Local

The local/internal instance.

Declaration
public readonly T Local
Field Value
Type Description
T

Methods

Equals(Bridge<T>)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(Bridge<T> other)
Parameters
Type Name Description
Bridge<T> other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object, is equal to this instance.

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

The object to compare with this instance.

Returns
Type Description
bool

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

Overrides
ValueType.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

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

Overrides
ValueType.GetHashCode()

Operators

operator ==(Bridge<T>, Bridge<T>)

Implements the operator ==.

Declaration
public static bool operator ==(Bridge<T> left, Bridge<T> right)
Parameters
Type Name Description
Bridge<T> left

The left.

Bridge<T> right

The right.

Returns
Type Description
bool

The result of the operator.

operator !=(Bridge<T>, Bridge<T>)

Implements the operator !=.

Declaration
public static bool operator !=(Bridge<T> left, Bridge<T> right)
Parameters
Type Name Description
Bridge<T> left

The left.

Bridge<T> right

The right.

Returns
Type Description
bool

The result of the operator.

Implements

IEquatable<T>

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

IEquatable<T>
In this article
Back to top Generated by DocFX