Ejemplo 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");
     }
 }
Ejemplo 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");
     }
 }
Ejemplo 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");
     }
 }
Ejemplo 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");
     }
 }
Ejemplo 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");
     }
 }
Ejemplo 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);
        }