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

#include <QhullLinkedList.h>

Classes

class  const_iterator
 
class  iterator
 

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
 

Defined here

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

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 50 of file QhullLinkedList.h.

Member Typedef Documentation

◆ ConstIterator

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

Definition at line 55 of file QhullLinkedList.h.

◆ difference_type

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

Definition at line 58 of file QhullLinkedList.h.

◆ Iterator

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

Definition at line 57 of file QhullLinkedList.h.

◆ pointer

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

Definition at line 63 of file QhullLinkedList.h.

◆ reference

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

Definition at line 64 of file QhullLinkedList.h.

◆ size_type

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

Definition at line 59 of file QhullLinkedList.h.

◆ value_type

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

Definition at line 60 of file QhullLinkedList.h.

Constructor & Destructor Documentation

◆ QhullLinkedList() [1/3]

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

Definition at line 73 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 75 of file QhullLinkedList.h.

◆ ~QhullLinkedList()

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

Definition at line 78 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 82 of file QhullLinkedList.h.

Member Function Documentation

◆ back() [1/2]

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

Definition at line 105 of file QhullLinkedList.h.

◆ back() [2/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 104 of file QhullLinkedList.h.

◆ begin() [1/2]

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

Definition at line 120 of file QhullLinkedList.h.

◆ begin() [2/2]

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

Definition at line 121 of file QhullLinkedList.h.

◆ constBegin()

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

Definition at line 122 of file QhullLinkedList.h.

◆ constEnd()

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

Definition at line 123 of file QhullLinkedList.h.

◆ contains()

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

Definition at line 269 of file QhullLinkedList.h.

◆ count() [1/2]

template<typename T >
countT orgQhull::QhullLinkedList< T >::count

Definition at line 254 of file QhullLinkedList.h.

◆ count() [2/2]

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

Definition at line 283 of file QhullLinkedList.h.

◆ end() [1/2]

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

Definition at line 124 of file QhullLinkedList.h.

◆ end() [2/2]

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

Definition at line 125 of file QhullLinkedList.h.

◆ first() [1/2]

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

Definition at line 107 of file QhullLinkedList.h.

◆ first() [2/2]

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

Definition at line 106 of file QhullLinkedList.h.

◆ front() [1/2]

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

Definition at line 109 of file QhullLinkedList.h.

◆ front() [2/2]

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

Definition at line 108 of file QhullLinkedList.h.

◆ isEmpty()

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

Definition at line 97 of file QhullLinkedList.h.

◆ last() [1/2]

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

Definition at line 111 of file QhullLinkedList.h.

◆ last() [2/2]

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

Definition at line 110 of file QhullLinkedList.h.

◆ operator!=()

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

Definition at line 99 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 77 of file QhullLinkedList.h.

◆ operator==()

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

Definition at line 298 of file QhullLinkedList.h.

◆ size()

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

Definition at line 100 of file QhullLinkedList.h.

◆ toStdVector()

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

Definition at line 228 of file QhullLinkedList.h.

Member Data Documentation

◆ begin_node

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

Definition at line 68 of file QhullLinkedList.h.

◆ const_pointer

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

Definition at line 61 of file QhullLinkedList.h.

◆ const_reference

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

Definition at line 62 of file QhullLinkedList.h.

◆ end_node

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

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