Point Cloud Library (PCL)
1.9.1
|
A simple buffer that only stores data. More...
#include <pcl/io/buffers.h>
Public Member Functions | |
SingleBuffer (size_t size) | |
Construct a buffer of given size. More... | |
virtual | ~SingleBuffer () |
virtual T | operator[] (size_t idx) const |
Access an element at a given index. More... | |
virtual void | push (std::vector< T > &data) |
Insert a new chunk of data into the buffer. More... | |
![]() | |
virtual | ~Buffer () |
size_t | size () const |
Get the size of the buffer. More... | |
Additional Inherited Members | |
![]() | |
typedef T | value_type |
![]() | |
Buffer (size_t size) | |
![]() | |
const size_t | size_ |
A simple buffer that only stores data.
The buffer is thread-safe.
pcl::io::SingleBuffer< T >::SingleBuffer | ( | size_t | size | ) |
Construct a buffer of given size.
Definition at line 79 of file buffers.hpp.
|
virtual |
Definition at line 86 of file buffers.hpp.
|
virtual |
Access an element at a given index.
Implements pcl::io::Buffer< T >.
Definition at line 91 of file buffers.hpp.
References pcl::io::Buffer< T >::size_.
|
virtual |
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 98 of file buffers.hpp.
References pcl::io::Buffer< T >::size_.