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
◆ WriteBufferedTripleBuffer() [1/2]
◆ WriteBufferedTripleBuffer() [2/2]
◆ _getNonConstHiddenBuffer()
| T & _getNonConstHiddenBuffer |
( |
| ) |
|
|
inline |
- Returns
- the current read buffer (sometimes required for more complex initialization)
◆ _getNonConstHiddenWriteBuffer()
| T & _getNonConstHiddenWriteBuffer |
( |
| ) |
|
|
inline |
- Returns
- the current read buffer (sometimes required for more complex initialization)
◆ _getNonConstReadBuffer()
| T & _getNonConstReadBuffer |
( |
| ) |
|
|
inline |
- Returns
- the current read buffer (sometimes required for more complex initialization)
◆ commitWrite()
◆ getReadBuffer()
| const T & getReadBuffer |
( |
| ) |
const |
|
inline |
- Returns
- the current read buffer
◆ getUpToDateReadBuffer()
| const T & getUpToDateReadBuffer |
( |
| ) |
const |
|
inline |
- Returns
- the most up to date read buffer
◆ 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
The documentation for this class was generated from the following file: