All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
orgQhull::QhullSetBase Class Reference

QhullSetIterator<T> defined below. More...

#include <QhullSet.h>

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

List of all members.

Public Member Functions

int count () const
void defineAs (setT *s)
 Not type-safe since setT may contain any type.
bool empty () const
setTgetSetT () 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

QhullSetBaseoperator= (const QhullSetBase &)
 disabled since qs= qs2 is ambiguous (pointer vs. contents)
 QhullSetBase ()
 disabled since memory allocation for QhullSet not defined

Private Attributes

setTqh_set

Static Private Attributes

static setT s_empty_set

Detailed Description

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.


Constructor & Destructor Documentation

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.

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.


Member Function Documentation

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.

Definition at line 74 of file QhullSet.h.

static bool orgQhull::QhullSetBase::isEmpty ( const setT s) [inline, static]
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)

Definition at line 75 of file QhullSet.h.

size_t orgQhull::QhullSetBase::size ( ) const [inline]

Definition at line 81 of file QhullSet.h.


Member Data Documentation

Definition at line 46 of file QhullSet.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libqhull
Author(s): Robert Krug
autogenerated on Tue Jun 18 2013 12:38:50