LLDB  mainline
Public Member Functions | Public Attributes | List of all members
lldb_private::FormatEntity::Entry::Definition Struct Reference

#include <FormatEntity.h>

Collaboration diagram for lldb_private::FormatEntity::Entry::Definition:
Collaboration graph
[legend]

Public Member Functions

constexpr Definition (const char *name, const FormatEntity::Entry::Type t)
 
constexpr Definition (const char *name, const char *string)
 
constexpr Definition (const char *name, const FormatEntity::Entry::Type t, const uint64_t data)
 
constexpr Definition (const char *name, const FormatEntity::Entry::Type t, const uint64_t num_children, const Definition *children, const bool keep_separator=false)
 

Public Attributes

const char * name
 The name/string placeholder that corresponds to this definition. More...
 
const char * string = nullptr
 Insert this exact string into the output. More...
 
const Entry::Type type
 Entry::Type corresponding to this definition. More...
 
const uint64_t data = 0
 Data that is returned as the value of the format string. More...
 
const uint32_t num_children = 0
 The number of children of this node in the tree of format strings. More...
 
const Definitionchildren = nullptr
 An array of "num_children" Definition entries. More...
 
const bool keep_separator = false
 Whether the separator is kept during parsing or not. More...
 

Detailed Description

Definition at line 106 of file FormatEntity.h.

Constructor & Destructor Documentation

◆ Definition() [1/4]

constexpr lldb_private::FormatEntity::Entry::Definition::Definition ( const char *  name,
const FormatEntity::Entry::Type  t 
)
inlineconstexpr

Definition at line 123 of file FormatEntity.h.

◆ Definition() [2/4]

constexpr lldb_private::FormatEntity::Entry::Definition::Definition ( const char *  name,
const char *  string 
)
inlineconstexpr

Definition at line 126 of file FormatEntity.h.

◆ Definition() [3/4]

constexpr lldb_private::FormatEntity::Entry::Definition::Definition ( const char *  name,
const FormatEntity::Entry::Type  t,
const uint64_t  data 
)
inlineconstexpr

Definition at line 129 of file FormatEntity.h.

◆ Definition() [4/4]

constexpr lldb_private::FormatEntity::Entry::Definition::Definition ( const char *  name,
const FormatEntity::Entry::Type  t,
const uint64_t  num_children,
const Definition children,
const bool  keep_separator = false 
)
inlineconstexpr

Definition at line 133 of file FormatEntity.h.

Member Data Documentation

◆ children

const Definition* lldb_private::FormatEntity::Entry::Definition::children = nullptr

An array of "num_children" Definition entries.

Definition at line 118 of file FormatEntity.h.

Referenced by AddMatches(), DumpCommaSeparatedChildEntryNames(), FindEntry(), and ParseEntry().

◆ data

const uint64_t lldb_private::FormatEntity::Entry::Definition::data = 0

Data that is returned as the value of the format string.

Definition at line 114 of file FormatEntity.h.

Referenced by ParseEntry().

◆ keep_separator

const bool lldb_private::FormatEntity::Entry::Definition::keep_separator = false

Whether the separator is kept during parsing or not.

It's used for entries with parameters.

Definition at line 121 of file FormatEntity.h.

Referenced by ParseEntry().

◆ name

const char* lldb_private::FormatEntity::Entry::Definition::name

The name/string placeholder that corresponds to this definition.

Definition at line 108 of file FormatEntity.h.

Referenced by AddMatches(), DumpCommaSeparatedChildEntryNames(), FindEntry(), and ParseEntry().

◆ num_children

const uint32_t lldb_private::FormatEntity::Entry::Definition::num_children = 0

The number of children of this node in the tree of format strings.

Definition at line 116 of file FormatEntity.h.

Referenced by AddMatches(), lldb_private::FormatEntity::AutoComplete(), DumpCommaSeparatedChildEntryNames(), FindEntry(), and ParseEntry().

◆ string

const char* lldb_private::FormatEntity::Entry::Definition::string = nullptr

Insert this exact string into the output.

Definition at line 110 of file FormatEntity.h.

Referenced by ParseEntry().

◆ type

const Entry::Type lldb_private::FormatEntity::Entry::Definition::type

Entry::Type corresponding to this definition.

Definition at line 112 of file FormatEntity.h.

Referenced by ParseEntry().


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