QhullSetIterator<T> defined below. More...
#include <QhullSet.h>
Public Member Functions | |
int | count () const |
void | defineAs (setT *s) |
Not type-safe since setT may contain any type. | |
bool | empty () const |
setT * | getSetT () const |
bool | isEmpty () const |
QhullSetBase (const QhullSetBase &o) | |
Copy constructor copies the pointer but not the set. Needed for return by value and parameter passing. | |
QhullSetBase (setT *s) | |
setT ** | referenceSetT () |
size_t | size () const |
~QhullSetBase () | |
Static Public Member Functions | |
static int | count (const setT *set) |
Workaround for no setT allocator. Used if setT* is NULL. | |
static bool | isEmpty (const setT *s) |
Protected Member Functions | |
void ** | beginPointer () const |
void ** | elementPointer (int idx) const |
void ** | endPointer () const |
Always points to 0. | |
Private Member Functions | |
QhullSetBase & | operator= (const QhullSetBase &) |
disabled since qs= qs2 is ambiguous (pointer vs. contents) | |
QhullSetBase () | |
disabled since memory allocation for QhullSet not defined | |
Private Attributes | |
setT * | qh_set |
Static Private Attributes | |
static setT | s_empty_set |
QhullSetIterator<T> defined below.
Base class for QhullSet<T> QhullSet<T> -- A read-only wrapper to Qhull's collection class, setT. QhullSet is similar to STL's <vector> and Qt's QVector. QhullSet is unrelated to STL and Qt's set and map types (e.g., QSet and QMap) For STL efficiency, QhullSet caches endPointer() T must be a pointer type A QhullSet does not own its contents -- erase(), clear(), removeFirst(), removeLast(), pop_back(), pop_front(), fromStdList() not defined Qhull's FOREACHelement_() [qset.h] is more efficient than QhullSet. It uses a NULL terminator instead of an end pointer. STL requires an end pointer. Derived from QhullLinkedList.h and Qt/core/tools/qvector.h
Definition at line 42 of file QhullSet.h.
orgQhull::QhullSetBase::QhullSetBase | ( | const QhullSetBase & | o | ) | [inline] |
Copy constructor copies the pointer but not the set. Needed for return by value and parameter passing.
Definition at line 60 of file QhullSet.h.
orgQhull::QhullSetBase::QhullSetBase | ( | setT * | s | ) | [inline, explicit] |
Definition at line 61 of file QhullSet.h.
orgQhull::QhullSetBase::~QhullSetBase | ( | ) | [inline] |
Definition at line 62 of file QhullSet.h.
orgQhull::QhullSetBase::QhullSetBase | ( | ) | [inline, private] |
disabled since memory allocation for QhullSet not defined
Definition at line 66 of file QhullSet.h.
void** orgQhull::QhullSetBase::beginPointer | ( | ) | const [inline, protected] |
Definition at line 85 of file QhullSet.h.
int orgQhull::QhullSetBase::count | ( | const setT * | set | ) | [static] |
Workaround for no setT allocator. Used if setT* is NULL.
Reimplemented in orgQhull::QhullSet< T >, orgQhull::QhullSet< QhullFacet >, orgQhull::QhullSet< QhullVertex >, and orgQhull::QhullSet< coordT * >.
Definition at line 25 of file QhullSet.cpp.
int orgQhull::QhullSetBase::count | ( | ) | const [inline] |
Reimplemented in orgQhull::QhullFacetSet.
Definition at line 78 of file QhullSet.h.
void orgQhull::QhullSetBase::defineAs | ( | setT * | s | ) | [inline] |
Not type-safe since setT may contain any type.
Definition at line 73 of file QhullSet.h.
void** orgQhull::QhullSetBase::elementPointer | ( | int | idx | ) | const [inline, protected] |
Definition at line 86 of file QhullSet.h.
bool orgQhull::QhullSetBase::empty | ( | ) | const [inline] |
Definition at line 79 of file QhullSet.h.
void** orgQhull::QhullSetBase::endPointer | ( | ) | const [inline, protected] |
Always points to 0.
Definition at line 88 of file QhullSet.h.
setT* orgQhull::QhullSetBase::getSetT | ( | ) | const [inline] |
Definition at line 74 of file QhullSet.h.
static bool orgQhull::QhullSetBase::isEmpty | ( | const setT * | s | ) | [inline, static] |
Reimplemented in orgQhull::QhullSet< T >, orgQhull::QhullSet< QhullFacet >, orgQhull::QhullSet< QhullVertex >, and orgQhull::QhullSet< coordT * >.
Definition at line 55 of file QhullSet.h.
bool orgQhull::QhullSetBase::isEmpty | ( | ) | const [inline] |
Definition at line 80 of file QhullSet.h.
QhullSetBase& orgQhull::QhullSetBase::operator= | ( | const QhullSetBase & | ) | [private] |
disabled since qs= qs2 is ambiguous (pointer vs. contents)
setT** orgQhull::QhullSetBase::referenceSetT | ( | ) | [inline] |
Definition at line 75 of file QhullSet.h.
size_t orgQhull::QhullSetBase::size | ( | ) | const [inline] |
Definition at line 81 of file QhullSet.h.
setT* orgQhull::QhullSetBase::qh_set [private] |
Definition at line 46 of file QhullSet.h.
setT orgQhull::QhullSetBase::s_empty_set [static, private] |
Reimplemented in orgQhull::QhullSet< T >, orgQhull::QhullSet< QhullFacet >, orgQhull::QhullSet< QhullVertex >, and orgQhull::QhullSet< coordT * >.
Definition at line 49 of file QhullSet.h.