GCC Middle and Back End API Reference
xml::node_with_children Struct Referenceabstract

#include <xml.h>

Inheritance diagram for xml::node_with_children:
Collaboration diagram for xml::node_with_children:

Public Member Functions

void add_child (std::unique_ptr< node > node)
void add_text (std::string str)
void add_text_from_pp (pretty_printer &pp)
void add_comment (std::string str)
elementfind_child_element (std::string kind) const
virtual void write_as_xml (pretty_printer *pp, int depth, bool indent) const =0
virtual textdyn_cast_text ()
virtual elementdyn_cast_element ()
void dump (FILE *out) const
void DEBUG_FUNCTION dump () const

Data Fields

std::vector< std::unique_ptr< node > > m_children

Member Function Documentation

◆ add_child()

void xml::node_with_children::add_child ( std::unique_ptr< node > node)

◆ add_comment()

void xml::node_with_children::add_comment ( std::string str)

References add_child().

◆ add_text()

void xml::node_with_children::add_text ( std::string str)

References add_child(), and m_children.

Referenced by xml::printer::add_text(), and add_text_from_pp().

◆ add_text_from_pp()

void xml::node_with_children::add_text_from_pp ( pretty_printer & pp)

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

◆ find_child_element()

element * xml::node_with_children::find_child_element ( std::string kind) const

References m_children.

◆ write_as_xml()

virtual void xml::node::write_as_xml ( pretty_printer * pp,
int depth,
bool indent ) const
pure virtualinherited

Field Documentation

◆ m_children

std::vector<std::unique_ptr<node> > xml::node_with_children::m_children

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