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 
orgQhull::QhullPoint::id
countT id() const
Definition: QhullPoint.h:97
orgQhull::QhullPointSetIterator
QhullSetIterator< QhullPoint > QhullPointSetIterator
Definition: QhullPointSet.h:76
countT
int countT
Definition: user_r.h:182
orgQhull
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
Definition: Coordinates.cpp:21
QhullPointSet.h
orgQhull::QhullPoint
Definition: QhullPoint.h:39
orgQhull::QhullPointSet
Definition: QhullPointSet.h:37
operator<<
ostream & operator<<(ostream &os, const QhullPointSet::PrintIdentifiers &pr)
Definition: QhullPointSet.cpp:32
orgQhull::QhullSet::begin
iterator begin()
Definition: QhullSet.h:183
orgQhull::QhullSet::end
iterator end()
Definition: QhullSet.h:187


hpp-fcl
Author(s):
autogenerated on Fri Jan 26 2024 03:46:15