44 #include <pcl/point_cloud.h>
52 template <
typename Po
intT>
65 operator[] (std::size_t idx)
const = 0;
75 at (std::size_t idx)
const
80 throw pcl::IOException (
"[pcl::FileGrabber] Attempted to access element which is out of bounds!");
82 return (
operator[] (idx));
FileGrabber provides a container-style interface for grabbers which operate on fixed-size input.
virtual const pcl::PointCloud< PointT >::ConstPtr at(std::size_t idx) const
at Returns the idx-th cloud in the dataset, with bounds checking
virtual std::size_t size() const =0
size Returns the number of clouds currently loaded by the grabber
virtual ~FileGrabber()=default
Empty destructor.
An exception that is thrown during an IO error (typical read/write errors)
shared_ptr< const PointCloud< PointT > > ConstPtr