Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::cyber::transport::IntraDispatcher Class Reference

#include <intra_dispatcher.h>

Inheritance diagram for apollo::cyber::transport::IntraDispatcher:
Inheritance graph
Collaboration diagram for apollo::cyber::transport::IntraDispatcher:
Collaboration graph

Public Member Functions

virtual ~IntraDispatcher ()
 
template<typename MessageT >
void OnMessage (uint64_t channel_id, const std::shared_ptr< MessageT > &message, const MessageInfo &message_info)
 
template<typename MessageT >
void AddListener (const RoleAttributes &self_attr, const MessageListener< MessageT > &listener)
 
template<typename MessageT >
void AddListener (const RoleAttributes &self_attr, const RoleAttributes &opposite_attr, const MessageListener< MessageT > &listener)
 
template<typename MessageT >
void RemoveListener (const RoleAttributes &self_attr)
 
template<typename MessageT >
void RemoveListener (const RoleAttributes &self_attr, const RoleAttributes &opposite_attr)
 
- Public Member Functions inherited from apollo::cyber::transport::Dispatcher
 Dispatcher ()
 
virtual ~Dispatcher ()
 
virtual void Shutdown ()
 
template<typename MessageT >
void AddListener (const RoleAttributes &self_attr, const MessageListener< MessageT > &listener)
 
template<typename MessageT >
void AddListener (const RoleAttributes &self_attr, const RoleAttributes &opposite_attr, const MessageListener< MessageT > &listener)
 
template<typename MessageT >
void RemoveListener (const RoleAttributes &self_attr)
 
template<typename MessageT >
void RemoveListener (const RoleAttributes &self_attr, const RoleAttributes &opposite_attr)
 
bool HasChannel (uint64_t channel_id)
 

Additional Inherited Members

- Protected Attributes inherited from apollo::cyber::transport::Dispatcher
std::atomic< bool > is_shutdown_
 
AtomicHashMap< uint64_t, ListenerHandlerBasePtrmsg_listeners_
 
base::AtomicRWLock rw_lock_
 

Constructor & Destructor Documentation

◆ ~IntraDispatcher()

virtual apollo::cyber::transport::IntraDispatcher::~IntraDispatcher ( )
virtual

Member Function Documentation

◆ AddListener() [1/2]

template<typename MessageT >
void apollo::cyber::transport::IntraDispatcher::AddListener ( const RoleAttributes &  self_attr,
const MessageListener< MessageT > &  listener 
)

◆ AddListener() [2/2]

template<typename MessageT >
void apollo::cyber::transport::IntraDispatcher::AddListener ( const RoleAttributes &  self_attr,
const RoleAttributes &  opposite_attr,
const MessageListener< MessageT > &  listener 
)

◆ OnMessage()

template<typename MessageT >
void apollo::cyber::transport::IntraDispatcher::OnMessage ( uint64_t  channel_id,
const std::shared_ptr< MessageT > &  message,
const MessageInfo message_info 
)

◆ RemoveListener() [1/2]

template<typename MessageT >
void apollo::cyber::transport::IntraDispatcher::RemoveListener ( const RoleAttributes &  self_attr)

◆ RemoveListener() [2/2]

template<typename MessageT >
void apollo::cyber::transport::IntraDispatcher::RemoveListener ( const RoleAttributes &  self_attr,
const RoleAttributes &  opposite_attr 
)

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