Table of Contents

Class CeresPort<TValue>

Namespace
Ceres.Graph
Assembly
Ceres.Graph.dll

Generic port for any value worked as linked list at runtime

public class CeresPort<TValue> : CeresPort, IDisposable, IPort<TValue>, IPort

Type Parameters

TValue
Inheritance
CeresPort<TValue>
Implements
IPort<TValue>
Derived
Inherited Members

Constructors

CeresPort()

public CeresPort()

CeresPort(TValue)

public CeresPort(TValue value)

Parameters

value TValue

Fields

Default

public static readonly CeresPort<TValue> Default

Field Value

CeresPort<TValue>

DefaultArray

public static readonly CeresPort<TValue>[] DefaultArray

Field Value

CeresPort<TValue>[]

DefaultList

public static readonly List<CeresPort<TValue>> DefaultList

Field Value

List<CeresPort<TValue>>

defaultValue

Port self value or default value if has no connection

[HideInGraphEditor]
[CeresLabel("")]
public TValue defaultValue

Field Value

TValue

Properties

Value

public TValue Value { get; set; }

Property Value

TValue

Methods

AssignValueGetter(IPort)

Assign this port's input value source

public override void AssignValueGetter(IPort port)

Parameters

port IPort

CreateProxyPort(CeresPort<CeresPort>)

protected override IPort CreateProxyPort(CeresPort<CeresPort> ceresPort)

Parameters

ceresPort CeresPort<CeresPort>

Returns

IPort

Dispose()

public override void Dispose()

GetValue()

Get port value

public override object GetValue()

Returns

object

GetValueType()

Get port value type

public override Type GetValueType()

Returns

Type

IsCompatibleTo(Type)

Is this port value type compatible to specific type

public static bool IsCompatibleTo(Type type)

Parameters

type Type

Returns

bool

Link another CeresPort in forward path

public override void Link(CeresPort targetPort)

Parameters

targetPort CeresPort

MakeCompatibleTo<T>(Func<TValue, T>)

Register an output value convert method to make TValue is compatible to T

public static void MakeCompatibleTo<T>(Func<TValue, T> valueConvertFunc)

Parameters

valueConvertFunc Func<TValue, T>

Func for converting input TValue to T

Type Parameters

T

SetValue(object)

Set port default value

public override void SetValue(object value)

Parameters

value object