LLDB mainline
|
Public Types | |
using | OperationCreationFunc = std::function< FilterRuleSP(bool accept, size_t attribute_index, const std::string &op_arg, Status &error)> |
Public Member Functions | |
virtual | ~FilterRule ()=default |
StructuredData::ObjectSP | Serialize () const |
virtual void | Dump (Stream &stream) const =0 |
llvm::StringRef | GetOperationType () const |
Static Public Member Functions | |
static void | RegisterOperation (llvm::StringRef operation, const OperationCreationFunc &creation_func) |
static FilterRuleSP | CreateRule (bool match_accepts, size_t attribute, llvm::StringRef operation, const std::string &op_arg, Status &error) |
Protected Member Functions | |
FilterRule (bool accept, size_t attribute_index, llvm::StringRef operation) | |
virtual void | DoSerialization (StructuredData::Dictionary &dict) const =0 |
bool | GetMatchAccepts () const |
const char * | GetFilterAttribute () const |
Private Types | |
using | CreationFuncMap = llvm::StringMap< OperationCreationFunc > |
Static Private Member Functions | |
static CreationFuncMap & | GetCreationFuncMap () |
Private Attributes | |
const bool | m_accept |
const size_t | m_attribute_index |
const llvm::StringRef | m_operation |
Definition at line 180 of file StructuredDataDarwinLog.cpp.
|
private |
Definition at line 247 of file StructuredDataDarwinLog.cpp.
using sddarwinlog_private::FilterRule::OperationCreationFunc = std::function<FilterRuleSP(bool accept, size_t attribute_index, const std::string &op_arg, Status &error)> |
Definition at line 184 of file StructuredDataDarwinLog.cpp.
|
virtualdefault |
|
inlineprotected |
Definition at line 234 of file StructuredDataDarwinLog.cpp.
|
inlinestatic |
Definition at line 193 of file StructuredDataDarwinLog.cpp.
References error(), and GetCreationFuncMap().
Referenced by sddarwinlog_private::EnableOptions::ParseFilterRule().
|
protectedpure virtual |
Implemented in sddarwinlog_private::RegexFilterRule, and sddarwinlog_private::ExactMatchFilterRule.
Referenced by Serialize().
|
pure virtual |
Implemented in sddarwinlog_private::RegexFilterRule, and sddarwinlog_private::ExactMatchFilterRule.
|
inlinestaticprivate |
Definition at line 249 of file StructuredDataDarwinLog.cpp.
Referenced by CreateRule(), and RegisterOperation().
|
inlineprotected |
Definition at line 242 of file StructuredDataDarwinLog.cpp.
References m_attribute_index, and sddarwinlog_private::s_filter_attributes.
Referenced by sddarwinlog_private::RegexFilterRule::Dump(), and sddarwinlog_private::ExactMatchFilterRule::Dump().
|
inlineprotected |
Definition at line 240 of file StructuredDataDarwinLog.cpp.
References m_accept.
Referenced by sddarwinlog_private::RegexFilterRule::Dump(), and sddarwinlog_private::ExactMatchFilterRule::Dump().
|
inline |
Definition at line 231 of file StructuredDataDarwinLog.cpp.
References m_operation.
Referenced by Serialize().
|
inlinestatic |
Definition at line 188 of file StructuredDataDarwinLog.cpp.
References GetCreationFuncMap().
Referenced by sddarwinlog_private::RegexFilterRule::RegisterOperation(), and sddarwinlog_private::ExactMatchFilterRule::RegisterOperation().
|
inline |
Definition at line 208 of file StructuredDataDarwinLog.cpp.
References lldb_private::StructuredData::Dictionary::AddBooleanItem(), lldb_private::StructuredData::Dictionary::AddStringItem(), DoSerialization(), GetOperationType(), m_accept, m_attribute_index, and sddarwinlog_private::s_filter_attributes.
|
private |
Definition at line 254 of file StructuredDataDarwinLog.cpp.
Referenced by GetMatchAccepts(), and Serialize().
|
private |
Definition at line 255 of file StructuredDataDarwinLog.cpp.
Referenced by GetFilterAttribute(), and Serialize().
|
private |
Definition at line 257 of file StructuredDataDarwinLog.cpp.
Referenced by GetOperationType().