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 64 of file Updater.h.

Constructor & Destructor Documentation

◆ Updater()

Updater ( )
default

Member Function Documentation

◆ addPendingUpdate()

void addPendingUpdate ( const Update &  u)

Definition at line 35 of file Updater.cpp.

+ Here is the caller graph for this function:

◆ applyPendingUpdate()

void applyPendingUpdate ( Update &  u,
LockType &&  lock,
RemoteUpdateGetter  getRemoteUpdate,
UpdateConsumer  updateConsumer 
)
inline

Definition at line 135 of file Updater.h.

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

◆ applyPendingUpdates() [1/2]

void applyPendingUpdates ( LockType &&  lock,
RemoteUpdateGetter  getRemoteUpdate 
)
inline

Definition at line 109 of file Updater.h.

+ Here is the caller graph for this function:

◆ applyPendingUpdates() [2/2]

void applyPendingUpdates ( LockType &&  lock,
RemoteUpdateGetter  getRemoteUpdate,
UpdateConsumer  updateConsumer 
)
inline

Definition at line 115 of file Updater.h.

+ Here is the call graph for this function:

◆ applyUpdate()

void applyUpdate ( const Update &  u)

Definition at line 47 of file Updater.cpp.

+ Here is the caller graph for this function:

◆ canApplyUpdate()

bool canApplyUpdate ( const Update &  u)

Definition at line 61 of file Updater.cpp.

+ Here is the caller graph for this function:

◆ clearPendingUpdates()

void clearPendingUpdates ( )

Definition at line 41 of file Updater.cpp.

+ Here is the caller graph for this function:

◆ getAppliedUpdateIds()

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

Definition at line 237 of file Updater.h.

+ Here is the caller graph for this function:

◆ getPendingUpdate() [1/2]

Update& getPendingUpdate ( const UpdateId id)
inline

Definition at line 95 of file Updater.h.

+ Here is the caller graph for this function:

◆ getPendingUpdate() [2/2]

Update& getPendingUpdate ( std::size_t  id)
inline

Definition at line 100 of file Updater.h.

◆ hasAppliedUpdate() [1/2]

bool hasAppliedUpdate ( const UpdateId id) const
inline

Definition at line 230 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 224 of file Updater.h.

+ Here is the caller graph for this function:

◆ hasPendingUpdate()

bool hasPendingUpdate ( const UpdateId id) const
inline

Definition at line 90 of file Updater.h.

+ Here is the caller graph for this function:

◆ prepareUpdate()

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

Definition at line 172 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 80 of file Updater.h.

+ Here is the caller graph for this function:

◆ setWorkerCount()

void setWorkerCount ( std::size_t  count)
inline

Definition at line 70 of file Updater.h.

+ Here is the caller graph for this function:

◆ setWorkerId()

void setWorkerId ( Ice::Long  newId)

Definition at line 28 of file Updater.cpp.

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

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