#include <QhullVertexSet.h>
Classes | |
struct | PrintIdentifiers |
struct | PrintVertexSet |
Public Member Functions | |
Destructor | |
void | freeQhSetTemp () |
Conversion | |
std::vector< QhullVertex > | toStdVector () const |
IO | |
const PrintVertexSet | print (const char *message) const |
PrintIdentifiers | printIdentifiers (const char *message) const |
Public Member Functions inherited from orgQhull::QhullSet< QhullVertex > | |
std::vector< QhullVertex > | toStdVector () const |
bool | operator== (const QhullSet< QhullVertex > &other) const |
bool | operator!= (const QhullSet< QhullVertex > &other) const |
const QhullVertex | at (countT idx) const |
const QhullVertex | back () const |
QhullVertex | back () |
const QhullVertex ::base_type * | constData () const |
end element is NULL More... | |
QhullVertex ::base_type * | data () |
const QhullVertex ::base_type * | data () const |
QhullVertex ::base_type * | endData () |
const QhullVertex ::base_type * | endData () const |
const QhullVertex | first () const |
QhullVertex | first () |
const QhullVertex | front () const |
QhullVertex | front () |
const QhullVertex | last () const |
QhullVertex | last () |
const QhullVertex | operator[] (countT idx) const |
QhullVertex | operator[] (countT idx) |
const QhullVertex | second () const |
QhullVertex | second () |
QhullVertex | value (countT idx) const |
QhullVertex | value (countT idx, const QhullVertex &defaultValue) const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
iterator | end () |
const_iterator | end () const |
bool | contains (const QhullVertex &t) const |
countT | count (const QhullVertex &t) const |
countT | indexOf (const QhullVertex &t) const |
countT | lastIndexOf (const QhullVertex &t) const |
QhullSet (const Qhull &q, setT *s) | |
QhullSet (QhullQh *qqh, setT *s) | |
QhullSet (const QhullSet< QhullVertex > &other) | |
QhullSet< QhullVertex > & | operator= (const QhullSet< QhullVertex > &other) |
~QhullSet () | |
Public Member Functions inherited from orgQhull::QhullSetBase | |
countT | count () const |
void | defineAs (setT *s) |
Not type-safe since setT may contain any type. More... | |
void | forceEmpty () |
setT * | getSetT () const |
bool | isEmpty () const |
QhullQh * | qh () const |
setT ** | referenceSetT () |
size_t | size () const |
QhullSetBase (const Qhull &q, setT *s) | |
QhullSetBase (QhullQh *qqh, setT *s) | |
QhullSetBase (const QhullSetBase &other) | |
Copy constructor copies the pointer but not the set. Needed for return by value and parameter passing. More... | |
QhullSetBase & | operator= (const QhullSetBase &other) |
~QhullSetBase () | |
Private Attributes | |
Fields | |
bool | qhsettemp_defined |
Constructor | |
Set was allocated with qh_settemp() | |
QhullVertexSet (const Qhull &q, setT *s) | |
QhullVertexSet (const Qhull &q, facetT *facetlist, setT *facetset, bool allfacets) | |
QhullVertexSet (QhullQh *qqh, setT *s) | |
QhullVertexSet (QhullQh *qqh, facetT *facetlist, setT *facetset, bool allfacets) | |
QhullVertexSet (const QhullVertexSet &other) | |
QhullVertexSet & | operator= (const QhullVertexSet &other) |
~QhullVertexSet () | |
QhullVertexSet () | |
Default constructor disabled. Will implement allocation later. More... | |
Additional Inherited Members | |
Public Types inherited from orgQhull::QhullSet< QhullVertex > | |
typedef QhullSet< QhullVertex >::iterator | Iterator |
typedef QhullSet< QhullVertex >::const_iterator | ConstIterator |
Static Public Member Functions inherited from orgQhull::QhullSetBase | |
static countT | count (const setT *set) |
static bool | isEmpty (const setT *s) |
Protected Member Functions inherited from orgQhull::QhullSetBase | |
void ** | beginPointer () const |
void ** | elementPointer (countT idx) const |
void ** | endPointer () const |
Always points to 0. More... | |
Definition at line 27 of file QhullVertexSet.h.
Definition at line 35 of file QhullVertexSet.h.
orgQhull::QhullVertexSet::QhullVertexSet | ( | const Qhull & | q, |
facetT * | facetlist, | ||
setT * | facetset, | ||
bool | allfacets | ||
) |
Definition at line 30 of file QhullVertexSet.cpp.
Definition at line 38 of file QhullVertexSet.h.
orgQhull::QhullVertexSet::QhullVertexSet | ( | QhullQh * | qqh, |
facetT * | facetlist, | ||
setT * | facetset, | ||
bool | allfacets | ||
) |
Return tempory QhullVertexSet of vertices for a list and/or a set of facets Sets qhsettemp_defined (disallows copy constructor and assignment to prevent double-free)
Definition at line 46 of file QhullVertexSet.cpp.
orgQhull::QhullVertexSet::QhullVertexSet | ( | const QhullVertexSet & | other | ) |
Copy constructor for argument passing and returning a result Only copies a pointer to the set. Throws an error if qhsettemp_defined, otherwise have a double-free
Definition at line 64 of file QhullVertexSet.cpp.
orgQhull::QhullVertexSet::~QhullVertexSet | ( | ) |
Definition at line 100 of file QhullVertexSet.cpp.
|
private |
Default constructor disabled. Will implement allocation later.
void orgQhull::QhullVertexSet::freeQhSetTemp | ( | ) |
Definition at line 87 of file QhullVertexSet.cpp.
QhullVertexSet & orgQhull::QhullVertexSet::operator= | ( | const QhullVertexSet & | other | ) |
Copy assignment only copies a pointer to the set. Throws an error if qhsettemp_defined, otherwise have a double-free
Definition at line 76 of file QhullVertexSet.cpp.
|
inline |
Definition at line 67 of file QhullVertexSet.h.
|
inline |
Definition at line 74 of file QhullVertexSet.h.
std::vector< QhullVertex > orgQhull::QhullVertexSet::toStdVector | ( | ) | const |
Definition at line 108 of file QhullVertexSet.cpp.
|
private |
Definition at line 31 of file QhullVertexSet.h.