Show / Hide Table of Contents

Class GenericExport<T>

This class allows any function to be specified.

Inheritance
object
Export<T>
GenericExport<T>
Implements
IExport<T>
Inherited Members
Export<T>.Simulation
Export<T>.Value
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public class GenericExport<T> : Export<T>, IExport<T>
Type Parameters
Name Description
T

The base type.

Constructors

GenericExport(ISimulation, Func<T>, string)

Initializes a new instance of the GenericExport<T> class.

Declaration
public GenericExport(ISimulation simulation, Func<T> extractor, string name = null)
Parameters
Type Name Description
ISimulation simulation

The simulation.

Func<T> extractor

The function for extracting information.

string name

The name of the export.

Methods

BuildExtractor(ISimulation)

Builds the extractor for the given simulation.

Declaration
protected override Func<T> BuildExtractor(ISimulation simulation)
Parameters
Type Name Description
ISimulation simulation

The simulation.

Returns
Type Description
Func<T>

The extractor.

Overrides
Export<T>.BuildExtractor(ISimulation)

ToString()

Converts the export to a string.

Declaration
public override string ToString()
Returns
Type Description
string

The string.

Overrides
object.ToString()

Implements

IExport<T>

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

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