From a57dc5abb7161e9280ce72b58d6427d8bf9cae2c Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 3 May 2016 14:06:23 +0000 Subject: [PATCH] New Core fixes git-svn-id: svn://ultimatepp.org/upp/trunk@9787 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/InVector.h | 8 ++++---- uppsrc/Core/InVector.hpp | 2 +- uppsrc/Core/Vcont.h | 10 +++++----- uppsrc/Core/Vcont.hpp | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/uppsrc/Core/InVector.h b/uppsrc/Core/InVector.h index 3c3ab1912..4b2148052 100644 --- a/uppsrc/Core/InVector.h +++ b/uppsrc/Core/InVector.h @@ -84,11 +84,11 @@ public: T& Insert(int i) { return *Insert0(i, NULL); } T& Insert(int i, const T& x) { return *Insert0(i, &x); } template - void Insert(int i, const Range& r) { Insert_(i, r, false); } + void InsertRange(int i, const Range& r) { Insert_(i, r, false); } void InsertN(int i, int count) { Insert_(i, ConstRange(count), true); } void Remove(int i, int count = 1); template - void Append(const Range& r) { Insert(GetCount(), r); } + void AppendRange(const Range& r) { Insert(GetCount(), r); } const T& operator[](int i) const; T& operator[](int i); @@ -304,11 +304,11 @@ public: void InsertN(int i, int count); template - void Insert(int i, const Range& r); + void InsertRange(int i, const Range& r); void Remove(int i, int count = 1); template - void Append(const Range& r) { Insert(GetCount(), r); } + void AppendRange(const Range& r) { Insert(GetCount(), r); } const T& operator[](int i) const { return Get(i); } T& operator[](int i) { return Get(i); } diff --git a/uppsrc/Core/InVector.hpp b/uppsrc/Core/InVector.hpp index 2df3c2e6b..dd6af59e1 100644 --- a/uppsrc/Core/InVector.hpp +++ b/uppsrc/Core/InVector.hpp @@ -784,7 +784,7 @@ void InArray::InsertN(int i, int count) template template -void InArray::Insert(int i, const Range& r) +void InArray::InsertRange(int i, const Range& r) { int count = r.GetCount(); iv.InsertN(i, count); diff --git a/uppsrc/Core/Vcont.h b/uppsrc/Core/Vcont.h index 67f8ec6ef..59740561c 100644 --- a/uppsrc/Core/Vcont.h +++ b/uppsrc/Core/Vcont.h @@ -118,7 +118,7 @@ public: void Set(int i, const T& x, int count); T& Set(int i, const T& x) { Set(i, x, 1); return Get(i); } template - void Set(int i, const Range& r); + void SetRange(int i, const Range& r); void Remove(int i, int count = 1); void Remove(const int *sorted_list, int n); @@ -133,12 +133,12 @@ public: void Insert(int i, const Vector& x, int offset, int count); void Insert(int i, Vector&& x); template - void Insert(int i, const Range& r); + void InsertRange(int i, const Range& r); void Append(const Vector& x) { Insert(GetCount(), x); } void Append(const Vector& x, int o, int c) { Insert(GetCount(), x, o, c); } void Append(Vector&& x) { Insert(GetCount(), pick(x)); } template - void Append(const Range& r) { Insert(GetCount(), r); } + void AppendRange(const Range& r) { Insert(GetCount(), r); } void InsertSplit(int i, Vector& v, int from); @@ -271,13 +271,13 @@ public: void Insert(int i, const Array& x); void Insert(int i, const Array& x, int offset, int count); template - void Insert(int i, const Range& r); + void InsertRange(int i, const Range& r); void Insert(int i, Array&& x) { vector.InsertPick(i, pick(x.vector)); } void Append(const Array& x) { Insert(GetCount(), x); } void Append(const Array& x, int o, int c) { Insert(GetCount(), x, o, c); } void Append(Array&& x) { InsertPick(GetCount(), pick(x)); } template - void Append(const Range& r) { Insert(GetCount(), r); } + void AppendRange(const Range& r) { Insert(GetCount(), r); } void Swap(int i1, int i2) { UPP::Swap(vector[i1], vector[i2]); } void Move(int i1, int i2); diff --git a/uppsrc/Core/Vcont.hpp b/uppsrc/Core/Vcont.hpp index b13a62fe5..98bebaf2e 100644 --- a/uppsrc/Core/Vcont.hpp +++ b/uppsrc/Core/Vcont.hpp @@ -307,7 +307,7 @@ void Vector::Insert(int i, std::initializer_list init) template template -void Vector::Insert(int i, const Range& r) +void Vector::InsertRange(int i, const Range& r) { RawInsert(i, r.GetCount()); T *t = vector + i; @@ -361,7 +361,7 @@ void Vector::Set(int i, const T& x, int count) { template template -void Vector::Set(int i, const Range& r) +void Vector::SetRange(int i, const Range& r) { int count = r.GetCount(); ASSERT(i >= 0 && count >= 0); @@ -532,7 +532,7 @@ void Array::Insert(int i, const T& x, int count) { template template -void Array::Insert(int i, const Range& r) +void Array::InsertRange(int i, const Range& r) { vector.InsertN(i, r.GetCount()); T **t = GetPtr(i);