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

#include <QhullLinkedList.h>

Classes

class  const_iterator
 
class  iterator
 

Public Types

Defined here
typedef const_iterator ConstIterator
 
typedef iterator Iterator
 
typedef ptrdiff_t difference_type
 
typedef countT size_type
 
typedef T value_type
 
typedef const value_typeconst_pointer
 
typedef const value_typeconst_reference
 
typedef value_typepointer
 
typedef value_typereference
 

Public Member Functions

Conversions
std::vector< T > toStdVector () const
 
GetSet
countT count () const
 
bool isEmpty () const
 
bool operator== (const QhullLinkedList< T > &o) const
 
bool operator!= (const QhullLinkedList< T > &o) const
 
size_t size () const
 
Element access
const T back () const
 For back() and last(), return T instead of T& (T is computed) More...
 
back ()
 
const T & first () const
 
T & first ()
 
const T & front () const
 
T & front ()
 
const T last () const
 
last ()
 
Search
bool contains (const T &t) const
 
countT count (const T &t) const
 
Iterator
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
const_iterator constEnd () const
 
iterator end ()
 
const_iterator end () const
 

Private Attributes

Fields
begin_node
 
end_node
 

Constructors

Sentinel node at end of list

 QhullLinkedList (T b, T e)
 
 QhullLinkedList (const QhullLinkedList< T > &other)
 Copy constructor copies begin_node and end_node, but not the list elements. Needed for return by value and parameter passing. More...
 
QhullLinkedList< T > & operator= (const QhullLinkedList< T > &other)
 Copy assignment copies begin_node and end_node, but not the list elements. More...
 
 ~QhullLinkedList ()
 
 QhullLinkedList ()
 disabled since a sentinel must be allocated as the private type More...
 

Detailed Description

template<typename T>
class orgQhull::QhullLinkedList< T >

QhullLinkedList<T> – A linked list modeled on QLinkedList. T is an opaque type with T(B *b), b=t.getBaseT(), t=t.next(), and t=t.prev(). The end node is a sentinel. QhullQh/qhT owns the contents. QhullLinkedList does not define erase(), clear(), removeFirst(), removeLast(), pop_back(), pop_front(), fromStdList() Derived from Qt/core/tools/qlinkedlist.h and libqhull_r.h/FORALLfacets_() QhullLinkedList<T>::const_iterator – STL-style iterator QhullLinkedList<T>::iterator – STL-style iterator QhullLinkedListIterator<T> – Java-style iterator Derived from Qt/core/tools/qiterator.h Works with Qt's foreach keyword [Qt/src/corelib/global/qglobal.h]

Definition at line 44 of file QhullLinkedList.h.

Member Typedef Documentation

◆ const_pointer

template<typename T>
typedef const value_type* orgQhull::QhullLinkedList< T >::const_pointer

Definition at line 55 of file QhullLinkedList.h.

◆ const_reference

template<typename T>
typedef const value_type& orgQhull::QhullLinkedList< T >::const_reference

Definition at line 56 of file QhullLinkedList.h.

◆ ConstIterator

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

Definition at line 49 of file QhullLinkedList.h.

◆ difference_type

template<typename T>
typedef ptrdiff_t orgQhull::QhullLinkedList< T >::difference_type

Definition at line 52 of file QhullLinkedList.h.

◆ Iterator

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

Definition at line 51 of file QhullLinkedList.h.

◆ pointer

template<typename T>
typedef value_type* orgQhull::QhullLinkedList< T >::pointer

Definition at line 57 of file QhullLinkedList.h.

◆ reference

template<typename T>
typedef value_type& orgQhull::QhullLinkedList< T >::reference

Definition at line 58 of file QhullLinkedList.h.

◆ size_type

template<typename T>
typedef countT orgQhull::QhullLinkedList< T >::size_type

Definition at line 53 of file QhullLinkedList.h.

◆ value_type

template<typename T>
typedef T orgQhull::QhullLinkedList< T >::value_type

Definition at line 54 of file QhullLinkedList.h.

Constructor & Destructor Documentation

◆ QhullLinkedList() [1/3]

template<typename T>
orgQhull::QhullLinkedList< T >::QhullLinkedList ( b,
e 
)
inline

Definition at line 67 of file QhullLinkedList.h.

◆ QhullLinkedList() [2/3]

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

Copy constructor copies begin_node and end_node, but not the list elements. Needed for return by value and parameter passing.

Definition at line 69 of file QhullLinkedList.h.

◆ ~QhullLinkedList()

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

Definition at line 72 of file QhullLinkedList.h.

◆ QhullLinkedList() [3/3]

template<typename T>
orgQhull::QhullLinkedList< T >::QhullLinkedList ( )
inlineprivate

disabled since a sentinel must be allocated as the private type

Definition at line 76 of file QhullLinkedList.h.

Member Function Documentation

◆ back() [1/2]

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

For back() and last(), return T instead of T& (T is computed)

Definition at line 98 of file QhullLinkedList.h.

◆ back() [2/2]

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

Definition at line 99 of file QhullLinkedList.h.

◆ begin() [1/2]

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

Definition at line 114 of file QhullLinkedList.h.

◆ begin() [2/2]

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

Definition at line 115 of file QhullLinkedList.h.

◆ constBegin()

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

Definition at line 116 of file QhullLinkedList.h.

◆ constEnd()

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

Definition at line 117 of file QhullLinkedList.h.

◆ contains()

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

Definition at line 263 of file QhullLinkedList.h.

◆ count() [1/2]

template<typename T >
countT orgQhull::QhullLinkedList< T >::count ( ) const

Definition at line 248 of file QhullLinkedList.h.

◆ count() [2/2]

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

Definition at line 277 of file QhullLinkedList.h.

◆ end() [1/2]

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

Definition at line 118 of file QhullLinkedList.h.

◆ end() [2/2]

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

Definition at line 119 of file QhullLinkedList.h.

◆ first() [1/2]

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

Definition at line 100 of file QhullLinkedList.h.

◆ first() [2/2]

template<typename T>
T& orgQhull::QhullLinkedList< T >::first ( )
inline

Definition at line 101 of file QhullLinkedList.h.

◆ front() [1/2]

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

Definition at line 102 of file QhullLinkedList.h.

◆ front() [2/2]

template<typename T>
T& orgQhull::QhullLinkedList< T >::front ( )
inline

Definition at line 103 of file QhullLinkedList.h.

◆ isEmpty()

template<typename T>
bool orgQhull::QhullLinkedList< T >::isEmpty ( ) const
inline

Definition at line 91 of file QhullLinkedList.h.

◆ last() [1/2]

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

Definition at line 104 of file QhullLinkedList.h.

◆ last() [2/2]

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

Definition at line 105 of file QhullLinkedList.h.

◆ operator!=()

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

Definition at line 93 of file QhullLinkedList.h.

◆ operator=()

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

Copy assignment copies begin_node and end_node, but not the list elements.

Definition at line 71 of file QhullLinkedList.h.

◆ operator==()

template<typename T>
bool orgQhull::QhullLinkedList< T >::operator== ( const QhullLinkedList< T > &  o) const

Definition at line 292 of file QhullLinkedList.h.

◆ size()

template<typename T>
size_t orgQhull::QhullLinkedList< T >::size ( ) const
inline

Definition at line 94 of file QhullLinkedList.h.

◆ toStdVector()

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

Definition at line 222 of file QhullLinkedList.h.

Member Data Documentation

◆ begin_node

template<typename T>
T orgQhull::QhullLinkedList< T >::begin_node
private

Definition at line 62 of file QhullLinkedList.h.

◆ end_node

template<typename T>
T orgQhull::QhullLinkedList< T >::end_node
private

Definition at line 63 of file QhullLinkedList.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