Classes | List of all members
orgQhull::QhullPoints Class Reference

Java-style iterator. More...

#include <QhullPoints.h>

Inheritance diagram for orgQhull::QhullPoints:
Inheritance graph
[legend]

Classes

class  const_iterator
 
class  iterator
 
struct  PrintPoints
 

Public Types

Subtypes
typedef QhullPoints::const_iterator ConstIterator
 
typedef QhullPoints::iterator Iterator
 

Public Member Functions

Construct
 QhullPoints ()
 
 QhullPoints (int pointDimension, countT coordinateCount2, coordT *c)
 
 QhullPoints (const Qhull &q)
 
 QhullPoints (const Qhull &q, countT coordinateCount2, coordT *c)
 
 QhullPoints (const Qhull &q, int pointDimension, countT coordinateCount2, coordT *c)
 
 QhullPoints (QhullQh *qqh)
 
 QhullPoints (QhullQh *qqh, countT coordinateCount2, coordT *c)
 
 QhullPoints (QhullQh *qqh, int pointDimension, countT coordinateCount2, coordT *c)
 
 QhullPoints (const QhullPoints &other)
 Copy constructor copies pointers but not contents. Needed for return by value and parameter passing. More...
 
QhullPointsoperator= (const QhullPoints &other)
 
 ~QhullPoints ()
 
Conversion
std::vector< QhullPointtoStdVector () const
 
GetSet
const QhullPoint at (countT idx) const
 
const QhullPoint back () const
 
QhullPoint back ()
 
ConstIterator begin () const
 
Iterator begin ()
 
ConstIterator constBegin () const
 
const coordTconstData () const
 
ConstIterator constEnd () const
 
coordTcoordinates () const
 
countT coordinateCount () const
 
countT count () const
 
const coordTdata () const
 
coordTdata ()
 
void defineAs (int pointDimension, countT coordinatesCount, coordT *c)
 
void defineAs (countT coordinatesCount, coordT *c)
 
void defineAs (const QhullPoints &other)
 
int dimension () const
 
ConstIterator end () const
 
Iterator end ()
 
coordTextraCoordinates () const
 
countT extraCoordinatesCount () const
 
const QhullPoint first () const
 
QhullPoint first ()
 
const QhullPoint front () const
 
QhullPoint front ()
 
bool includesCoordinates (const coordT *c) const
 
bool isEmpty () const
 
const QhullPoint last () const
 
QhullPoint last ()
 
bool operator== (const QhullPoints &other) const
 
bool operator!= (const QhullPoints &other) const
 
QhullPoint operator[] (countT idx) const
 
QhullQhqh () const
 
void resetQhullQh (QhullQh *qqh)
 
void setDimension (int d)
 
size_t size () const
 
QhullPoint value (countT idx) const
 
QhullPoint value (countT idx, QhullPoint &defaultValue) const
 
Methods
bool contains (const QhullPoint &t) const
 
countT count (const QhullPoint &t) const
 
countT indexOf (const coordT *pointCoordinates) const
 
countT indexOf (const coordT *pointCoordinates, int noThrow) const
 
countT indexOf (const QhullPoint &t) const
 
countT lastIndexOf (const QhullPoint &t) const
 
QhullPoints mid (countT idx, countT length=-1) const
 Returns a subset of the points, not a copy. More...
 
IO
PrintPoints print (const char *message) const
 
PrintPoints printWithIdentifier (const char *message) const
 

Private Attributes

Fields
coordTpoint_first
 First coordinate of an array of points of point_dimension. More...
 
coordTpoint_end
 End of point coordinates (end>=first). Trailing coordinates ignored. More...
 
QhullQhqh_qh
 
int point_dimension
 Dimension, >=0. More...
 

Detailed Description

Java-style iterator.

QhullPoints are an array of QhullPoint as pointers into an array of coordinates. For Qhull/QhullQh, QhullPoints must use hull_dim. Can change QhullPoint to input_dim if needed for Delaunay input site

Definition at line 28 of file QhullPoints.h.

Member Typedef Documentation

◆ ConstIterator

Definition at line 41 of file QhullPoints.h.

◆ Iterator

Definition at line 43 of file QhullPoints.h.

Constructor & Destructor Documentation

◆ QhullPoints() [1/9]

orgQhull::QhullPoints::QhullPoints ( )
inline

QhullPoint, PointCoordinates, and QhullPoints have similar constructors If Qhull/QhullQh is not initialized, then QhullPoints.dimension() is zero unless explicitly set Cannot define QhullPoints(int pointDimension) since it is ambiguous with QhullPoints(QhullQh *qqh)

Definition at line 49 of file QhullPoints.h.

◆ QhullPoints() [2/9]

orgQhull::QhullPoints::QhullPoints ( int  pointDimension,
countT  coordinateCount2,
coordT c 
)
inline

Definition at line 50 of file QhullPoints.h.

◆ QhullPoints() [3/9]

orgQhull::QhullPoints::QhullPoints ( const Qhull q)
explicit

Definition at line 27 of file QhullPoints.cpp.

◆ QhullPoints() [4/9]

orgQhull::QhullPoints::QhullPoints ( const Qhull q,
countT  coordinateCount2,
coordT c 
)

Definition at line 36 of file QhullPoints.cpp.

◆ QhullPoints() [5/9]

orgQhull::QhullPoints::QhullPoints ( const Qhull q,
int  pointDimension,
countT  coordinateCount2,
coordT c 
)

Definition at line 47 of file QhullPoints.cpp.

◆ QhullPoints() [6/9]

orgQhull::QhullPoints::QhullPoints ( QhullQh qqh)
inlineexplicit

Definition at line 54 of file QhullPoints.h.

◆ QhullPoints() [7/9]

orgQhull::QhullPoints::QhullPoints ( QhullQh qqh,
countT  coordinateCount2,
coordT c 
)
inline

Definition at line 55 of file QhullPoints.h.

◆ QhullPoints() [8/9]

orgQhull::QhullPoints::QhullPoints ( QhullQh qqh,
int  pointDimension,
countT  coordinateCount2,
coordT c 
)

Definition at line 58 of file QhullPoints.cpp.

◆ QhullPoints() [9/9]

orgQhull::QhullPoints::QhullPoints ( const QhullPoints other)
inline

Copy constructor copies pointers but not contents. Needed for return by value and parameter passing.

Definition at line 58 of file QhullPoints.h.

◆ ~QhullPoints()

orgQhull::QhullPoints::~QhullPoints ( )
inline

Definition at line 60 of file QhullPoints.h.

Member Function Documentation

◆ at()

const QhullPoint orgQhull::QhullPoints::at ( countT  idx) const
inline

Definition at line 75 of file QhullPoints.h.

◆ back() [1/2]

const QhullPoint orgQhull::QhullPoints::back ( ) const
inline

Definition at line 77 of file QhullPoints.h.

◆ back() [2/2]

QhullPoint orgQhull::QhullPoints::back ( )
inline

Definition at line 78 of file QhullPoints.h.

◆ begin() [1/2]

ConstIterator orgQhull::QhullPoints::begin ( ) const
inline

Definition at line 79 of file QhullPoints.h.

◆ begin() [2/2]

Iterator orgQhull::QhullPoints::begin ( )
inline

Definition at line 80 of file QhullPoints.h.

◆ constBegin()

ConstIterator orgQhull::QhullPoints::constBegin ( ) const
inline

Definition at line 81 of file QhullPoints.h.

◆ constData()

const coordT* orgQhull::QhullPoints::constData ( ) const
inline

Definition at line 82 of file QhullPoints.h.

◆ constEnd()

ConstIterator orgQhull::QhullPoints::constEnd ( ) const
inline

Definition at line 83 of file QhullPoints.h.

◆ contains()

bool orgQhull::QhullPoints::contains ( const QhullPoint t) const

Definition at line 165 of file QhullPoints.cpp.

◆ coordinateCount()

countT orgQhull::QhullPoints::coordinateCount ( ) const
inline

Definition at line 85 of file QhullPoints.h.

◆ coordinates()

coordT* orgQhull::QhullPoints::coordinates ( ) const
inline

Definition at line 84 of file QhullPoints.h.

◆ count() [1/2]

countT orgQhull::QhullPoints::count ( ) const
inline

Definition at line 86 of file QhullPoints.h.

◆ count() [2/2]

countT orgQhull::QhullPoints::count ( const QhullPoint t) const

Definition at line 178 of file QhullPoints.cpp.

◆ data() [1/2]

const coordT* orgQhull::QhullPoints::data ( ) const
inline

Definition at line 87 of file QhullPoints.h.

◆ data() [2/2]

coordT* orgQhull::QhullPoints::data ( )
inline

Definition at line 88 of file QhullPoints.h.

◆ defineAs() [1/3]

void orgQhull::QhullPoints::defineAs ( int  pointDimension,
countT  coordinatesCount,
coordT c 
)
inline

Definition at line 89 of file QhullPoints.h.

◆ defineAs() [2/3]

void orgQhull::QhullPoints::defineAs ( countT  coordinatesCount,
coordT c 
)
inline

Definition at line 90 of file QhullPoints.h.

◆ defineAs() [3/3]

void orgQhull::QhullPoints::defineAs ( const QhullPoints other)
inline

Definition at line 91 of file QhullPoints.h.

◆ dimension()

int orgQhull::QhullPoints::dimension ( ) const
inline

Definition at line 92 of file QhullPoints.h.

◆ end() [1/2]

ConstIterator orgQhull::QhullPoints::end ( ) const
inline

Definition at line 93 of file QhullPoints.h.

◆ end() [2/2]

Iterator orgQhull::QhullPoints::end ( )
inline

Definition at line 94 of file QhullPoints.h.

◆ extraCoordinates()

coordT* orgQhull::QhullPoints::extraCoordinates ( ) const
inline

Definition at line 95 of file QhullPoints.h.

◆ extraCoordinatesCount()

countT orgQhull::QhullPoints::extraCoordinatesCount ( ) const

Definition at line 87 of file QhullPoints.cpp.

◆ first() [1/2]

const QhullPoint orgQhull::QhullPoints::first ( ) const
inline

Definition at line 98 of file QhullPoints.h.

◆ first() [2/2]

QhullPoint orgQhull::QhullPoints::first ( )
inline

Definition at line 99 of file QhullPoints.h.

◆ front() [1/2]

const QhullPoint orgQhull::QhullPoints::front ( ) const
inline

Definition at line 101 of file QhullPoints.h.

◆ front() [2/2]

QhullPoint orgQhull::QhullPoints::front ( )
inline

Definition at line 102 of file QhullPoints.h.

◆ includesCoordinates()

bool orgQhull::QhullPoints::includesCoordinates ( const coordT c) const
inline

Definition at line 103 of file QhullPoints.h.

◆ indexOf() [1/3]

countT orgQhull::QhullPoints::indexOf ( const coordT pointCoordinates) const

Definition at line 192 of file QhullPoints.cpp.

◆ indexOf() [2/3]

countT orgQhull::QhullPoints::indexOf ( const coordT pointCoordinates,
int  noThrow 
) const

Definition at line 207 of file QhullPoints.cpp.

◆ indexOf() [3/3]

countT orgQhull::QhullPoints::indexOf ( const QhullPoint t) const

Definition at line 220 of file QhullPoints.cpp.

◆ isEmpty()

bool orgQhull::QhullPoints::isEmpty ( ) const
inline

Definition at line 104 of file QhullPoints.h.

◆ last() [1/2]

const QhullPoint orgQhull::QhullPoints::last ( ) const
inline

Definition at line 106 of file QhullPoints.h.

◆ last() [2/2]

QhullPoint orgQhull::QhullPoints::last ( )
inline

Definition at line 107 of file QhullPoints.h.

◆ lastIndexOf()

countT orgQhull::QhullPoints::lastIndexOf ( const QhullPoint t) const

Definition at line 235 of file QhullPoints.cpp.

◆ mid()

QhullPoints orgQhull::QhullPoints::mid ( countT  idx,
countT  length = -1 
) const

Returns a subset of the points, not a copy.

Definition at line 250 of file QhullPoints.cpp.

◆ operator!=()

bool orgQhull::QhullPoints::operator!= ( const QhullPoints other) const
inline

Definition at line 109 of file QhullPoints.h.

◆ operator=()

QhullPoints& orgQhull::QhullPoints::operator= ( const QhullPoints other)
inline

Definition at line 59 of file QhullPoints.h.

◆ operator==()

bool orgQhull::QhullPoints::operator== ( const QhullPoints other) const

QhullPoints is equal if the same address, or if the coordinates are identical Use QhullPoint.operator==() for DISTround equality

Definition at line 98 of file QhullPoints.cpp.

◆ operator[]()

QhullPoint orgQhull::QhullPoints::operator[] ( countT  idx) const
inline

Definition at line 110 of file QhullPoints.h.

◆ print()

PrintPoints orgQhull::QhullPoints::print ( const char *  message) const
inline

Definition at line 231 of file QhullPoints.h.

◆ printWithIdentifier()

PrintPoints orgQhull::QhullPoints::printWithIdentifier ( const char *  message) const
inline

Definition at line 232 of file QhullPoints.h.

◆ qh()

QhullQh* orgQhull::QhullPoints::qh ( ) const
inline

Definition at line 111 of file QhullPoints.h.

◆ resetQhullQh()

void orgQhull::QhullPoints::resetQhullQh ( QhullQh qqh)

Reset QhullPoints to QhullQh and its hullDimension() Does not free up old qh_qh

Definition at line 132 of file QhullPoints.cpp.

◆ setDimension()

void orgQhull::QhullPoints::setDimension ( int  d)
inline

Definition at line 113 of file QhullPoints.h.

◆ size()

size_t orgQhull::QhullPoints::size ( ) const
inline

Definition at line 114 of file QhullPoints.h.

◆ toStdVector()

std::vector< QhullPoint > orgQhull::QhullPoints::toStdVector ( ) const

Definition at line 73 of file QhullPoints.cpp.

◆ value() [1/2]

QhullPoint orgQhull::QhullPoints::value ( countT  idx) const

Definition at line 141 of file QhullPoints.cpp.

◆ value() [2/2]

QhullPoint orgQhull::QhullPoints::value ( countT  idx,
QhullPoint defaultValue 
) const

Definition at line 151 of file QhullPoints.cpp.

Member Data Documentation

◆ point_dimension

int orgQhull::QhullPoints::point_dimension
private

Dimension, >=0.

Definition at line 36 of file QhullPoints.h.

◆ point_end

coordT* orgQhull::QhullPoints::point_end
private

End of point coordinates (end>=first). Trailing coordinates ignored.

Definition at line 33 of file QhullPoints.h.

◆ point_first

coordT* orgQhull::QhullPoints::point_first
private

First coordinate of an array of points of point_dimension.

Definition at line 32 of file QhullPoints.h.

◆ qh_qh

QhullQh* orgQhull::QhullPoints::qh_qh
private

Maybe initialized NULL to allow ownership by RboxPoints qh_qh used for QhullPoint() and qh_qh->hull_dim in constructor

Definition at line 34 of file QhullPoints.h.


The documentation for this class was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03