Esempio n. 1
0
 /// <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");
     }
 }
Esempio n. 2
0
 /// <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");
     }
 }
Esempio n. 3
0
 /// <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");
     }
 }
Esempio n. 4
0
 /// <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");
     }
 }
Esempio n. 5
0
 /// <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");
     }
 }
Esempio n. 6
0
        /// <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);
        }