event-driven
Public Member Functions | List of all members
ev::queueAllocator Class Reference

an asynchronous reading port that accepts vBottles and decodes them More...

#include <vSurfaceHandlerTh.h>

Inheritance diagram for ev::queueAllocator:

Public Member Functions

 queueAllocator ()
 constructor
 
 ~queueAllocator ()
 desctructor
 
void onRead (ev::vBottle &inputbottle)
 the callback decodes the incoming vBottle and adds it to the list of received vBottles. The yarp, and event timestamps are updated.
 
ev::vQueue * read (yarp::os::Stamp &yarpstamp)
 ask for a pointer to the next vQueue. Blocks if no data is ready.
 
void scrapQ ()
 remove the most recently read vQueue from the list and deallocate the memory
 
void setQLimit (unsigned int number_of_qs)
 set the maximum number of qs that can be stored in the buffer. A value of 0 keeps all qs.
 
void releaseDataLock ()
 unBlocks the blocking call in getNextQ. Useful to ensure a graceful shutdown. No guarantee the return of getNextQ will be valid.
 
int queryunprocessed ()
 ask for the number of vQueues currently allocated.
 
unsigned int queryDelayN ()
 ask for the number of events in all vQueues.
 
double queryDelayT ()
 ask for the total time spanned by all vQueues.
 
double queryRate ()
 ask for the high precision event rate
 
std::string delayStatString ()
 

Detailed Description

an asynchronous reading port that accepts vBottles and decodes them


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