Exemplo n.º 1
0
        protected InputConnector <T> AddInputConnector <T>(string name, ReadOnlySpan <int> dimensions)
        {
            var input = new InputConnector <T>(this, name, dimensions);

            _inputConnectors.Add(name, input);
            return(input);
        }
Exemplo n.º 2
0
 public void Disconnect(InputConnector to)
 {
     MutableConnections.RemoveAll(o => o.To == to);
     to.Disconnect();
 }
Exemplo n.º 3
0
 protected abstract Connection ConnectCore(InputConnector to);
Exemplo n.º 4
0
 public Connection Connect(InputConnector to) => ConnectCore(to);
Exemplo n.º 5
0
 public Connection(OutputConnector from, InputConnector to)
 {
     From = from;
     To   = to;
 }