|
Apollo
6.0
Open source self driving car software
|
#include <intra_writer.h>


Public Types | |
| using | MessagePtr = std::shared_ptr< MessageT > |
| using | BlockerManagerPtr = std::shared_ptr< BlockerManager > |
Public Types inherited from apollo::cyber::Writer< MessageT > | |
| using | TransmitterPtr = std::shared_ptr< transport::Transmitter< MessageT > > |
| using | ChangeConnection = typename service_discovery::Manager::ChangeConnection |
Public Member Functions | |
| IntraWriter (const proto::RoleAttributes &attr) | |
| virtual | ~IntraWriter () |
| bool | Init () override |
| Init the Writer. More... | |
| void | Shutdown () override |
| Shutdown the Writer. More... | |
| bool | Write (const MessageT &msg) override |
| Write a MessageT instance. More... | |
| bool | Write (const MessagePtr &msg_ptr) override |
| Write a shared ptr of MessageT. More... | |
Public Member Functions inherited from apollo::cyber::Writer< MessageT > | |
| Writer (const proto::RoleAttributes &role_attr) | |
| Construct a new Writer object. More... | |
| virtual | ~Writer () |
| bool | Init () override |
| Init the Writer. More... | |
| void | Shutdown () override |
| Shutdown the Writer. More... | |
| bool | HasReader () override |
| Is there any Reader that subscribes our Channel? You can publish message when this return true. More... | |
| void | GetReaders (std::vector< proto::RoleAttributes > *readers) override |
| Get all Readers that subscriber our writing channel. More... | |
Public Member Functions inherited from apollo::cyber::WriterBase | |
| WriterBase (const proto::RoleAttributes &role_attr) | |
| Construct a new Writer Base object. More... | |
| virtual | ~WriterBase () |
| const std::string & | GetChannelName () const |
| Get Writer's Channel name. More... | |
| bool | IsInit () const |
| Is Writer initialized? More... | |
Additional Inherited Members | |
Protected Attributes inherited from apollo::cyber::WriterBase | |
| proto::RoleAttributes | role_attr_ |
| std::mutex | lock_ |
| bool | init_ |
| using apollo::cyber::blocker::IntraWriter< MessageT >::BlockerManagerPtr = std::shared_ptr<BlockerManager> |
| using apollo::cyber::blocker::IntraWriter< MessageT >::MessagePtr = std::shared_ptr<MessageT> |
|
explicit |
|
virtual |
|
overridevirtual |
Init the Writer.
Implements apollo::cyber::WriterBase.
|
overridevirtual |
Shutdown the Writer.
Implements apollo::cyber::WriterBase.
|
overridevirtual |
Write a MessageT instance.
| msg | the message we want to write |
Reimplemented from apollo::cyber::Writer< MessageT >.
|
overridevirtual |
Write a shared ptr of MessageT.
| msg_ptr | the message shared ptr we want to write |
Reimplemented from apollo::cyber::Writer< MessageT >.
1.8.13