Template Class EventPacketCommon

Inheritance Relationships

Base Type

Class Documentation

template<class PKT, class EVT>
class EventPacketCommon : public libcaer::events::EventPacket

Public Types

using value_type = EVT
using const_value_type = const EVT
using pointer = EVT*
using const_pointer = const EVT*
using reference = EVT&
using const_reference = const EVT&
using size_type = int32_t
using difference_type = ptrdiff_t
using iterator = EventPacketIterator<value_type>
using const_iterator = EventPacketIterator<const_value_type>
using reverse_iterator = std::reverse_iterator<iterator>
using const_reverse_iterator = std::reverse_iterator<const_iterator>

Public Functions

inline reference getEvent(size_type index)
inline const_reference getEvent(size_type index) const
inline reference operator[](size_type index)
inline const_reference operator[](size_type index) const
inline reference front()
inline const_reference front() const
inline reference back()
inline const_reference back() const
inline std::unique_ptr<PKT> copy(copyTypes ct) const
inline iterator begin() noexcept
inline iterator end() noexcept
inline const_iterator begin() const noexcept
inline const_iterator end() const noexcept
inline const_iterator cbegin() const noexcept
inline const_iterator cend() const noexcept
inline reverse_iterator rbegin() noexcept
inline reverse_iterator rend() noexcept
inline const_reverse_iterator rbegin() const noexcept
inline const_reverse_iterator rend() const noexcept
inline const_reverse_iterator crbegin() const noexcept
inline const_reverse_iterator crend() const noexcept

Protected Functions

inline virtual std::unique_ptr<EventPacket> virtualCopy(copyTypes ct) const override
virtual reference virtualGetEvent(size_type index) noexcept = 0
virtual const_reference virtualGetEvent(size_type index) const noexcept = 0