Public Types | Public Member Functions | Private Attributes | List of all members
can::Listener< T, U > Class Template Reference

#include <interface.h>

Inheritance diagram for can::Listener< T, U >:
Inheritance graph
[legend]

Public Types

using Callable = T
 
using ListenerConstSharedPtr = std::shared_ptr< const Listener >
 
using Type = U
 

Public Member Functions

 Listener (const T &callable)
 
void operator() (const U &u) const
 
virtual ~Listener ()
 

Private Attributes

const T callable_
 

Detailed Description

template<typename T, typename U>
class can::Listener< T, U >

template for Listener interface

Definition at line 100 of file interface.h.

Member Typedef Documentation

◆ Callable

template<typename T , typename U >
using can::Listener< T, U >::Callable = T

Definition at line 104 of file interface.h.

◆ ListenerConstSharedPtr

template<typename T , typename U >
using can::Listener< T, U >::ListenerConstSharedPtr = std::shared_ptr<const Listener>

Definition at line 105 of file interface.h.

◆ Type

template<typename T , typename U >
using can::Listener< T, U >::Type = U

Definition at line 103 of file interface.h.

Constructor & Destructor Documentation

◆ Listener()

template<typename T , typename U >
can::Listener< T, U >::Listener ( const T &  callable)
inline

Definition at line 107 of file interface.h.

◆ ~Listener()

template<typename T , typename U >
virtual can::Listener< T, U >::~Listener ( )
inlinevirtual

Definition at line 109 of file interface.h.

Member Function Documentation

◆ operator()()

template<typename T , typename U >
void can::Listener< T, U >::operator() ( const U &  u) const
inline

Definition at line 108 of file interface.h.

Member Data Documentation

◆ callable_

template<typename T , typename U >
const T can::Listener< T, U >::callable_
private

Definition at line 101 of file interface.h.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Mon Feb 28 2022 23:28:00