Show / Hide Table of Contents

Class ParameterCollection

A ordered collection of parameters.

Inheritance
System.Object
SpiceObject
ParameterCollection
Implements
System.Collections.Generic.IEnumerable<Parameter>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SpiceSharpParser.Models.Netlist.Spice.Objects
Assembly: SpiceSharpParser.dll
Syntax
public class ParameterCollection : SpiceObject, IEnumerable<Parameter>, IEnumerable

Constructors

| Improve this Doc View Source

ParameterCollection()

Initializes a new instance of the ParameterCollection class.

Declaration
public ParameterCollection()
| Improve this Doc View Source

ParameterCollection(List<Parameter>)

Initializes a new instance of the ParameterCollection class.

Declaration
public ParameterCollection(List<Parameter> values)
Parameters
Type Name Description
System.Collections.Generic.List<Parameter> values

Properties

| Improve this Doc View Source

Count

Gets the count of parameters in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Item[Int32]

Gets the parameter at specified index.

Declaration
public Parameter this[int index] { get; }
Parameters
Type Name Description
System.Int32 index

The index of parameter.

Property Value
Type Description
Parameter

A reference to parameter.

| Improve this Doc View Source

LineInfo

Declaration
public override SpiceLineInfo LineInfo { get; }
Property Value
Type Description
SpiceLineInfo
Overrides
SpiceObject.LineInfo
| Improve this Doc View Source

Values

Gets the values of parameters.

Declaration
protected List<Parameter> Values { get; }
Property Value
Type Description
System.Collections.Generic.List<Parameter>

Methods

| Improve this Doc View Source

Add(Parameter)

Adds parameter to the collection.

Declaration
public void Add(Parameter parameter)
Parameters
Type Name Description
Parameter parameter

A parameter to add.

| Improve this Doc View Source

Clear()

Clears the collection.

Declaration
public void Clear()
| Improve this Doc View Source

Clone()

Creates a new clone of the collection.

Declaration
public override SpiceObject Clone()
Returns
Type Description
SpiceObject

A new collection of parameters.

Overrides
SpiceObject.Clone()
| Improve this Doc View Source

Get(Int32)

Gets the string from parameter in the collection. Throws an exception if parameter is not SingleParameter.

Declaration
public Parameter Get(int parameterIndex)
Parameters
Type Name Description
System.Int32 parameterIndex

An index of parameter.

Returns
Type Description
Parameter

A string from parameter.

| Improve this Doc View Source

GetEnumerator()

Gets an enumerator of parameters in collection.

Declaration
public IEnumerator GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

A new enumerator.

| Improve this Doc View Source

IndexOf(Parameter)

Declaration
public int IndexOf(Parameter parameter)
Parameters
Type Name Description
Parameter parameter
Returns
Type Description
System.Int32
| Improve this Doc View Source

Insert(Int32, Parameter)

Inserts a parameter at the specified index in the collection.

Declaration
public void Insert(int index, Parameter parameter)
Parameters
Type Name Description
System.Int32 index

An index.

Parameter parameter

A parameter to insert.

| Improve this Doc View Source

IsValueString(Int32)

Gets the value string from parameter in the collection. Throws an exception if parameter is not a value type parameter.

Declaration
public bool IsValueString(int parameterIndex)
Parameters
Type Name Description
System.Int32 parameterIndex

An index of parameter.

Returns
Type Description
System.Boolean

A value from parameter.

| Improve this Doc View Source

Merge(ParameterCollection)

Merges a collection to the current collection.

Declaration
public void Merge(ParameterCollection collection)
Parameters
Type Name Description
ParameterCollection collection

A collection to merge.

| Improve this Doc View Source

Remove(Parameter)

Removes the parameter at the specified index.

Declaration
public void Remove(Parameter parameter)
Parameters
Type Name Description
Parameter parameter

Parameter to remove.

| Improve this Doc View Source

RemoveAt(Int32)

Removes the parameter at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

An index of parameter to remove.

| Improve this Doc View Source

Set(ParameterCollection)

Set parameters from a collection to the current collection.

Declaration
public void Set(ParameterCollection collection)
Parameters
Type Name Description
ParameterCollection collection

A collection to merge.

| Improve this Doc View Source

Skip(Int32)

Creates a clone of the current collection without first 'count' elements.

Declaration
public ParameterCollection Skip(int count)
Parameters
Type Name Description
System.Int32 count

Number of parameters to skip.

Returns
Type Description
ParameterCollection

A new collection of parameters.

| Improve this Doc View Source

Take(Int32)

Creates a clone of the current collection with first 'count' elements.

Declaration
public ParameterCollection Take(int count)
Parameters
Type Name Description
System.Int32 count

Number of parameters to take.

Returns
Type Description
ParameterCollection

A new collection of parameters.

| Improve this Doc View Source

ToString()

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

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable<Parameter>.GetEnumerator()

Gets typed enumerator of parameters in collection.

Declaration
IEnumerator<Parameter> IEnumerable<Parameter>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<Parameter>

A new enumerator.

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX