MemoryPolling Class Reference

Polling delivery: queries the requester's slice of GazeTargetStatus periodically. More...

#include <armarx/view_selection/client/services/MemoryPolling.h>

+ Inheritance diagram for MemoryPolling:

Public Member Functions

 MemoryPolling (const MemoryPolling &)=delete
 
 MemoryPolling (const std::string &providerSegmentName, armem::client::MemoryNameSystem &mns)
 
 MemoryPolling (MemoryPolling &&)=delete
 
MemoryPollingoperator= (const MemoryPolling &)=delete
 
MemoryPollingoperator= (MemoryPolling &&)=delete
 
 ~MemoryPolling () override
 
- Public Member Functions inherited from SimpleStatusHandler
void handleStatus (const gaze_targets::GazeTargetStatus &status)
 Logs the update and hands it to the matching callbacks.
 
void onAborted (const Callback &callback) override
 
void onAny (const Callback &callback) override
 Called for every update, whatever its status.
 
void onPreempted (const Callback &callback) override
 
void onReached (const Callback &callback) override
 
void onReleased (const Callback &callback) override
 
void onRequested (const Callback &callback) override
 
void onScheduled (const Callback &callback) override
 
- Public Member Functions inherited from StatusHandlerInterface
virtual ~StatusHandlerInterface ()=default
 

Additional Inherited Members

- Public Types inherited from StatusHandlerInterface
using Callback = std::function<void(const gaze_targets::GazeTargetStatus&)>
 
- Protected Member Functions inherited from MemoryStatusHandlerBase
void handleMemory (const armem::wm::Memory &memory)
 Dispatches every GazeTargetStatus instance found, oldest first.
 

Detailed Description

Polling delivery: queries the requester's slice of GazeTargetStatus periodically.

Same dispatch as MemorySubscriber, but usable from contexts that are not a ListeningPluginUser (statecharts, for instance) at the cost of up to one poll period of latency.

Definition at line 27 of file MemoryPolling.h.

Constructor & Destructor Documentation

◆ MemoryPolling() [1/3]

MemoryPolling ( const std::string & providerSegmentName,
armem::client::MemoryNameSystem & mns )
Parameters
providerSegmentNameThe provider segment the client commits its gaze targets to.

Definition at line 24 of file MemoryPolling.cpp.

+ Here is the caller graph for this function:

◆ MemoryPolling() [2/3]

MemoryPolling ( const MemoryPolling & )
delete
+ Here is the call graph for this function:

◆ MemoryPolling() [3/3]

+ Here is the call graph for this function:

◆ ~MemoryPolling()

~MemoryPolling ( )
override

Definition at line 40 of file MemoryPolling.cpp.

Member Function Documentation

◆ operator=() [1/2]

MemoryPolling & operator= ( const MemoryPolling & )
delete
+ Here is the call graph for this function:

◆ operator=() [2/2]

MemoryPolling & operator= ( MemoryPolling && )
delete
+ Here is the call graph for this function:

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