Class GenericExport<T>
This class allows any function to be specified.
Implements
IExport<T>
Inherited Members
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
ToString()
Converts the export to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string. |
Overrides
Implements
Extension Methods
See Also
Export<T>