Apollo  6.0
Open source self driving car software
Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
GeneralMessageBase Class Reference

#include <general_message_base.h>

Inheritance diagram for GeneralMessageBase:
Inheritance graph
Collaboration diagram for GeneralMessageBase:
Collaboration graph

Protected Member Functions

void InsertRepeatedMessage (int line_no, GeneralMessageBase *item)
 
RenderableMessageChild (int line_no) const override
 
 GeneralMessageBase (RenderableMessage *parent=nullptr)
 
 ~GeneralMessageBase (void)
 
void clear (void)
 
 GeneralMessageBase (const GeneralMessageBase &)=delete
 
GeneralMessageBaseoperator= (const GeneralMessageBase &)=delete
 
- Protected Member Functions inherited from RenderableMessage
int * line_no (void)
 
void set_line_no (int line_no)
 
void reset_line_page (void)
 
void SplitPages (int key)
 

Static Protected Member Functions

static void PrintMessage (GeneralMessageBase *baseMsg, const google::protobuf::Message &msg, int *jump_lines, const Screen *s, int *line_no, int indent)
 
static void PrintField (GeneralMessageBase *baseMsg, const google::protobuf::Message &msg, int *jump_lines, const Screen *s, int *line_no, int indent, const google::protobuf::Reflection *ref, const google::protobuf::FieldDescriptor *field, int index)
 
static int LineCount (const google::protobuf::Message &msg, int screen_width)
 
static int LineCountOfField (const google::protobuf::Message &msg, int screen_width, const google::protobuf::FieldDescriptor *field, const google::protobuf::Reflection *reflection, bool is_folded=true)
 

Protected Attributes

std::map< const int, GeneralMessageBase * > children_map_
 
- Protected Attributes inherited from RenderableMessage
int line_no_
 
int pages_
 
int page_index_
 
int page_item_count_
 
RenderableMessageparent_
 
double frame_ratio_
 

Additional Inherited Members

- Public Member Functions inherited from RenderableMessage
 RenderableMessage (RenderableMessage *parent=nullptr, int line_no=0)
 
virtual ~RenderableMessage ()
 
virtual int Render (const Screen *s, int key)=0
 
virtual double frame_ratio (void)
 
RenderableMessageparent (void) const
 
void set_parent (RenderableMessage *parent)
 
int page_item_count (void) const
 
- Static Public Attributes inherited from RenderableMessage
static constexpr int FrameRatio_Precision = 2
 

Constructor & Destructor Documentation

◆ GeneralMessageBase() [1/2]

GeneralMessageBase::GeneralMessageBase ( RenderableMessage parent = nullptr)
inlineexplicitprotected

◆ ~GeneralMessageBase()

GeneralMessageBase::~GeneralMessageBase ( void  )
inlineprotected

◆ GeneralMessageBase() [2/2]

GeneralMessageBase::GeneralMessageBase ( const GeneralMessageBase )
protecteddelete

Member Function Documentation

◆ Child()

RenderableMessage* GeneralMessageBase::Child ( int  line_no) const
overrideprotectedvirtual

Implements RenderableMessage.

◆ clear()

void GeneralMessageBase::clear ( void  )
inlineprotected

◆ InsertRepeatedMessage()

void GeneralMessageBase::InsertRepeatedMessage ( int  line_no,
GeneralMessageBase item 
)
inlineprotected

◆ LineCount()

static int GeneralMessageBase::LineCount ( const google::protobuf::Message &  msg,
int  screen_width 
)
staticprotected

◆ LineCountOfField()

static int GeneralMessageBase::LineCountOfField ( const google::protobuf::Message &  msg,
int  screen_width,
const google::protobuf::FieldDescriptor *  field,
const google::protobuf::Reflection *  reflection,
bool  is_folded = true 
)
staticprotected

◆ operator=()

GeneralMessageBase& GeneralMessageBase::operator= ( const GeneralMessageBase )
protecteddelete

◆ PrintField()

static void GeneralMessageBase::PrintField ( GeneralMessageBase baseMsg,
const google::protobuf::Message &  msg,
int *  jump_lines,
const Screen s,
int *  line_no,
int  indent,
const google::protobuf::Reflection *  ref,
const google::protobuf::FieldDescriptor *  field,
int  index 
)
staticprotected

◆ PrintMessage()

static void GeneralMessageBase::PrintMessage ( GeneralMessageBase baseMsg,
const google::protobuf::Message &  msg,
int *  jump_lines,
const Screen s,
int *  line_no,
int  indent 
)
staticprotected

Member Data Documentation

◆ children_map_

std::map<const int, GeneralMessageBase*> GeneralMessageBase::children_map_
protected

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