QhullPointSet.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (c) 2009-2015 C.B. Barber. All rights reserved.
4 ** $Id: //main/2015/qhull/src/libqhullcpp/QhullPointSet.cpp#2 $$Change: 2066 $
5 ** $DateTime: 2016/01/18 19:29:17 $$Author: bbarber $
6 **
7 ****************************************************************************/
8 
10 
11 #include <iostream>
12 #include <algorithm>
13 
14 #ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4
15 #endif
16 
17 namespace orgQhull {
18 
19 // Implemented via QhullSet.h
20 
21 }//namespace orgQhull
22 
23 #
24 
25 using std::endl;
26 using std::ostream;
30 
31 ostream &
32 operator<<(ostream &os, const QhullPointSet::PrintIdentifiers &pr)
33 {
34  os << pr.print_message;
35  const QhullPointSet s= *pr.point_set;
37  while(i.hasNext()){
38  if(i.hasPrevious()){
39  os << " ";
40  }
41  const QhullPoint point= i.next();
42  countT id= point.id();
43  os << "p" << id;
44 
45  }
46  os << endl;
47  return os;
48 }//PrintIdentifiers
49 
50 ostream &
51 operator<<(ostream &os, const QhullPointSet::PrintPointSet &pr)
52 {
53  os << pr.print_message;
54  const QhullPointSet s= *pr.point_set;
55  for(QhullPointSet::const_iterator i=s.begin(); i != s.end(); ++i){
56  const QhullPoint point= *i;
57  os << point;
58  }
59  return os;
60 }//printPointSet
61 
62 
QhullSetIterator< QhullPoint > QhullPointSetIterator
Definition: QhullPointSet.h:70
iterator begin()
Definition: QhullSet.h:177
QhullRidge – Qhull&#39;s ridge structure, ridgeT, as a C++ class.
Definition: Coordinates.cpp:21
countT id() const
Definition: QhullPoint.h:91
iterator end()
Definition: QhullSet.h:181
ostream & operator<<(ostream &os, const QhullPointSet::PrintIdentifiers &pr)
int countT
Definition: user_r.h:182


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