#include <QhullSet.h>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
Defined here | |
Workaround for no setT allocator. Used if setT* is NULL | |
typedef QhullSet< T >::iterator | Iterator |
typedef QhullSet< T >::const_iterator | ConstIterator |
Public Member Functions | |
Conversion | |
std::vector< T > | toStdVector () const |
GetSet -- see QhullSetBase for count(), empty(), isEmpty(), size() | |
bool | operator== (const QhullSet< T > &other) const |
bool | operator!= (const QhullSet< T > &other) const |
Element access | |
const T | at (countT idx) const |
const T | back () const |
T | back () |
const T::base_type * | constData () const |
end element is NULL More... | |
T::base_type * | data () |
const T::base_type * | data () const |
T::base_type * | endData () |
const T::base_type * | endData () const |
const T | first () const |
T | first () |
const T | front () const |
T | front () |
const T | last () const |
T | last () |
const T | operator[] (countT idx) const |
T | operator[] (countT idx) |
const T | second () const |
T | second () |
T | value (countT idx) const |
T | value (countT idx, const T &defaultValue) const |
iterator | |
iterator | begin () |
const_iterator | begin () const |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
iterator | end () |
const_iterator | end () const |
Search | |
bool | contains (const T &t) const |
countT | count (const T &t) const |
countT | indexOf (const T &t) const |
countT | lastIndexOf (const T &t) const |
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 () | |
Static Private Attributes | |
Class objects | |
static setT | s_empty_set |
Constructors | |
QhullSet (const Qhull &q, setT *s) | |
QhullSet (QhullQh *qqh, setT *s) | |
QhullSet (const QhullSet< T > &other) | |
QhullSet< T > & | operator= (const QhullSet< T > &other) |
~QhullSet () | |
QhullSet () | |
Disable default constructor. See QhullSetBase. More... | |
Additional Inherited Members | |
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... | |
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) T is a Qhull type that defines 'base_type' and getBaseT() (e.g., QhullFacet with base_type 'facetT *' A QhullSet does not own its contents – erase(), clear(), removeFirst(), removeLast(), pop_back(), pop_front(), fromStdList() not defined QhullSetIterator is faster than STL-style iterator/const_iterator Qhull's FOREACHelement_() [qset_r.h] maybe 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/qlist.h w/o QT_STRICT_ITERATORS
Definition at line 99 of file QhullSet.h.
typedef QhullSet<T>::const_iterator orgQhull::QhullSet< T >::ConstIterator |
Definition at line 112 of file QhullSet.h.
typedef QhullSet<T>::iterator orgQhull::QhullSet< T >::Iterator |
Definition at line 110 of file QhullSet.h.
|
inline |
Definition at line 115 of file QhullSet.h.
|
inline |
Definition at line 116 of file QhullSet.h.
|
inline |
Definition at line 119 of file QhullSet.h.
|
inline |
Definition at line 121 of file QhullSet.h.
|
private |
Disable default constructor. See QhullSetBase.
|
inline |
Definition at line 146 of file QhullSet.h.
|
inline |
Definition at line 148 of file QhullSet.h.
|
inline |
Definition at line 149 of file QhullSet.h.
|
inline |
Definition at line 177 of file QhullSet.h.
|
inline |
Definition at line 178 of file QhullSet.h.
|
inline |
Definition at line 179 of file QhullSet.h.
|
inline |
end element is NULL
Definition at line 151 of file QhullSet.h.
|
inline |
Definition at line 180 of file QhullSet.h.
bool orgQhull::QhullSet< T >::contains | ( | const T & | t | ) | const |
Definition at line 379 of file QhullSet.h.
countT orgQhull::QhullSet< T >::count | ( | const T & | t | ) | const |
Definition at line 389 of file QhullSet.h.
|
inline |
Definition at line 152 of file QhullSet.h.
|
inline |
Definition at line 153 of file QhullSet.h.
|
inline |
Definition at line 181 of file QhullSet.h.
|
inline |
Definition at line 182 of file QhullSet.h.
|
inline |
Definition at line 154 of file QhullSet.h.
|
inline |
Definition at line 155 of file QhullSet.h.
|
inline |
Definition at line 157 of file QhullSet.h.
|
inline |
Definition at line 158 of file QhullSet.h.
|
inline |
Definition at line 160 of file QhullSet.h.
|
inline |
Definition at line 161 of file QhullSet.h.
|
inline |
Definition at line 187 of file QhullSet.h.
|
inline |
Definition at line 163 of file QhullSet.h.
|
inline |
Definition at line 164 of file QhullSet.h.
countT orgQhull::QhullSet< T >::lastIndexOf | ( | const T & | t | ) | const |
Definition at line 406 of file QhullSet.h.
|
inline |
Definition at line 142 of file QhullSet.h.
|
inline |
Definition at line 120 of file QhullSet.h.
|
inline |
Definition at line 141 of file QhullSet.h.
|
inline |
Definition at line 167 of file QhullSet.h.
|
inline |
Definition at line 168 of file QhullSet.h.
|
inline |
Definition at line 169 of file QhullSet.h.
|
inline |
Definition at line 170 of file QhullSet.h.
std::vector< T > orgQhull::QhullSet< T >::toStdVector | ( | ) | const |
Definition at line 328 of file QhullSet.h.
T orgQhull::QhullSet< T >::value | ( | countT | idx | ) | const |
Definition at line 359 of file QhullSet.h.
T orgQhull::QhullSet< T >::value | ( | countT | idx, |
const T & | defaultValue | ||
) | const |
Definition at line 368 of file QhullSet.h.
|
staticprivate |
Definition at line 105 of file QhullSet.h.