TripleBufferWithGuardAndTime< T > Struct Template Reference

#include <ArmarXSimulation/components/RobotUnitSimulation/RobotUnitSimulation.h>

Public Member Functions

std::size_t getLastWriteT () const
 
const TgetReadBuffer () const
 
TgetWriteBuffer ()
 
std::unique_lock< std::recursive_mutex > guard ()
 
bool isLastWrite1SecondAgo () const
 
void read ()
 
void reinit (const T &i)
 
 TripleBufferWithGuardAndTime (std::condition_variable *cv)
 
void write ()
 

Detailed Description

template<class T>
struct armarx::TripleBufferWithGuardAndTime< T >

Definition at line 56 of file RobotUnitSimulation.h.

Constructor & Destructor Documentation

◆ TripleBufferWithGuardAndTime()

TripleBufferWithGuardAndTime ( std::condition_variable *  cv)
inline

Definition at line 58 of file RobotUnitSimulation.h.

Member Function Documentation

◆ getLastWriteT()

std::size_t getLastWriteT ( ) const
inline

Definition at line 65 of file RobotUnitSimulation.h.

◆ getReadBuffer()

const T& getReadBuffer ( ) const
inline

Definition at line 83 of file RobotUnitSimulation.h.

+ Here is the caller graph for this function:

◆ getWriteBuffer()

T& getWriteBuffer ( )
inline

Definition at line 79 of file RobotUnitSimulation.h.

+ Here is the caller graph for this function:

◆ guard()

std::unique_lock<std::recursive_mutex> guard ( )
inline

Definition at line 60 of file RobotUnitSimulation.h.

+ Here is the caller graph for this function:

◆ isLastWrite1SecondAgo()

bool isLastWrite1SecondAgo ( ) const
inline

Definition at line 69 of file RobotUnitSimulation.h.

◆ read()

void read ( )
inline

Definition at line 94 of file RobotUnitSimulation.h.

◆ reinit()

void reinit ( const T i)
inline

Definition at line 74 of file RobotUnitSimulation.h.

+ Here is the caller graph for this function:

◆ write()

void write ( )
inline

Definition at line 87 of file RobotUnitSimulation.h.

+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: