Class SelectUnit<T>
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[TypeIcon(typeof(ISelectUnit))]
public abstract class SelectUnit<T> : Unit, ISerializationCallbackReceiver, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged
Type Parameters
Name | Description |
---|---|
T |
Properties
branches
Declaration
[DoNotSerialize]
public List<KeyValuePair<T, ValueInput>> branches { get; }
Property Value
Type | Description |
---|---|
List<KeyValuePair<T, ValueInput>> |
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.canDefine
Implements
default
The output value to return if the selector doesn't match any other option.
Declaration
[DoNotSerialize]
public ValueInput default { get; }
Property Value
Type | Description |
---|---|
ValueInput |
options
Declaration
[Inspectable]
[Serialize]
public List<T> options { get; set; }
Property Value
Type | Description |
---|---|
List<T> |
selection
The selected value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueOutput selection { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Implements
selector
The value on which to select.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ValueInput selector { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Matches(T, T)
Declaration
protected virtual bool Matches(T a, T b)
Parameters
Type | Name | Description |
---|---|---|
T | a | |
T | b |
Returns
Type | Description |
---|---|
Boolean |
Result(Flow)
Declaration
public object Result(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Object |