Esempio n. 1
0
        public T[][] ToArray()
        {
            var len    = td_bridge_vector_vector_object_size(ptr);
            var result = new T[len][];

            for (long i = 0; i < len; i++)
            {
                result[i] = new CxxVectorObject <T>(td_bridge_vector_vector_object_at(ptr, i)).ToArray();
            }
            return(result);
        }
Esempio n. 2
0
        public void Add(IEnumerable <T> value)
        {
            var vec = new CxxVectorObject <T>(td_bridge_vector_vector_object_emplace_back(ptr));

            if (value == null)
            {
                return;
            }
            foreach (var obj in value)
            {
                vec.Add(obj);
            }
        }