/// <summary> /// Конструктор /// </summary> /// <param name="type"></param> public ArrayValue(VHDL.type.UnconstrainedArray type, Dictionary <int[], AbstractValue> dictionary) : base(ModellingType.CreateModellingType(type, new ResolvedDiscreteRange[] { ResolvedDiscreteRange.FormIntegerIndexes(dictionary.Count) })) { _values = dictionary; }
/// <summary> /// Конструктор /// </summary> /// <param name="type"></param> public ArrayValue(VHDL.type.UnconstrainedArray type, ResolvedDiscreteRange range) : base(ModellingType.CreateModellingType(type, new ResolvedDiscreteRange[] { range })) { _values = CreateDictionary(range); }
/// <summary> /// Конструктор /// </summary> /// <param name="type"></param> public ArrayValue(VHDL.type.UnconstrainedArray type, IList <AbstractValue> _value) : base(ModellingType.CreateModellingType(type, new ResolvedDiscreteRange[] { ResolvedDiscreteRange.FormIntegerIndexes(_value.Count) })) { _values = CreateDictionary(_value); }