Same as the TripleBuffer, but partial writes of the data structure are ok. The write operation may be a bit slower and memory consumption may be 1/3 higher.
More...
#include <ArmarXCore/util/CPPUtility/TripleBuffer.h>
template<typename T>
class armarx::WriteBufferedTripleBuffer< T >
Same as the TripleBuffer, but partial writes of the data structure are ok. The write operation may be a bit slower and memory consumption may be 1/3 higher.
- See also
- TripleBuffer
Definition at line 267 of file TripleBuffer.h.
◆ WriteBufferedTripleBuffer() [1/2]
◆ WriteBufferedTripleBuffer() [2/2]
◆ _getNonConstHiddenBuffer()
T& _getNonConstHiddenBuffer |
( |
| ) |
|
|
inline |
- Returns
- the current read buffer (sometimes required for more complex initialization)
Definition at line 307 of file TripleBuffer.h.
◆ _getNonConstHiddenWriteBuffer()
T& _getNonConstHiddenWriteBuffer |
( |
| ) |
|
|
inline |
- Returns
- the current read buffer (sometimes required for more complex initialization)
Definition at line 312 of file TripleBuffer.h.
◆ _getNonConstReadBuffer()
T& _getNonConstReadBuffer |
( |
| ) |
|
|
inline |
- Returns
- the current read buffer (sometimes required for more complex initialization)
Definition at line 302 of file TripleBuffer.h.
◆ commitWrite()
◆ getReadBuffer()
const T& getReadBuffer |
( |
| ) |
const |
|
inline |
◆ getUpToDateReadBuffer()
const T& getUpToDateReadBuffer |
( |
| ) |
const |
|
inline |
- Returns
- the most up to date read buffer
Definition at line 296 of file TripleBuffer.h.
◆ getWriteBuffer() [1/2]
◆ getWriteBuffer() [2/2]
const T& getWriteBuffer |
( |
| ) |
const |
|
inline |
◆ reinitAllBuffers()
void reinitAllBuffers |
( |
const T & |
init | ) |
|
|
inline |
◆ setDebugMode()
void setDebugMode |
( |
bool |
mode | ) |
|
|
inline |
◆ updateReadBuffer()
bool updateReadBuffer |
( |
| ) |
const |
|
inline |
Swaps in the hidden buffer if it contains new data.
- Returns
- True if new data is available
Definition at line 321 of file TripleBuffer.h.
The documentation for this class was generated from the following file: