libevdevxx 0.5.0
A C++ wrapper for libevdev.
Loading...
Searching...
No Matches
basic_wrapper< T, InvalidValue > Class Template Referenceabstract

#include <basic_wrapper.hpp>

Public Types

using raw_type = T
 
using state_type = raw_type
 

Public Member Functions

constexpr basic_wrapper () noexcept=default
 
constexpr basic_wrapper (T src) noexcept
 
constexpr basic_wrapper (basic_wrapper &&other) noexcept
 Move constructor.
 
basic_wrapperoperator= (basic_wrapper &&other) noexcept
 Move assignment.
 
virtual void destroy () noexcept=0
 
bool is_valid () const noexcept
 
 operator bool () const noexcept
 
raw_type data () noexcept
 
const raw_type data () const noexcept
 
void acquire (state_type new_state) noexcept
 
state_type release () noexcept
 

Static Public Attributes

static constexpr raw_type invalid_value = InvalidValue
 

Protected Member Functions

 ~basic_wrapper () noexcept=default
 

Protected Attributes

raw {InvalidValue}
 

Member Typedef Documentation

◆ raw_type

template<typename T, T InvalidValue = T{}>
using raw_type = T

◆ state_type

template<typename T, T InvalidValue = T{}>
using state_type = raw_type

Constructor & Destructor Documentation

◆ ~basic_wrapper()

template<typename T, T InvalidValue = T{}>
~basic_wrapper ( )
protecteddefaultnoexcept

◆ basic_wrapper() [1/3]

template<typename T, T InvalidValue = T{}>
basic_wrapper ( )
constexprdefaultnoexcept

◆ basic_wrapper() [2/3]

template<typename T, T InvalidValue = T{}>
basic_wrapper ( T src)
inlineexplicitconstexprnoexcept

◆ basic_wrapper() [3/3]

template<typename T, T InvalidValue = T{}>
basic_wrapper ( basic_wrapper< T, InvalidValue > && other)
inlineconstexprnoexcept

Move constructor.

Member Function Documentation

◆ acquire()

template<typename T, T InvalidValue = T{}>
void acquire ( state_type new_state)
inlinenoexcept

◆ data() [1/2]

template<typename T, T InvalidValue = T{}>
const raw_type data ( ) const
inlinenoexcept

◆ data() [2/2]

template<typename T, T InvalidValue = T{}>
raw_type data ( )
inlinenoexcept

◆ destroy()

template<typename T, T InvalidValue = T{}>
virtual void destroy ( )
pure virtualnoexcept

Implemented in Device, and Uinput.

◆ is_valid()

template<typename T, T InvalidValue = T{}>
bool is_valid ( ) const
inlinenodiscardnoexcept

◆ operator bool()

template<typename T, T InvalidValue = T{}>
operator bool ( ) const
inlineexplicitnodiscardnoexcept

◆ operator=()

template<typename T, T InvalidValue = T{}>
basic_wrapper & operator= ( basic_wrapper< T, InvalidValue > && other)
inlinenoexcept

Move assignment.

◆ release()

template<typename T, T InvalidValue = T{}>
state_type release ( )
inlinenoexcept

Member Data Documentation

◆ invalid_value

template<typename T, T InvalidValue = T{}>
raw_type invalid_value = InvalidValue
staticconstexpr

◆ raw

template<typename T, T InvalidValue = T{}>
T raw {InvalidValue}
protected

The documentation for this class was generated from the following file: