GCC Middle and Back End API Reference
diagnostics::digraphs::object Class Reference

#include <digraphs.h>

Inheritance diagram for diagnostics::digraphs::object:

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::objectget_property_bag () const
void set_property_bag (std::unique_ptr< json::object > property_bag)

Private Attributes

std::unique_ptr< json::objectm_property_bag

Detailed Description

A base class for digraph, node, and edge to allow them to have
an optional JSON property bag.   

Member Function Documentation

◆ get_attr()

const char * diagnostics::digraphs::object::get_attr ( const char * key_prefix,
const char * key ) const

◆ get_property_bag()

json::object * diagnostics::digraphs::object::get_property_bag ( ) const
inline

◆ set_attr()

void diagnostics::digraphs::object::set_attr ( const char * key_prefix,
const char * key,
const char * value )

References set_json_attr().

◆ 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().

◆ set_property_bag()

void diagnostics::digraphs::object::set_property_bag ( std::unique_ptr< json::object > property_bag)
inline

Field Documentation

◆ m_property_bag

std::unique_ptr<json::object> diagnostics::digraphs::object::m_property_bag
private

The documentation for this class was generated from the following files: