LLDB mainline
lldb_private::FormatEntity::Entry::Definition Struct Reference

#include <FormatEntity.h>

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

Detailed Description

Definition at line 121 of file FormatEntity.h.

Constructor & Destructor Documentation

◆ Definition() [1/4]

Definition at line 138 of file FormatEntity.h.

References name, and type.

Referenced by Definition().

◆ Definition() [2/4]

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

◆ Definition() [3/4]

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

Definition at line 144 of file FormatEntity.h.

References data, name, and type.

◆ Definition() [4/4]

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 148 of file FormatEntity.h.

References children, Definition(), keep_separator, name, num_children, and type.

Member Data Documentation

◆ children

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

An array of "num_children" Definition entries.

Definition at line 133 of file FormatEntity.h.

Referenced by AddMatches(), Definition(), 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 129 of file FormatEntity.h.

Referenced by Definition(), and 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 136 of file FormatEntity.h.

Referenced by Definition(), and ParseEntry().

◆ name

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

The name/string placeholder that corresponds to this definition.

Definition at line 123 of file FormatEntity.h.

Referenced by AddMatches(), Definition(), Definition(), Definition(), Definition(), 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 131 of file FormatEntity.h.

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

◆ string

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

Insert this exact string into the output.

Definition at line 125 of file FormatEntity.h.

Referenced by Definition(), and ParseEntry().

◆ type

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

Entry::Type corresponding to this definition.

Definition at line 127 of file FormatEntity.h.

Referenced by Definition(), Definition(), Definition(), Definition(), and ParseEntry().


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