LLDB mainline
Public Member Functions | Public Attributes | List of all members
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 105 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 122 of file FormatEntity.h.

◆ Definition() [2/4]

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

Definition at line 125 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 128 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 132 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 117 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 113 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 120 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 107 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 115 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 109 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 111 of file FormatEntity.h.

Referenced by ParseEntry().


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