Classes | List of all members
orgQhull::QhullSet< T > Class Template Reference

#include <QhullSet.h>

Inheritance diagram for orgQhull::QhullSet< T >:
Inheritance graph
[legend]

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
 
Element access
const T at (countT idx) const
 
const T back () const
 
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
 
first ()
 
const T front () const
 
front ()
 
const T last () const
 
last ()
 
const T operator[] (countT idx) const
 
operator[] (countT idx)
 
const T second () const
 
second ()
 
value (countT idx) const
 
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 forceEmpty ()
 
setTgetSetT () const
 
bool isEmpty () const
 
QhullQhqh () 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...
 
QhullSetBaseoperator= (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...
 

GetSet – see QhullSetBase for count(), empty(), isEmpty(), size()

bool operator== (const QhullSet< T > &other) const
 
bool operator!= (const QhullSet< T > &other) const
 
countT count () const
 
bool isEmpty () const
 
static countT count (const setT *set)
 
static bool isEmpty (const setT *s)
 

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...
 

Detailed Description

template<typename T>
class orgQhull::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) 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 105 of file QhullSet.h.

Member Typedef Documentation

◆ ConstIterator

template<typename T >
typedef QhullSet<T>::const_iterator orgQhull::QhullSet< T >::ConstIterator

Definition at line 118 of file QhullSet.h.

◆ Iterator

template<typename T >
typedef QhullSet<T>::iterator orgQhull::QhullSet< T >::Iterator

Definition at line 116 of file QhullSet.h.

Constructor & Destructor Documentation

◆ QhullSet() [1/4]

template<typename T >
orgQhull::QhullSet< T >::QhullSet ( const Qhull q,
setT s 
)
inline

Definition at line 121 of file QhullSet.h.

◆ QhullSet() [2/4]

template<typename T >
orgQhull::QhullSet< T >::QhullSet ( QhullQh qqh,
setT s 
)
inline

Definition at line 122 of file QhullSet.h.

◆ QhullSet() [3/4]

template<typename T >
orgQhull::QhullSet< T >::QhullSet ( const QhullSet< T > &  other)
inline

Definition at line 125 of file QhullSet.h.

◆ ~QhullSet()

template<typename T >
orgQhull::QhullSet< T >::~QhullSet ( )
inline

Definition at line 127 of file QhullSet.h.

◆ QhullSet() [4/4]

template<typename T >
orgQhull::QhullSet< T >::QhullSet ( )
private

Disable default constructor. See QhullSetBase.

Member Function Documentation

◆ at()

template<typename T >
const T orgQhull::QhullSet< T >::at ( countT  idx) const
inline

Definition at line 152 of file QhullSet.h.

◆ back() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::back ( )
inline

Definition at line 155 of file QhullSet.h.

◆ back() [2/2]

template<typename T >
const T orgQhull::QhullSet< T >::back ( ) const
inline

Definition at line 154 of file QhullSet.h.

◆ begin() [1/2]

template<typename T >
iterator orgQhull::QhullSet< T >::begin ( )
inline

Definition at line 183 of file QhullSet.h.

◆ begin() [2/2]

template<typename T >
const_iterator orgQhull::QhullSet< T >::begin ( ) const
inline

Definition at line 184 of file QhullSet.h.

◆ constBegin()

template<typename T >
const_iterator orgQhull::QhullSet< T >::constBegin ( ) const
inline

Definition at line 185 of file QhullSet.h.

◆ constData()

template<typename T >
const T::base_type* orgQhull::QhullSet< T >::constData ( ) const
inline

end element is NULL

Definition at line 157 of file QhullSet.h.

◆ constEnd()

template<typename T >
const_iterator orgQhull::QhullSet< T >::constEnd ( ) const
inline

Definition at line 186 of file QhullSet.h.

◆ contains()

template<typename T >
bool orgQhull::QhullSet< T >::contains ( const T &  t) const

Definition at line 385 of file QhullSet.h.

◆ count() [1/3]

template<typename T >
countT orgQhull::QhullSetBase::count
inline

Definition at line 72 of file QhullSet.h.

◆ count() [2/3]

template<typename T >
countT orgQhull::QhullSetBase::count
static

Definition at line 45 of file QhullSet.cpp.

◆ count() [3/3]

template<typename T >
countT orgQhull::QhullSet< T >::count ( const T &  t) const

Definition at line 395 of file QhullSet.h.

◆ data() [1/2]

template<typename T >
T::base_type* orgQhull::QhullSet< T >::data ( )
inline

Definition at line 158 of file QhullSet.h.

◆ data() [2/2]

template<typename T >
const T::base_type* orgQhull::QhullSet< T >::data ( ) const
inline

Definition at line 159 of file QhullSet.h.

◆ end() [1/2]

template<typename T >
iterator orgQhull::QhullSet< T >::end ( )
inline

Definition at line 187 of file QhullSet.h.

◆ end() [2/2]

template<typename T >
const_iterator orgQhull::QhullSet< T >::end ( ) const
inline

Definition at line 188 of file QhullSet.h.

◆ endData() [1/2]

template<typename T >
T::base_type* orgQhull::QhullSet< T >::endData ( )
inline

Definition at line 160 of file QhullSet.h.

◆ endData() [2/2]

template<typename T >
const T::base_type* orgQhull::QhullSet< T >::endData ( ) const
inline

Definition at line 161 of file QhullSet.h.

◆ first() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::first ( )
inline

Definition at line 164 of file QhullSet.h.

◆ first() [2/2]

template<typename T >
const T orgQhull::QhullSet< T >::first ( ) const
inline

Definition at line 163 of file QhullSet.h.

◆ front() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::front ( )
inline

Definition at line 167 of file QhullSet.h.

◆ front() [2/2]

template<typename T >
const T orgQhull::QhullSet< T >::front ( ) const
inline

Definition at line 166 of file QhullSet.h.

◆ indexOf()

template<typename T >
countT orgQhull::QhullSet< T >::indexOf ( const T &  t) const
inline

Definition at line 193 of file QhullSet.h.

◆ isEmpty() [1/2]

template<typename T >
bool orgQhull::QhullSetBase::isEmpty
inline

Definition at line 76 of file QhullSet.h.

◆ isEmpty() [2/2]

template<typename T >
static bool orgQhull::QhullSetBase::isEmpty
inlinestatic

Definition at line 92 of file QhullSet.h.

◆ last() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::last ( )
inline

Definition at line 170 of file QhullSet.h.

◆ last() [2/2]

template<typename T >
const T orgQhull::QhullSet< T >::last ( ) const
inline

Definition at line 169 of file QhullSet.h.

◆ lastIndexOf()

template<typename T >
countT orgQhull::QhullSet< T >::lastIndexOf ( const T &  t) const

Definition at line 412 of file QhullSet.h.

◆ operator!=()

template<typename T >
bool orgQhull::QhullSet< T >::operator!= ( const QhullSet< T > &  other) const
inline

Definition at line 148 of file QhullSet.h.

◆ operator=()

template<typename T >
QhullSet<T>& orgQhull::QhullSet< T >::operator= ( const QhullSet< T > &  other)
inline

Definition at line 126 of file QhullSet.h.

◆ operator==()

template<typename T >
bool orgQhull::QhullSet< T >::operator== ( const QhullSet< T > &  other) const
inline

Definition at line 147 of file QhullSet.h.

◆ operator[]() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::operator[] ( countT  idx)
inline

Definition at line 174 of file QhullSet.h.

◆ operator[]() [2/2]

template<typename T >
const T orgQhull::QhullSet< T >::operator[] ( countT  idx) const
inline

Definition at line 173 of file QhullSet.h.

◆ second() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::second ( )
inline

Definition at line 176 of file QhullSet.h.

◆ second() [2/2]

template<typename T >
const T orgQhull::QhullSet< T >::second ( ) const
inline

Definition at line 175 of file QhullSet.h.

◆ toStdVector()

template<typename T >
std::vector< T > orgQhull::QhullSet< T >::toStdVector

Definition at line 334 of file QhullSet.h.

◆ value() [1/2]

template<typename T >
T orgQhull::QhullSet< T >::value ( countT  idx) const

Definition at line 365 of file QhullSet.h.

◆ value() [2/2]

template<typename T >
T orgQhull::QhullSet< T >::value ( countT  idx,
const T &  defaultValue 
) const

Definition at line 374 of file QhullSet.h.

Member Data Documentation

◆ s_empty_set

template<typename T >
setT orgQhull::QhullSet< T >::s_empty_set
staticprivate

Definition at line 111 of file QhullSet.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:17