Class EventPacket

Nested Relationships

Nested Types

Inheritance Relationships

Derived Types

Class Documentation

class EventPacket

Subclassed by libcaer::events::EventPacketCommon< FrameEventPacket, FrameEvent >, libcaer::events::EventPacketCommon< IMU6EventPacket, IMU6Event >, libcaer::events::EventPacketCommon< IMU9EventPacket, IMU9Event >, libcaer::events::EventPacketCommon< PolarityEventPacket, PolarityEvent >, libcaer::events::EventPacketCommon< SpecialEventPacket, SpecialEvent >, libcaer::events::EventPacketCommon< SpikeEventPacket, SpikeEvent >, libcaer::events::EventPacketCommon< PKT, EVT >

Public Types

enum class copyTypes

Values:

enumerator FULL
enumerator EVENTS_ONLY
enumerator VALID_EVENTS_ONLY
using value_type = GenericEvent
using const_value_type = const GenericEvent
using pointer = GenericEvent*
using const_pointer = const GenericEvent*
using reference = GenericEvent&
using const_reference = const GenericEvent&
using size_type = int32_t
using difference_type = ptrdiff_t

Public Functions

inline EventPacket(caerEventPacketHeader packetHeader, bool takeMemoryOwnership = true)
inline virtual ~EventPacket()
inline EventPacket(const EventPacket &rhs)
inline EventPacket &operator=(const EventPacket &rhs)
inline EventPacket(EventPacket &&rhs) noexcept
inline EventPacket &operator=(EventPacket &&rhs)
inline bool operator==(const EventPacket &rhs) const noexcept
inline bool operator!=(const EventPacket &rhs) const noexcept
inline int16_t getEventType() const noexcept
inline void setEventType(int16_t eventType)
inline int16_t getEventSource() const noexcept
inline void setEventSource(int16_t eventSource)
inline int32_t getEventSize() const noexcept
inline void setEventSize(int32_t eventSize)
inline int32_t getEventTSOffset() const noexcept
inline void setEventTSOffset(int32_t eventTSOffset)
inline int32_t getEventTSOverflow() const noexcept
inline void setEventTSOverflow(int32_t eventTSOverflow)
inline int32_t getEventCapacity() const noexcept
inline void setEventCapacity(int32_t eventCapacity)
inline int32_t getEventNumber() const noexcept
inline void setEventNumber(int32_t eventNumber)
inline int32_t getEventValid() const noexcept
inline void setEventValid(int32_t eventValid)
inline const_value_type genericGetEvent(size_type index) const
inline int64_t getDataSize() const noexcept
inline int64_t getSize() const noexcept
inline int64_t getDataSizeEvents() const noexcept
inline int64_t getSizeEvents() const noexcept
inline void clear() noexcept
inline void clean() noexcept
inline void resize(size_type newEventCapacity)
inline void shrink_to_fit()
inline void grow(size_type newEventCapacity)
inline void append(const EventPacket &appendPacket)
inline std::unique_ptr<EventPacket> copy(copyTypes ct) const
inline void swap(EventPacket &rhs)
inline caerEventPacketHeader getHeaderPointer() noexcept
inline caerEventPacketHeaderConst getHeaderPointer() const noexcept
inline bool isPacketMemoryOwner() const noexcept
inline caerEventPacketHeader getHeaderPointerForCOutput() noexcept
inline size_type capacity() const noexcept
inline size_type size() const noexcept
inline bool empty() const noexcept

Protected Functions

inline EventPacket()
inline virtual std::unique_ptr<EventPacket> virtualCopy(copyTypes ct) const
inline size_type getEventIndex(size_type index, bool limitIsCapacity) const

Protected Attributes

caerEventPacketHeader header
bool isMemoryOwner

Protected Static Functions

static inline caerEventPacketHeader internalCopy(caerEventPacketHeaderConst header, copyTypes ct)
static inline void constructorCheckCapacitySourceTSOverflow(size_type eventCapacity, int16_t eventSource, int32_t tsOverflow)
static inline void constructorCheckNullptr(const void *packet)
static inline void constructorCheckEventType(caerEventPacketHeaderConst packet, int16_t type)
struct GenericEvent

Public Functions

inline int32_t getTimestamp() const noexcept
inline int64_t getTimestamp64() const noexcept
inline bool isValid() const noexcept
inline void copy(void *eventPtrDestination, caerEventPacketHeaderConst headerPtrDestination) const
inline void copy(struct GenericEvent &destinationEvent) const
inline void copy(struct GenericEvent *destinationEvent) const

Public Members

const void *event
caerEventPacketHeaderConst header