private void BuildGraph( IValueList runtimeOrderList, IValueTable taskInfoTable, IList <IList <GraphNode> > activeGraph) { // Add each task to its own column foreach (var taskNameValue in runtimeOrderList) { var taskName = taskNameValue.AsString(); var node = new GraphNode(taskName, this.uniqueId++); // Find the Task Info var taskInfo = taskInfoTable[taskName].AsTable(); this.taskDetailsLookup.Add(node.Id, new TaskDetailsViewModel(taskName, taskInfo)); // Add the new column at the start var column = new List <GraphNode>() { node }; activeGraph.Add(column); } }
/// <summary> /// Initializes a new <see cref="Proc"/>. /// </summary> /// <param name="isIntrinsic">True, if this is an instrinsic procedure type.</param> /// <param name="parameters">The list of parameters.</param> /// <param name="ret">The return <see cref="Type"/>.</param> public Proc(bool isIntrinsic, IList <Param> parameters, Type ret) : base(new Scope(ScopeKind.Struct, null)) { IsIntrinsic = isIntrinsic; Parameters = parameters.AsValueList(); Return = ret; }
public static IValueList Append(this IValueList list, IEnumerable <IValue> values) { foreach (var value in values) { list.Add(value); } return(list); }
public static IValueList Append(this IValueList list, IValueFactory factory, IEnumerable <Path> values) { foreach (var value in values) { list.Add(factory.Create(value.ToString())); } return(list); }
public static IValueList SetAll(this IValueList list, IValueFactory factory, IEnumerable <string> values) { list.Clear(); foreach (var value in values) { list.Add(factory.Create(value)); } return(list); }
public static Column Create(PrimitiveField specification, IValueList values) { if (specification == null || values == null) { return(DataCache.Empty); } return(new ColumnImpl(specification, values)); }
public static IValueList SetAll(this IValueList list, IEnumerable <IValue> values) { list.Clear(); foreach (var value in values) { list.Add(value); } return(list); }
static void WriteValue(BinaryWriter writer, IValueList value) { // Write the count of values writer.Write((uint)value.Count); foreach (var listValue in value) { WriteValue(writer, listValue); } }
public Insert(IFormatter formatter, bool autoMapping = false, string tableAlias = "") { this.Query = Enums.SqlQuery.Insert; this.Formatter = formatter; this.Columns = new ColumnsListSimple(this.Formatter); this.Values = new ValueList(this.Formatter); if (autoMapping) { this.Mapping(); } }
/** * Constructs a new {@code Header} using the specified * {@link ValueList} * * @param input 3 rows of data describing the input */ public Header(IValueList input) { if (input.Size() != 3) { throw new ArgumentException("Input did not have 3 rows"); } _rawTupleList = input; _fieldNames = input.GetRow(0).All().Select(o => o.ToString().Trim()).ToList(); _fieldMeta = input.GetRow(1).All().Select(FieldMetaTypeHelper.FromString).ToList(); _sensorFlags = input.GetRow(2).All().Select(SensorFlagsHelper.FromString).ToList(); InitIndexes(); }
public Proc(CallConv callConv, Type ret, IList <Type> parameters) { CallConv = callConv; Return = ret; Parameters = parameters.AsValueList(); }
public void Merge(IValueList <ValueImpl> other) { lock (List) { List.AddRange(other); } }
public ColumnImpl(PrimitiveField specification, IValueList values) { Specification = specification; Values = values; HasValues = values != null && values.HasValues; }
/// <summary> /// Initializes a new <see cref="Struct"/>. /// </summary> /// <param name="type">The <see cref="Type"/> os the struct.</param> /// <param name="values">The list of <see cref="Value"/>s.</param> public Struct(Type type, IValueList <Value> values) { Type = type; Values = values; }
public Value(IValueList value) { Type = ValueType.List; RawValue = value; }
/// <summary> /// Initializes a new <see cref="Array"/>. /// </summary> /// <param name="type">The array <see cref="Type"/>.</param> /// <param name="values">The <see cref="Value"/>s of the array.</param> public Array(Type type, IValueList <Value> values) { Type = type; Values = values; }
public IValue Create(IValueList value) { return(new Value(value)); }