Lines Matching defs:ImVector
1175 struct ImVector struct
1187 inline ImVector() { Size = Capacity = 0; Data = NULL; } in ImVector() argument
1188 …inline ImVector(const ImVector<T>& src) { Size = Capacity = 0; Data = NULL; operat… in ImVector() function
1190 inline ~ImVector() { if (Data) ImGui::MemFree(Data); } in ~ImVector() argument
1208 …inline void swap(ImVector<T>& rhs) { int rhs_size = rhs.Size; rhs.Size = Size… in swap() argument
1215 …o call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g.… argument
1216 …(Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } in push_back()
1217 inline void pop_back() { IM_ASSERT(Size > 0); Size--; } in pop_back()
1218 … push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } in push_front()
1219 …const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off -… in erase()
1220 … it_last > it && it_last <= Data+Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off … in erase()
1221 … const ptrdiff_t off = it - Data; if (it < Data+Size-1) memcpy(Data + off, Data + Size - 1, sizeof… in erase_unsorted()
1222 … const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off… in insert()
1223 …t T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } in contains()
1224 …t { IM_ASSERT(it >= Data && it <= Data+Size); const ptrdiff_t off = it - Data; return (int)off; } in index_from_ptr()