Apollo  6.0
Open source self driving car software
Public Types | Public Member Functions | List of all members
apollo::cyber::transport::ShmTransmitter< M > Class Template Reference

#include <shm_transmitter.h>

Inheritance diagram for apollo::cyber::transport::ShmTransmitter< M >:
Inheritance graph
Collaboration diagram for apollo::cyber::transport::ShmTransmitter< M >:
Collaboration graph

Public Types

using MessagePtr = std::shared_ptr< M >
 
- Public Types inherited from apollo::cyber::transport::Transmitter< M >
using MessagePtr = std::shared_ptr< M >
 

Public Member Functions

 ShmTransmitter (const RoleAttributes &attr)
 
virtual ~ShmTransmitter ()
 
void Enable () override
 
void Disable () override
 
bool Transmit (const MessagePtr &msg, const MessageInfo &msg_info) override
 
- Public Member Functions inherited from apollo::cyber::transport::Transmitter< M >
 Transmitter (const RoleAttributes &attr)
 
virtual ~Transmitter ()
 
virtual void Enable (const RoleAttributes &opposite_attr)
 
virtual void Disable (const RoleAttributes &opposite_attr)
 
virtual bool Transmit (const MessagePtr &msg)
 
uint64_t NextSeqNum ()
 
uint64_t seq_num () const
 
- Public Member Functions inherited from apollo::cyber::transport::Endpoint
 Endpoint (const RoleAttributes &attr)
 
virtual ~Endpoint ()
 
const Identityid () const
 
const RoleAttributes & attributes () const
 

Additional Inherited Members

- Protected Attributes inherited from apollo::cyber::transport::Transmitter< M >
uint64_t seq_num_
 
MessageInfo msg_info_
 
- Protected Attributes inherited from apollo::cyber::transport::Endpoint
bool enabled_
 
Identity id_
 
RoleAttributes attr_
 

Member Typedef Documentation

◆ MessagePtr

template<typename M >
using apollo::cyber::transport::ShmTransmitter< M >::MessagePtr = std::shared_ptr<M>

Constructor & Destructor Documentation

◆ ShmTransmitter()

template<typename M >
apollo::cyber::transport::ShmTransmitter< M >::ShmTransmitter ( const RoleAttributes &  attr)
explicit

◆ ~ShmTransmitter()

template<typename M >
apollo::cyber::transport::ShmTransmitter< M >::~ShmTransmitter ( )
virtual

Member Function Documentation

◆ Disable()

template<typename M >
void apollo::cyber::transport::ShmTransmitter< M >::Disable ( )
overridevirtual

◆ Enable()

template<typename M >
void apollo::cyber::transport::ShmTransmitter< M >::Enable ( )
overridevirtual

◆ Transmit()

template<typename M >
bool apollo::cyber::transport::ShmTransmitter< M >::Transmit ( const MessagePtr msg,
const MessageInfo msg_info 
)
overridevirtual

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