GCC Middle and Back End API Reference
json::integer_number Class Reference

#include <json.h>

Inheritance diagram for json::integer_number:
Collaboration diagram for json::integer_number:

Public Member Functions

 integer_number (long value)
enum kind get_kind () const final override
void print (pretty_printer *pp, bool formatted) const final override
long get () const
void dump (FILE *, bool formatted) const

Private Attributes

long m_value

Detailed Description

Subclass of value for integer-valued numbers.   

Constructor & Destructor Documentation

◆ integer_number()

json::integer_number::integer_number ( long value)

Member Function Documentation

◆ dump()

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 pp_buffer(), pp_flush(), json::value::print(), and output_buffer::stream.

Referenced by json_output_format::flush_to_file(), sarif_builder::flush_to_file(), and generate_results().

◆ get()

long json::integer_number::get ( ) const

References m_value.

◆ get_kind()

enum kind json::integer_number::get_kind ( ) const

Implements json::value.

References json::JSON_INTEGER.

◆ print()

void integer_number::print ( pretty_printer * pp,
bool formatted ) const
class json::integer_number, a subclass of json::value, wrapping a long.   
Implementation of json::value::print for json::integer_number.   

Implements json::value.

References m_value, and pp_string().

Field Documentation

◆ m_value

long json::integer_number::m_value

Referenced by get(), and print().

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