GCC Middle and Back End API Reference
|
#include <digraphs.h>
Public Member Functions | |
const char * | get_attr (const char *key_prefix, const char *key) const |
void | set_attr (const char *key_prefix, const char *key, const char *value) |
void | set_json_attr (const char *key_prefix, const char *key, std::unique_ptr< json::value > value) |
json::object * | get_property_bag () const |
void | set_property_bag (std::unique_ptr< json::object > property_bag) |
Private Attributes | |
std::unique_ptr< json::object > | m_property_bag |
A base class for digraph, node, and edge to allow them to have an optional JSON property bag.
const char * diagnostics::digraphs::object::get_attr | ( | const char * | key_prefix, |
const char * | key ) const |
References json::string::dyn_cast_string(), and m_property_bag.
|
inline |
References m_property_bag.
Referenced by diagnostics::digraphs::digraph::clone(), diagnostics::digraphs::node::clone(), and diagnostics::copy_any_property_bag().
void diagnostics::digraphs::object::set_attr | ( | const char * | key_prefix, |
const char * | key, | ||
const char * | value ) |
References set_json_attr().
void diagnostics::digraphs::object::set_json_attr | ( | const char * | key_prefix, |
const char * | key, | ||
std::unique_ptr< json::value > | value ) |
References m_property_bag.
Referenced by set_attr().
|
inline |
References m_property_bag.
Referenced by private_diagnostic_node_set_property_bag().
|
private |
Referenced by get_attr(), get_property_bag(), set_json_attr(), and set_property_bag().