Point Cloud Library (PCL)  1.8.1-dev
PointIndices.h
1 #ifndef PCL_MESSAGE_POINTINDICES_H
2 #define PCL_MESSAGE_POINTINDICES_H
3 #include <string>
4 #include <vector>
5 #include <ostream>
6 
7 // Include the correct Header path here
8 #include <pcl/PCLHeader.h>
9 
10 namespace pcl
11 {
12  struct PointIndices
13  {
15  {}
16 
18 
19  std::vector<int> indices;
20 
21  public:
22  typedef boost::shared_ptr< ::pcl::PointIndices> Ptr;
23  typedef boost::shared_ptr< ::pcl::PointIndices const> ConstPtr;
24  }; // struct PointIndices
25 
26  typedef boost::shared_ptr< ::pcl::PointIndices> PointIndicesPtr;
27  typedef boost::shared_ptr< ::pcl::PointIndices const> PointIndicesConstPtr;
28 
29  inline std::ostream& operator << (std::ostream& s, const ::pcl::PointIndices &v)
30  {
31  s << "header: " << std::endl;
32  s << " " << v.header;
33  s << "indices[]" << std::endl;
34  for (size_t i = 0; i < v.indices.size (); ++i)
35  {
36  s << " indices[" << i << "]: ";
37  s << " " << v.indices[i] << std::endl;
38  }
39  return (s);
40  }
41 } // namespace pcl
42 
43 #endif // PCL_MESSAGE_POINTINDICES_H
44 
std::vector< int > indices
Definition: PointIndices.h:19
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
::pcl::PCLHeader header
Definition: PointIndices.h:17
boost::shared_ptr< ::pcl::PointIndices const > PointIndicesConstPtr
Definition: PointIndices.h:27
boost::shared_ptr< ::pcl::PointIndices > Ptr
Definition: PointIndices.h:22
boost::shared_ptr< ::pcl::PointIndices > PointIndicesPtr
Definition: PointIndices.h:26
boost::shared_ptr< ::pcl::PointIndices const > ConstPtr
Definition: PointIndices.h:23