GCC Middle and Back End API Reference
diagnostics::state_graphs::state_node_ref Struct Reference

#include <state-graphs.h>

Collaboration diagram for diagnostics::state_graphs::state_node_ref:

Public Member Functions

 state_node_ref (diagnostics::digraphs::node &node)
enum node_kind get_node_kind () const
void set_node_kind (enum node_kind)
logical_locations::key get_logical_loc () const
enum node_dynalloc_state get_dynalloc_state () const
void set_dynalloc_state (enum node_dynalloc_state) const
const char * get_dynamic_extents () const
const char * get_name () const
void set_name (const char *name) const
const char * get_type () const
void set_type (const char *type) const
const char * get_value () const
const char * get_index () const
const char * get_attr (const char *key) const
void set_attr (const char *key, const char *value) const
void set_json_attr (const char *key, std::unique_ptr< json::value > value) const

Data Fields

diagnostics::digraphs::nodem_node

Detailed Description

A wrapper around a node that gets/sets attributes, using
the node's property bag for storage, so that the data roundtrips
through SARIF.   

Constructor & Destructor Documentation

◆ state_node_ref()

diagnostics::state_graphs::state_node_ref::state_node_ref ( diagnostics::digraphs::node & node)
inline

References m_node.

Member Function Documentation

◆ get_attr()

const char * diagnostics::state_graphs::state_node_ref::get_attr ( const char * key) const
inline

◆ get_dynalloc_state()

enum node_dynalloc_state state_node_ref::get_dynalloc_state ( ) const

◆ get_dynamic_extents()

const char * state_node_ref::get_dynamic_extents ( ) const

◆ get_index()

const char * diagnostics::state_graphs::state_node_ref::get_index ( ) const
inline

References get_attr().

Referenced by state_diagram::on_node_in_table().

◆ get_logical_loc()

logical_locations::key diagnostics::state_graphs::state_node_ref::get_logical_loc ( ) const
inline

References m_node.

Referenced by state_diagram::on_node_in_table().

◆ get_name()

const char * diagnostics::state_graphs::state_node_ref::get_name ( ) const
inline

References get_attr().

Referenced by state_diagram::on_node_in_table().

◆ get_node_kind()

◆ get_type()

const char * diagnostics::state_graphs::state_node_ref::get_type ( ) const
inline

References get_attr().

Referenced by state_diagram::on_node_in_table().

◆ get_value()

const char * diagnostics::state_graphs::state_node_ref::get_value ( ) const
inline

References get_attr().

Referenced by state_diagram::on_node_in_table().

◆ set_attr()

void diagnostics::state_graphs::state_node_ref::set_attr ( const char * key,
const char * value ) const
inline

◆ set_dynalloc_state()

void state_node_ref::set_dynalloc_state ( enum node_dynalloc_state s) const

References dynalloc_state_strs, and set_attr().

◆ set_json_attr()

void state_node_ref::set_json_attr ( const char * key,
std::unique_ptr< json::value > value ) const

References m_node, and STATE_NODE_PREFIX.

◆ set_name()

void diagnostics::state_graphs::state_node_ref::set_name ( const char * name) const
inline

References set_attr().

◆ set_node_kind()

void state_node_ref::set_node_kind ( enum node_kind k)

◆ set_type()

void diagnostics::state_graphs::state_node_ref::set_type ( const char * type) const
inline

References set_attr().

Field Documentation

◆ m_node


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