Go to the documentation of this file.
    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); 
  112     iterator            
erase(iterator beginIterator, iterator endIterator) { 
return iterator(
coordinate_array.erase(beginIterator.base(), endIterator.base())); }
 
  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; }
 
  211         const coordT &  operator*()
 const { 
return *i; }
 
  218         bool            operator<=(
const const_iterator &other)
 const { 
return i<=other.
i; }
 
  220         bool            operator>=(
const const_iterator &other)
 const { 
return i>=other.
i; }
 
  251     bool                findNext(
const coordT &t) { 
while (i != 
c->constEnd()) 
if(*i++ == 
t){ 
return true;} 
return false; }
 
  252     bool                findPrevious(
const coordT &t) { 
while (i != 
c->constBegin())
if (*(--i) == t){ 
return true;} 
return false;  }
 
  253     bool                hasNext()
 const { 
return i != 
c->constEnd(); }
 
  254     bool                hasPrevious()
 const { 
return i != 
c->constBegin(); }
 
  256     const coordT &      previous() { 
return *--i; }
 
  257     const coordT &      peekNext()
 const { 
return *i; }
 
  259     void                toFront() { i= 
c->constBegin(); }
 
  260     void                toBack() { i= 
c->constEnd(); }
 
  281     bool                findNext(
const coordT &t) { 
while(
c->constEnd()!=
const_iterator(n= i)){ 
if(*i++==
t){ 
return true;}} 
return false; }
 
  282     bool                findPrevious(
const coordT &t) { 
while(
c->constBegin()!=const_iterator(i)){ 
if(*(n= --i)== t){ 
return true;}} n= 
c->end(); 
return false;  }
 
  285     void                insert(
const coordT &t) { n= i= 
c->insert(i, 
t); ++i; }
 
  286     coordT &            next() { n= i++; 
return *n; }
 
  289     coordT &            previous() { n= --i; 
return *n; }
 
  292     void                toFront() { i= 
c->begin(); n= 
c->end(); }
 
  293     void                toBack() { i= 
c->end(); n= i; }
 
  305 #endif // QHCOORDINATES_H 
  
bool operator!=(const iterator &other) const
ptrdiff_t difference_type
bool operator>(const iterator &other) const
const typedef value_type & const_reference
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
Coordinates operator+(const Coordinates &other) const
Coordinates mid(countT idx, countT length=-1) const
coordT & operator*() const
bool operator==(const iterator &other) const
void replace(countT idx, const coordT &c)
const coordT & back() const
const typedef value_type * const_pointer
bool operator!=(const Coordinates &other) const
const_iterator constEnd() const
Coordinates::const_iterator const_iterator
coordT & operator[](countT idx) const
void prepend(const coordT &c)
std::vector< coordT >::const_iterator i
std::vector< coordT > toStdVector() const
coordT takeAt(countT idx)
void append(int pointDimension, coordT *c)
coordT value(countT idx, const coordT &defaultValue) const
void push_back(const coordT &c)
ptrdiff_t difference_type
iterator erase(iterator idx)
std::ostream & operator<<(std::ostream &os, const orgQhull::Coordinates &c)
const_iterator ConstIterator
iterator & operator+=(countT idx)
std::vector< coordT >::iterator & base()
std::random_access_iterator_tag iterator_category
std::vector< coordT >::iterator i
iterator operator-(countT idx) const
bool operator==(const Coordinates &other) const
bool operator<(const iterator &other) const
void removeAt(countT idx)
iterator & operator-=(countT idx)
Coordinates & operator<<(const Coordinates &other)
bool operator<=(const iterator &other) const
void push_front(const coordT &c)
void swap(countT idx, countT other)
iterator & operator=(const iterator &other)
void insert(countT before, const coordT &c)
ptrdiff_t difference_type
std::vector< coordT > coordinate_array
void move(countT from, countT to)
const_iterator constBegin() const
countT indexOf(const coordT &t, countT from=0) const
bool operator>=(const iterator &other) const
Coordinates & operator=(const Coordinates &other)
countT lastIndexOf(const coordT &t, countT from=-1) const
std::random_access_iterator_tag iterator_category
coordT & operator[](countT idx)
iterator operator+(countT idx) const
void removeAll(const coordT &t)
Coordinates & operator+=(const Coordinates &other)
hpp-fcl
Author(s): 
autogenerated on Fri Feb 14 2025 03:45:50