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
 
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
 
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 defineAs (setT *s)
 Not type-safe since setT may contain any type. More...
 
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...
 

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 99 of file QhullSet.h.

Member Typedef Documentation

◆ ConstIterator

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

Definition at line 112 of file QhullSet.h.

◆ Iterator

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

Definition at line 110 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 115 of file QhullSet.h.

◆ QhullSet() [2/4]

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

Definition at line 116 of file QhullSet.h.

◆ QhullSet() [3/4]

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

Definition at line 119 of file QhullSet.h.

◆ ~QhullSet()

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

Definition at line 121 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 146 of file QhullSet.h.

◆ back() [1/2]

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

Definition at line 148 of file QhullSet.h.

◆ back() [2/2]

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

Definition at line 149 of file QhullSet.h.

◆ begin() [1/2]

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

Definition at line 177 of file QhullSet.h.

◆ begin() [2/2]

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

Definition at line 178 of file QhullSet.h.

◆ constBegin()

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

Definition at line 179 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 151 of file QhullSet.h.

◆ constEnd()

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

Definition at line 180 of file QhullSet.h.

◆ contains()

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

Definition at line 379 of file QhullSet.h.

◆ count()

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

Definition at line 389 of file QhullSet.h.

◆ data() [1/2]

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

Definition at line 152 of file QhullSet.h.

◆ data() [2/2]

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

Definition at line 153 of file QhullSet.h.

◆ end() [1/2]

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

Definition at line 181 of file QhullSet.h.

◆ end() [2/2]

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

Definition at line 182 of file QhullSet.h.

◆ endData() [1/2]

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

Definition at line 154 of file QhullSet.h.

◆ endData() [2/2]

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

Definition at line 155 of file QhullSet.h.

◆ first() [1/2]

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

Definition at line 157 of file QhullSet.h.

◆ first() [2/2]

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

Definition at line 158 of file QhullSet.h.

◆ front() [1/2]

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

Definition at line 160 of file QhullSet.h.

◆ front() [2/2]

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

Definition at line 161 of file QhullSet.h.

◆ indexOf()

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

Definition at line 187 of file QhullSet.h.

◆ last() [1/2]

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

Definition at line 163 of file QhullSet.h.

◆ last() [2/2]

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

Definition at line 164 of file QhullSet.h.

◆ lastIndexOf()

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

Definition at line 406 of file QhullSet.h.

◆ operator!=()

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

Definition at line 142 of file QhullSet.h.

◆ operator=()

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

Definition at line 120 of file QhullSet.h.

◆ operator==()

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

Definition at line 141 of file QhullSet.h.

◆ operator[]() [1/2]

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

Definition at line 167 of file QhullSet.h.

◆ operator[]() [2/2]

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

Definition at line 168 of file QhullSet.h.

◆ second() [1/2]

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

Definition at line 169 of file QhullSet.h.

◆ second() [2/2]

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

Definition at line 170 of file QhullSet.h.

◆ toStdVector()

template<typename T >
std::vector< T > orgQhull::QhullSet< T >::toStdVector ( ) const

Definition at line 328 of file QhullSet.h.

◆ value() [1/2]

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

Definition at line 359 of file QhullSet.h.

◆ value() [2/2]

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

Definition at line 368 of file QhullSet.h.

Member Data Documentation

◆ s_empty_set

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

Definition at line 105 of file QhullSet.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03