Yield a point cloud from measurements so it is written when buffer size has been reached or, alternatively, when yielder is directly forced to yield.
More...
#include <PointcloudYielder.h>
|
FMSWriteFacade & | write |
| The facade for writing operations. More...
|
|
std::mutex | mtx |
| The mutex to handle concurrent push backs to the buffer vector and the yielding operation itself.
|
|
std::size_t | bufferSize |
| The number of elements that can be buffered before forcing the yield operation.
|
|
std::vector< T > | buffer |
| Where the elements are stored.
|
|
Yield a point cloud from measurements so it is written when buffer size has been reached or, alternatively, when yielder is directly forced to yield.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
◆ PointcloudYielder()
PointcloudYielder::PointcloudYielder |
( |
FMSWriteFacade & |
write, |
|
|
size_t |
bufferSize = 256 |
|
) |
| |
|
inline |
◆ digest()
void PointcloudYielder::digest |
( |
vector< Measurement > & |
copy | ) |
|
|
inlineoverride |
Write the temporal copy of the measurements through the write facade of the filems.
- Parameters
-
copy | The temporal copy of measurements buffer to be digested |
- See also
- WriteYielder
The documentation for this class was generated from the following file: