/// <summary> /// Initializes a new instance of the <see cref="vector"/> class. /// </summary> /// <param name="variable">The variable.</param> /// <exception cref="WrongCodeTypeException">std::vector</exception> public vector(Variable variable) { instance = typeSelector.SelectType(variable); if (instance == null) { throw new WrongCodeTypeException(variable, nameof(variable), "std::vector"); } }
/// <summary> /// Initializes a new instance of the <see cref="unordered_map{TKey, TValue}"/> class. /// </summary> /// <param name="variable">The variable.</param> public unordered_map(Variable variable) { instance = typeSelector.SelectType(variable); if (instance == null) { throw new WrongCodeTypeException(variable, nameof(variable), "std::unordered_map"); } }
/// <summary> /// Initializes a new instance of the <see cref="shared_ptr{T}"/> class. /// </summary> /// <param name="variable">The variable.</param> public shared_ptr(Variable variable) { // Verify code type instance = typeSelector.SelectType(variable); if (instance == null) { throw new WrongCodeTypeException(variable, nameof(variable), "std::shared_ptr"); } }
/// <summary> /// Initializes a new instance of the <see cref="basic_string"/> class. /// </summary> /// <param name="variable">The variable.</param> /// <exception cref="WrongCodeTypeException">std::basic_string</exception> public basic_string(Variable variable) : base(variable) { instance = typeSelector.SelectType(variable); if (instance == null) { throw new WrongCodeTypeException(variable, nameof(variable), "std::basic_string"); } }
/// <summary> /// Initializes a new instance of the <see cref="path"/> class. /// </summary> /// <param name="variable">The variable.</param> /// <exception cref="WrongCodeTypeException">std::path</exception> public path(Variable variable) : base(variable) { instance = typeSelector.SelectType(variable); if (instance == null) { throw new WrongCodeTypeException(variable, nameof(variable), "std::filesystem::path"); } }
/// <summary> /// Initializes a new instance of the <see cref="unordered_map{TKey, TValue}"/> class. /// </summary> /// <param name="variable">The variable.</param> public unordered_map(Variable variable) : base(variable) { instance = typeSelector.SelectType(variable); if (instance == null) { throw new WrongCodeTypeException(variable, nameof(variable), "std::unordered_map"); } var a = System.Linq.Enumerable.ToArray(this); }