GCC Middle and Back End API Reference
json::value Class Referenceabstract

#include <json.h>

Inheritance diagram for json::value:

Public Member Functions

virtual ~value ()
 
virtual enum kind get_kind () const =0
 
virtual void print (pretty_printer *pp, bool formatted) const =0
 
void dump (FILE *, bool formatted) const
 
void DEBUG_FUNCTION dump () const
 

Detailed Description

Base class of JSON value.   

Constructor & Destructor Documentation

◆ ~value()

virtual json::value::~value ( )
inlinevirtual

Member Function Documentation

◆ dump() [1/2]

void value::dump ( ) const
A convenience function for debugging.
Dump to stderr with formatting, and a trailing newline.  

References dump().

Referenced by dump().

◆ dump() [2/2]

void value::dump ( FILE * outf,
bool formatted ) const
class json::value.   
Dump this json::value tree to OUTF.

The key/value pairs of json::objects are printed in the order
in which the keys were originally inserted.   

References output_buffer::m_stream, pp_buffer(), pp_flush(), and print().

Referenced by generate_results().

◆ get_kind()

virtual enum kind json::value::get_kind ( ) const
pure virtual

◆ print()

virtual void json::value::print ( pretty_printer * pp,
bool formatted ) const
pure virtual

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