A simple buffer that only stores data. More...
#include <pcl/io/buffers.h>
Public Member Functions | |
SingleBuffer (std::size_t size) | |
Construct a buffer of given size. More... |
|
~SingleBuffer () | |
T | operator[] (std::size_t idx) const override |
Access an element at a given index. More... |
|
void | push (std::vector< T > &data) override |
Insert a new chunk of data into the buffer. More... |
|
Public Member Functions inherited from pcl::io::Buffer< T > | |
virtual | ~Buffer () |
std::size_t | size () const |
Get the size of the buffer. More... |
|
Additional Inherited Members | |
Public Types inherited from pcl::io::Buffer< T > | |
using | value_type = T |
Protected Member Functions inherited from pcl::io::Buffer< T > | |
Buffer (std::size_t size) | |
Protected Attributes inherited from pcl::io::Buffer< T > | |
const std::size_t | size_ |
A simple buffer that only stores data.
The buffer is thread-safe.
pcl::io::SingleBuffer< T >::SingleBuffer | ( | std::size_t | size | ) |
Construct a buffer of given size.
Definition at line 86 of file buffers.hpp.
pcl::io::SingleBuffer< T >::~SingleBuffer |
Definition at line 93 of file buffers.hpp.
| overridevirtual |
Access an element at a given index.
Implements pcl::io::Buffer< T >.
Definition at line 98 of file buffers.hpp.
| overridevirtual |
Insert a new chunk of data into the buffer.
Note that the data parameter is not const
-qualified. This is done to allow deriving classes to implement no-copy data insertion, where the data is "stolen" from the input argument.
Implements pcl::io::Buffer< T >.
Definition at line 105 of file buffers.hpp.
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1io_1_1_single_buffer.html