/usr/include/libqhullcpp/QhullVertexSet.h is in libqhull-dev 2012.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | /****************************************************************************
**
** Copyright (c) 2009-2012 C.B. Barber. All rights reserved.
** $Id: //main/2011/qhull/src/libqhullcpp/QhullVertexSet.h#5 $$Change: 1464 $
** $DateTime: 2012/01/25 22:58:41 $$Author: bbarber $
**
****************************************************************************/
#ifndef QHULLVERTEXSET_H
#define QHULLVERTEXSET_H
#include "QhullSet.h"
#include <ostream>
namespace orgQhull {
#//ClassRef
class QhullVertex;
#//Types
//! QhullVertexSet -- a set of Qhull Vertices, as a C++ class.
//! See Qhull
class QhullVertexSet;
typedef QhullSetIterator<QhullVertex>
QhullVertexSetIterator;
class QhullVertexSet : public QhullSet<QhullVertex> {
private:
#//Fields
Qhull *qhsettemp_qhull; //! For sets allocated with qh_settemp()
bool qhsettemp_defined; //! Set was allocated with q_memalloc()
public:
#//Constructor
//Conversion from setT* is not type-safe. Implicit conversion for void* to T
explicit QhullVertexSet(setT *s) : QhullSet<QhullVertex>(s), qhsettemp_qhull(0), qhsettemp_defined(false) {}
QhullVertexSet(int qhRunId, facetT *facetlist, setT *facetset, bool allfacets);
//Copy constructor copies pointer but not contents. Needed for return by value.
QhullVertexSet(const QhullVertexSet &o) : QhullSet<QhullVertex>(o), qhsettemp_qhull(o.qhsettemp_qhull), qhsettemp_defined(o.qhsettemp_defined) {}
~QhullVertexSet();
private:
//!Disable default constructor and copy assignment. See QhullSetBase
QhullVertexSet();
QhullVertexSet &operator=(const QhullVertexSet &);
public:
#//Constructor, destructor
void freeQhSetTemp();
#//IO
struct PrintVertexSet{
const QhullVertexSet *Vertex_set;
const char *print_message;
int run_id;
PrintVertexSet(int qhRunId, const char *message, const QhullVertexSet *s) : Vertex_set(s), print_message(message), run_id(qhRunId) {}
};//PrintVertexSet
const PrintVertexSet print(int qhRunId, const char *message) const { return PrintVertexSet(qhRunId, message, this); }
struct PrintIdentifiers{
const QhullVertexSet *Vertex_set;
const char *print_message;
PrintIdentifiers(const char *message, const QhullVertexSet *s) : Vertex_set(s), print_message(message) {}
};//PrintIdentifiers
PrintIdentifiers printIdentifiers(const char *message) const { return PrintIdentifiers(message, this); }
};//class QhullVertexSet
}//namespace orgQhull
#//== Global namespace =========================================
std::ostream &operator<<(std::ostream &os, const orgQhull::QhullVertexSet::PrintVertexSet &pr);
std::ostream &operator<<(std::ostream &os, const orgQhull::QhullVertexSet::PrintIdentifiers &p);
inline std::ostream &operator<<(std::ostream &os, const orgQhull::QhullVertexSet &vs) { os << vs.print(orgQhull::UsingLibQhull::NOqhRunId, ""); return os; }
#endif // QHULLVERTEXSET_H
|