Classes | List of all members
orgQhull::QhullVertexSet Class Reference

#include <QhullVertexSet.h>

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

Classes

struct  PrintIdentifiers
 
struct  PrintVertexSet
 

Public Member Functions

Destructor
void freeQhSetTemp ()
 
Conversion
std::vector< QhullVertextoStdVector () const
 
IO
const PrintVertexSet print (const char *message) const
 
PrintIdentifiers printIdentifiers (const char *message) const
 
- Public Member Functions inherited from orgQhull::QhullSet< QhullVertex >
std::vector< QhullVertextoStdVector () const
 
const QhullVertex at (countT idx) const
 
const QhullVertex back () const
 
QhullVertex back ()
 
const QhullVertex ::base_type * constData () const
 end element is NULL More...
 
QhullVertex ::base_type * data ()
 
const QhullVertex ::base_type * data () const
 
QhullVertex ::base_type * endData ()
 
const QhullVertex ::base_type * endData () const
 
const QhullVertex first () const
 
QhullVertex first ()
 
const QhullVertex front () const
 
QhullVertex front ()
 
const QhullVertex last () const
 
QhullVertex last ()
 
const QhullVertex operator[] (countT idx) const
 
QhullVertex operator[] (countT idx)
 
const QhullVertex second () const
 
QhullVertex second ()
 
QhullVertex value (countT idx) const
 
QhullVertex value (countT idx, const QhullVertex &defaultValue) const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
const_iterator constEnd () const
 
iterator end ()
 
const_iterator end () const
 
bool contains (const QhullVertex &t) const
 
countT count (const QhullVertex &t) const
 
countT indexOf (const QhullVertex &t) const
 
countT lastIndexOf (const QhullVertex &t) const
 
 QhullSet (const Qhull &q, setT *s)
 
 QhullSet (QhullQh *qqh, setT *s)
 
 QhullSet (const QhullSet< QhullVertex > &other)
 
QhullSet< QhullVertex > & operator= (const QhullSet< QhullVertex > &other)
 
 ~QhullSet ()
 
bool operator== (const QhullSet< QhullVertex > &other) const
 
bool operator!= (const QhullSet< QhullVertex > &other) const
 
countT count () const
 
bool isEmpty () 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 ()
 

Private Attributes

Fields
bool qhsettemp_defined
 

Constructor

Set was allocated with qh_settemp()

 QhullVertexSet (const Qhull &q, setT *s)
 
 QhullVertexSet (const Qhull &q, facetT *facetlist, setT *facetset, bool allfacets)
 
 QhullVertexSet (QhullQh *qqh, setT *s)
 
 QhullVertexSet (QhullQh *qqh, facetT *facetlist, setT *facetset, bool allfacets)
 
 QhullVertexSet (const QhullVertexSet &other)
 
QhullVertexSetoperator= (const QhullVertexSet &other)
 
 ~QhullVertexSet ()
 
 QhullVertexSet ()
 Default constructor disabled. Will implement allocation later. More...
 

Additional Inherited Members

- Public Types inherited from orgQhull::QhullSet< QhullVertex >
typedef QhullSet< QhullVertex >::iterator Iterator
 
typedef QhullSet< QhullVertex >::const_iterator ConstIterator
 
- Static Public Member Functions inherited from orgQhull::QhullSet< QhullVertex >
static countT count (const setT *set)
 
static bool isEmpty (const setT *s)
 
- 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

Definition at line 33 of file QhullVertexSet.h.

Constructor & Destructor Documentation

◆ QhullVertexSet() [1/6]

orgQhull::QhullVertexSet::QhullVertexSet ( const Qhull q,
setT s 
)
inline

Definition at line 41 of file QhullVertexSet.h.

◆ QhullVertexSet() [2/6]

orgQhull::QhullVertexSet::QhullVertexSet ( const Qhull q,
facetT facetlist,
setT facetset,
bool  allfacets 
)

Definition at line 30 of file QhullVertexSet.cpp.

◆ QhullVertexSet() [3/6]

orgQhull::QhullVertexSet::QhullVertexSet ( QhullQh qqh,
setT s 
)
inline

Definition at line 44 of file QhullVertexSet.h.

◆ QhullVertexSet() [4/6]

orgQhull::QhullVertexSet::QhullVertexSet ( QhullQh qqh,
facetT facetlist,
setT facetset,
bool  allfacets 
)

Return tempory QhullVertexSet of vertices for a list and/or a set of facets Sets qhsettemp_defined (disallows copy constructor and assignment to prevent double-free)

Definition at line 46 of file QhullVertexSet.cpp.

◆ QhullVertexSet() [5/6]

orgQhull::QhullVertexSet::QhullVertexSet ( const QhullVertexSet other)

Copy constructor for argument passing and returning a result Only copies a pointer to the set. Throws an error if qhsettemp_defined, otherwise have a double-free

Todo:
Convert QhullVertexSet to a shared pointer with reference counting

Definition at line 64 of file QhullVertexSet.cpp.

◆ ~QhullVertexSet()

orgQhull::QhullVertexSet::~QhullVertexSet ( )

Definition at line 100 of file QhullVertexSet.cpp.

◆ QhullVertexSet() [6/6]

orgQhull::QhullVertexSet::QhullVertexSet ( )
private

Default constructor disabled. Will implement allocation later.

Member Function Documentation

◆ freeQhSetTemp()

void orgQhull::QhullVertexSet::freeQhSetTemp ( )

Definition at line 87 of file QhullVertexSet.cpp.

◆ operator=()

QhullVertexSet & orgQhull::QhullVertexSet::operator= ( const QhullVertexSet other)

Copy assignment only copies a pointer to the set. Throws an error if qhsettemp_defined, otherwise have a double-free

Definition at line 76 of file QhullVertexSet.cpp.

◆ print()

const PrintVertexSet orgQhull::QhullVertexSet::print ( const char *  message) const
inline

Definition at line 73 of file QhullVertexSet.h.

◆ printIdentifiers()

PrintIdentifiers orgQhull::QhullVertexSet::printIdentifiers ( const char *  message) const
inline

Definition at line 80 of file QhullVertexSet.h.

◆ toStdVector()

std::vector< QhullVertex > orgQhull::QhullVertexSet::toStdVector ( ) const

Definition at line 108 of file QhullVertexSet.cpp.

Member Data Documentation

◆ qhsettemp_defined

bool orgQhull::QhullVertexSet::qhsettemp_defined
private

Definition at line 37 of file QhullVertexSet.h.


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


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00