18 #ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4 34 if(length<0 || idx+length >
count()){
35 newLength=
count()-idx;
39 std::copy(
begin()+idx,
begin()+(idx+newLength), std::back_inserter(result));
47 return ((idx < 0 || idx >=
count()) ? defaultValue : (*
this)[idx]);
56 std::copy(other.
begin(), other.
end(), std::back_inserter(result));
65 std::copy(clone.
begin(), clone.
end(), std::back_inserter(*
this));
67 std::copy(other.
begin(), other.
end(), std::back_inserter(*
this));
79 for(
int i= 0; i<pointDimension; ++i){
142 return (static_cast<countT>(i-
begin()));
155 }
else if(from>=
count()){
162 return (static_cast<countT>(i-
begin()));
192 Coordinates::const_iterator
c= cs.
begin();
iterator erase(iterator idx)
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
bool findNext(const coordT &t)
countT lastIndexOf(const coordT &t, countT from=-1) const
const_iterator constBegin() const
bool findNext(const coordT &t)
Coordinates & operator+=(const Coordinates &other)
coordT value(countT idx, const coordT &defaultValue) const
void swap(countT idx, countT other)
Coordinates & operator<<(const Coordinates &other)
void removeAll(const coordT &t)
const_iterator constEnd() const
bool contains(const coordT &t) const
countT indexOf(const coordT &t, countT from=0) const
coordT takeAt(countT idx)
Coordinates operator+(const Coordinates &other) const
std::vector< coordT > coordinate_array
void append(int pointDimension, coordT *c)
Coordinates mid(countT idx, countT length=-1) const