8 #ifndef __LIBGPIOD_CXX_EDGE_EVENT_BUFFER_HPP__
9 #define __LIBGPIOD_CXX_EDGE_EVENT_BUFFER_HPP__
11 #if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12 #error "Only gpiod.hpp can be included directly."
85 ::std::
size_t capacity() const noexcept;
105 ::std::unique_ptr<impl> _m_priv;
Definition: chip-info.hpp:18
edge_event_buffer(::std::size_t capacity=64)
Constructor. Creates a new edge event buffer with given capacity.
const_iterator begin() const noexcept
Get a constant iterator to the first edge event currently stored in the buffer.
::std::vector< edge_event >::const_iterator const_iterator
Constant iterator for iterating over edge events stored in the buffer.
Definition: edge-event-buffer.hpp:40
Immutable object containing data about a single edge event.
Definition: edge-event.hpp:28
Stores the context of a set of requested GPIO lines.
Definition: line-request.hpp:32
::std::size_t num_events() const
Get the number of edge events currently stored in the buffer.
::std::size_t capacity() const noexcept
Maximum capacity of the buffer.
Object into which edge events are read for better performance.
Definition: edge-event-buffer.hpp:32
const edge_event & get_event(unsigned int index) const
Get the constant reference to the edge event at given index.
const_iterator end() const noexcept
Get a constant iterator to the element after the last edge event in the buffer.