Updater Class Reference

#include <RobotComponents/components/MotionPlanning/Tasks/RRTConnect/Updater.h>

Public Member Functions

void addPendingUpdate (const Update &u)
 
template<class LockType, class RemoteUpdateGetter, class UpdateConsumer>
void applyPendingUpdate (Update &u, LockType &&lock, RemoteUpdateGetter getRemoteUpdate, UpdateConsumer updateConsumer)
 
template<class LockType, class RemoteUpdateGetter>
void applyPendingUpdates (LockType &&lock, RemoteUpdateGetter getRemoteUpdate)
 
template<class LockType, class RemoteUpdateGetter, class UpdateConsumer>
void applyPendingUpdates (LockType &&lock, RemoteUpdateGetter getRemoteUpdate, UpdateConsumer updateConsumer)
 
void applyUpdate (const Update &u)
 
bool canApplyUpdate (const Update &u)
 
void clearPendingUpdates ()
 
const std::vector< Ice::Long > & getAppliedUpdateIds () const
 
Update & getPendingUpdate (const UpdateId &id)
 
Update & getPendingUpdate (std::size_t id)
 
bool hasAppliedUpdate (const UpdateId &id) const
 
bool hasAppliedUpdate (Ice::Long workerId, Ice::Long updateSubId) const
 
bool hasPendingUpdate (const UpdateId &id) const
 
template<class LockType, class RemoteUpdateGetter, class UpdateConsumer>
void prepareUpdate (Ice::LongSeq dependetOnUpdateIds, LockType &&lock, RemoteUpdateGetter getRemoteUpdate, UpdateConsumer updateConsumer)
 
void setTrees (const std::vector< std::reference_wrapper< Tree > > &newTrees)
 
void setWorkerCount (std::size_t count)
 
void setWorkerId (Ice::Long newId)
 
 Updater ()=default
 

Detailed Description

Definition at line 66 of file Updater.h.

Constructor & Destructor Documentation

◆ Updater()

Updater ( )
default

Member Function Documentation

◆ addPendingUpdate()

void addPendingUpdate ( const Update & u)

Definition at line 37 of file Updater.cpp.

◆ applyPendingUpdate()

template<class LockType, class RemoteUpdateGetter, class UpdateConsumer>
void applyPendingUpdate ( Update & u,
LockType && lock,
RemoteUpdateGetter getRemoteUpdate,
UpdateConsumer updateConsumer )
inline

Definition at line 146 of file Updater.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyPendingUpdates() [1/2]

template<class LockType, class RemoteUpdateGetter>
void applyPendingUpdates ( LockType && lock,
RemoteUpdateGetter getRemoteUpdate )
inline

Definition at line 116 of file Updater.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyPendingUpdates() [2/2]

template<class LockType, class RemoteUpdateGetter, class UpdateConsumer>
void applyPendingUpdates ( LockType && lock,
RemoteUpdateGetter getRemoteUpdate,
UpdateConsumer updateConsumer )
inline

Definition at line 123 of file Updater.h.

+ Here is the call graph for this function:

◆ applyUpdate()

void applyUpdate ( const Update & u)

Definition at line 51 of file Updater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ canApplyUpdate()

bool canApplyUpdate ( const Update & u)

Definition at line 66 of file Updater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearPendingUpdates()

void clearPendingUpdates ( )

Definition at line 44 of file Updater.cpp.

+ Here is the caller graph for this function:

◆ getAppliedUpdateIds()

const std::vector< Ice::Long > & getAppliedUpdateIds ( ) const
inline

Definition at line 257 of file Updater.h.

◆ getPendingUpdate() [1/2]

Update & getPendingUpdate ( const UpdateId & id)
inline

Definition at line 100 of file Updater.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPendingUpdate() [2/2]

Update & getPendingUpdate ( std::size_t id)
inline

Definition at line 106 of file Updater.h.

◆ hasAppliedUpdate() [1/2]

bool hasAppliedUpdate ( const UpdateId & id) const
inline

Definition at line 249 of file Updater.h.

+ Here is the call graph for this function:

◆ hasAppliedUpdate() [2/2]

bool hasAppliedUpdate ( Ice::Long workerId,
Ice::Long updateSubId ) const
inline

Definition at line 240 of file Updater.h.

+ Here is the caller graph for this function:

◆ hasPendingUpdate()

bool hasPendingUpdate ( const UpdateId & id) const
inline

Definition at line 94 of file Updater.h.

+ Here is the caller graph for this function:

◆ prepareUpdate()

template<class LockType, class RemoteUpdateGetter, class UpdateConsumer>
void prepareUpdate ( Ice::LongSeq dependetOnUpdateIds,
LockType && lock,
RemoteUpdateGetter getRemoteUpdate,
UpdateConsumer updateConsumer )
inline

Definition at line 188 of file Updater.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTrees()

void setTrees ( const std::vector< std::reference_wrapper< Tree > > & newTrees)
inline

Definition at line 83 of file Updater.h.

◆ setWorkerCount()

void setWorkerCount ( std::size_t count)
inline

Definition at line 72 of file Updater.h.

+ Here is the caller graph for this function:

◆ setWorkerId()

void setWorkerId ( Ice::Long newId)

Definition at line 29 of file Updater.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: