class PrettyGenericContainer
Defined at line 139 of file ../../src/developer/debug/zxdb/expr/pretty_type.h
A generic container who's contents is populated by the expression. This allows non-contiguous
containers (as opposed to PrettyArray) like std::map. The "expand_expr" is actually a program
snippet that will run. It should call $zxdb::AppendKeyValueRow(key, value); to append children to
the FormatNode of this value (normally inside a loop). The loop should be sure not to go more
than $zxdb::GetMaxArraySize() items to avoid taking too long to execute. See pretty_type.cc for
more.
This does not support array access because comparing arbitrary key values is not generally
practical in the expression language.
Public Methods
void PrettyGenericContainer (const std::string & expand_expr, std::initializer_list<std::pair<std::string, std::string>> getters)
Defined at line 141 of file ../../src/developer/debug/zxdb/expr/pretty_type.h
void Format (FormatNode * node, const FormatOptions & options, const fxl::RefPtr<EvalContext> & context, fit::deferred_callback cb)
Defined at line 439 of file ../../src/developer/debug/zxdb/expr/pretty_type.cc