6#ifndef OPENEV_READERS_ABSTRACT_READER_HPP
7#define OPENEV_READERS_ABSTRACT_READER_HPP
9#include "openev/containers/array.hpp"
11#include "openev/containers/vector.hpp"
46 template <std::
size_t N>
48 for(
Event &a : array) {
71 bool next_n(
Queue &queue,
const int n,
const bool keep_size =
false);
88 bool next_t(
Queue &queue,
const double t,
const bool keep_size =
false);
102 bool skip_t(
const double t);
126 virtual bool read_(
Event &e) = 0;
127 virtual void reset_() = 0;
This is an auxiliary class. This class cannot be instanced.
Definition abstract-reader.hpp:20
bool skip_t(const double t)
Skip events for the specified duration.
Definition abstract-reader.cpp:71
void reset()
Start reading from the first event in the dataset.
Definition abstract-reader.hpp:108
bool next(Array< N > &array)
Get next events from the dataset.
Definition abstract-reader.hpp:47
bool next_n(Vector &vector, const int n)
Get next n events from the dataset.
Definition abstract-reader.cpp:8
bool skip_n(int n)
Skip the next n events in the dataset.
Definition abstract-reader.cpp:65
bool next_t(Vector &vector, const double t)
Get the next events until the specified duration is reached.
Definition abstract-reader.cpp:32
std::size_t count()
Definition abstract-reader.hpp:115
bool next(Event &e)
Get next event from the dataset.
Definition abstract-reader.hpp:37
This class extends std::array to implement event arrays. For more information, please refer here.
Definition array.hpp:21
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:60
This class extends std::queue to implement event queues. For more information, please refer here.
Definition queue.hpp:35
This class extends std::vector to implement event vectors. For more information, please refer here.
Definition vector.hpp:36
Queue container for basic event structures.
Basic event-based vision structures based on OpenCV components.