Public Types | Public Member Functions | Private Attributes | List of all members
cartographer::io::ForwardingProtoStreamWriter Class Reference

#include <in_memory_proto_stream.h>

Inheritance diagram for cartographer::io::ForwardingProtoStreamWriter:
Inheritance graph
[legend]

Public Types

using WriterCallback = std::function< bool(const google::protobuf::Message *proto)>
 

Public Member Functions

bool Close () override
 
 ForwardingProtoStreamWriter (WriterCallback writer_callback)
 
void WriteProto (const google::protobuf::Message &proto) override
 
 ~ForwardingProtoStreamWriter ()=default
 
- Public Member Functions inherited from cartographer::io::ProtoStreamWriterInterface
virtual ~ProtoStreamWriterInterface ()
 

Private Attributes

WriterCallback writer_callback_
 

Detailed Description

Definition at line 30 of file in_memory_proto_stream.h.

Member Typedef Documentation

◆ WriterCallback

using cartographer::io::ForwardingProtoStreamWriter::WriterCallback = std::function<bool(const google::protobuf::Message* proto)>

Definition at line 37 of file in_memory_proto_stream.h.

Constructor & Destructor Documentation

◆ ForwardingProtoStreamWriter()

cartographer::io::ForwardingProtoStreamWriter::ForwardingProtoStreamWriter ( WriterCallback  writer_callback)
inlineexplicit

Definition at line 39 of file in_memory_proto_stream.h.

◆ ~ForwardingProtoStreamWriter()

cartographer::io::ForwardingProtoStreamWriter::~ForwardingProtoStreamWriter ( )
default

Member Function Documentation

◆ Close()

bool cartographer::io::ForwardingProtoStreamWriter::Close ( )
overridevirtual

◆ WriteProto()

void cartographer::io::ForwardingProtoStreamWriter::WriteProto ( const google::protobuf::Message &  proto)
overridevirtual

Member Data Documentation

◆ writer_callback_

WriterCallback cartographer::io::ForwardingProtoStreamWriter::writer_callback_
private

Definition at line 47 of file in_memory_proto_stream.h.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59