Basic implementation of the QueuingStrategy interface.
More...
#include <InMemoryQueuingStrategy.h>
Basic implementation of the QueuingStrategy interface.
Serves as temporary non-persistent storage of SensorData. The data are held in the std::vector.
bool InMemoryQueuingStrategy::empty |
( |
| ) |
|
|
overridevirtual |
size_t InMemoryQueuingStrategy::peek |
( |
std::vector< SensorData > & |
data, |
|
|
size_t |
count |
|
) |
| |
|
overridevirtual |
Peek the given count of data off the vector starting from the oldest one. Calling this method is stable (returns the same results) until the pop() method is called.
- Parameters
-
data | Vector to be filled with data |
count | Required count of data |
- Returns
- Real count of data added to the "data" vector.
Implements BeeeOn::QueuingStrategy.
void InMemoryQueuingStrategy::pop |
( |
size_t |
count | ) |
|
|
overridevirtual |
Pop the required amount of data off the vector.
- Parameters
-
count | Number of data to be popped |
Implements BeeeOn::QueuingStrategy.
void InMemoryQueuingStrategy::push |
( |
const std::vector< SensorData > & |
data | ) |
|
|
overridevirtual |
size_t InMemoryQueuingStrategy::size |
( |
| ) |
|
- Returns
- actual size of the in-memory queue.
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/exporters/InMemoryQueuingStrategy.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/exporters/InMemoryQueuingStrategy.cpp