14 Stream &strm, std::unordered_set<const RegisterType *> &previously_emitted,
17 if (!previously_emitted.insert(
this).second)
22 dep->ToXML(strm, previously_emitted,
this);
void ToXML(Stream &strm, std::unordered_set< const RegisterType * > &previously_emitted, const RegisterType *user=nullptr) const
Output XML that describes this type, to be inserted into a target XML file.
virtual void ToXMLElement(Stream &strm, const RegisterType *user=nullptr) const =0
Output the register type as an XML element.
std::vector< const RegisterType * > m_dependencies
RegisterType(RegisterTypeKind kind, std::string id)
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.