9 #ifndef QHCOORDINATES_H 10 #define QHCOORDINATES_H 30 class MutableCoordinatesIterator;
36 std::vector<coordT> coordinate_array; 68 QList<coordT> toQList()
const;
69 #endif //QHULL_USES_QT 72 countT count() const { return static_cast<countT>(size()); } 81 coordT & at(countT idx) { return coordinate_array.at(idx); } 97 iterator begin() { return iterator(coordinate_array.begin()); } 105 Coordinates operator+(const Coordinates &other) const; 108 void append(int pointDimension, coordT *c); 137 bool contains(const coordT &t) const; 144 // before const_iterator for conversion with comparison operators 149 std::vector<coordT>::iterator
i;
161 explicit iterator(
const std::vector<coordT>::iterator &vi) { i= vi; }
163 std::vector<coordT>::iterator &
base() {
return i; }
194 class const_iterator { 197 std::vector<coordT>::const_iterator
i;
209 explicit const_iterator(
const std::vector<coordT>::const_iterator &vi) { i= vi; }
305 #endif // QHCOORDINATES_H bool operator>=(const Coordinates::const_iterator &other) const
Coordinates & operator=(const Coordinates &other)
iterator erase(iterator idx)
bool operator>(const Coordinates::const_iterator &other) const
void append(const coordT &c)
const value_type * const_pointer
bool operator<=(const iterator &other) const
iterator(const iterator &other)
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
bool operator<=(const const_iterator &other) const
friend class const_iterator
void push_front(const coordT &c)
bool operator==(const iterator &other) const
std::vector< coordT >::const_iterator i
coordT & operator*() const
MutableCoordinatesIterator(Coordinates &container)
const_iterator & operator+=(countT idx)
~MutableCoordinatesIterator()
bool findNext(const coordT &t)
bool operator==(const Coordinates &other) const
Coordinates & operator+=(const coordT &c)
void replace(countT idx, const coordT &c)
Coordinates & operator<<(const coordT &c)
coordT & peekPrevious() const
bool operator!=(const Coordinates::const_iterator &other) const
const coordT & last() const
void setValue(const coordT &t) const
const coordT & peekNext() const
coordT & operator[](countT idx) const
const_iterator operator+(countT idx) const
difference_type operator-(iterator other) const
std::random_access_iterator_tag iterator_category
std::vector< coordT >::iterator & base()
iterator operator-(countT idx) const
countT lastIndexOf(const coordT &t, countT from=-1) const
coordT & peekNext() const
const_iterator operator--(int)
const_iterator constBegin() const
const coordT & front() const
bool operator<(const Coordinates::const_iterator &other) const
const coordT & operator[](countT idx) const
bool operator<=(const Coordinates::const_iterator &other) const
ptrdiff_t difference_type
const_iterator & operator=(const const_iterator &other)
bool operator<(const iterator &other) const
const_iterator & operator++()
bool operator!=(const Coordinates &other) const
const_iterator & operator--()
iterator erase(iterator beginIterator, iterator endIterator)
const coordT & first() const
bool operator<(const const_iterator &other) const
Coordinates::const_iterator const_iterator
bool findNext(const coordT &t)
const_iterator operator++(int)
difference_type operator-(const_iterator other) const
void removeAt(countT idx)
Coordinates::const_iterator const_iterator
const coordT & value() const
void insert(countT before, const coordT &c)
const coordT & operator*() const
const_iterator begin() const
iterator insert(iterator before, const coordT &c)
ptrdiff_t difference_type
Coordinates & operator+=(const Coordinates &other)
bool operator!=(const iterator &other) const
iterator & operator=(const iterator &other)
coordT value(countT idx, const coordT &defaultValue) const
const_iterator(const iterator &o)
bool operator==(const Coordinates::const_iterator &other) const
const coordT & operator[](countT idx) const
void swap(countT idx, countT other)
const value_type & reference
iterator & operator+=(countT idx)
iterator & operator-=(countT idx)
Coordinates & operator<<(const Coordinates &other)
bool operator>(const iterator &other) const
const_iterator(const const_iterator &other)
iterator(const std::vector< coordT >::iterator &vi)
const coordT * data() const
bool findPrevious(const coordT &t)
const coordT & back() const
void prepend(const coordT &c)
bool operator==(const const_iterator &other) const
void removeAll(const coordT &t)
const_iterator constEnd() const
MutableCoordinatesIterator & operator=(Coordinates &container)
bool operator!=(const const_iterator &other) const
const value_type * pointer
const_iterator ConstIterator
void push_back(const coordT &c)
bool findPrevious(const coordT &t)
ptrdiff_t difference_type
const_iterator operator-(countT idx) const
bool operator>(const const_iterator &other) const
countT indexOf(const coordT &t, countT from=0) const
Coordinates::iterator iterator
iterator operator+(countT idx) const
const coordT & at(countT idx) const
coordT takeAt(countT idx)
std::vector< coordT > coordinate_array
CoordinatesIterator & operator=(const Coordinates &container)
void move(countT from, countT to)
const_iterator(const std::vector< coordT >::const_iterator &vi)
void insert(const coordT &t)
bool operator>=(const iterator &other) const
const_iterator end() const
std::vector< coordT > toStdVector() const
Coordinates & operator=(const std::vector< coordT > &other)
Coordinates(const std::vector< coordT > &other)
const coordT & peekPrevious() const
const coordT & previous()
void append(int pointDimension, coordT *c)
const_iterator & operator-=(countT idx)
std::random_access_iterator_tag iterator_category
coordT & operator[](countT idx)
bool operator>=(const const_iterator &other) const
const value_type & const_reference
std::vector< coordT >::iterator i
Coordinates mid(countT idx, countT length=-1) const
Coordinates(const Coordinates &other)
CoordinatesIterator(const Coordinates &container)