GCC Middle and Back End API Reference
xml::comment Struct Reference

#include <xml.h>

Inheritance diagram for xml::comment:
Collaboration diagram for xml::comment:

Public Member Functions

 comment (std::string text)
void write_as_xml (pretty_printer *pp, int depth, bool indent) const final override
virtual textdyn_cast_text ()
virtual elementdyn_cast_element ()
void dump (FILE *out) const
void DEBUG_FUNCTION dump () const

Data Fields

std::string m_text

Detailed Description

An XML comment.   

Constructor & Destructor Documentation

◆ comment()

xml::comment::comment ( std::string text)
inline

References m_text.

Member Function Documentation

◆ dump() [1/2]

void DEBUG_FUNCTION xml::node::dump ( ) const
inlineinherited

References DEBUG_FUNCTION, and dump().

Referenced by dump().

◆ dump() [2/2]

void xml::node::dump ( FILE * out) const
inherited

◆ dyn_cast_element()

virtual element * xml::node::dyn_cast_element ( )
inlinevirtualinherited

Reimplemented in xml::element.

◆ dyn_cast_text()

virtual text * xml::node::dyn_cast_text ( )
inlinevirtualinherited

Reimplemented in xml::text.

◆ write_as_xml()

void xml::comment::write_as_xml ( pretty_printer * pp,
int depth,
bool indent ) const
finaloverridevirtual

Field Documentation

◆ m_text

std::string xml::comment::m_text

Referenced by comment(), and write_as_xml().


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