|
LLDB mainline
|
#include <RegisterType.h>
Public Types | |
| enum | RegisterTypeKind { eRegisterTypeKindFlags , eRegisterTypeKindEnum } |
Public Member Functions | |
| RegisterTypeKind | getKind () const |
| RegisterType (RegisterTypeKind kind, std::string id) | |
| 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 | ~RegisterType ()=default |
| virtual void | ToXMLElement (Stream &strm, const RegisterType *user=nullptr) const =0 |
| Output the register type as an XML element. | |
| const std::string & | GetID () const |
| void | SetDependencies (std::vector< const RegisterType * > dependencies) |
Private Attributes | |
| const RegisterTypeKind | m_kind |
| const std::string | m_id |
| std::vector< const RegisterType * > | m_dependencies |
Definition at line 21 of file RegisterType.h.
| Enumerator | |
|---|---|
| eRegisterTypeKindFlags | |
| eRegisterTypeKindEnum | |
Definition at line 23 of file RegisterType.h.
|
inline |
Definition at line 30 of file RegisterType.h.
Referenced by lldb_private::RegisterTypeEnum::classof(), lldb_private::RegisterTypeFlags::classof(), lldb_private::RegisterTypeEnum::RegisterTypeEnum(), ToXML(), ToXMLElement(), lldb_private::RegisterTypeEnum::ToXMLElement(), and lldb_private::RegisterTypeFlags::ToXMLElement().
|
virtualdefault |
|
inline |
Definition at line 48 of file RegisterType.h.
References m_id.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::BuildTargetXml(), lldb_private::RegisterTypeEnum::DumpToLog(), MakeTypeName(), lldb_private::RegisterTypeEnum::ToXMLElement(), and lldb_private::RegisterTypeFlags::ToXMLElement().
|
inline |
Definition at line 28 of file RegisterType.h.
References m_kind.
Referenced by lldb_private::RegisterTypeEnum::classof(), lldb_private::RegisterTypeFlags::classof(), lldb_private::RegisterTypeBuilderClang::GetRegisterType(), and MakeTypeName().
|
inline |
Definition at line 50 of file RegisterType.h.
References m_dependencies.
| void RegisterType::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.
Reserved characters like "<" are replaced with their XML safe equivalents like ">".
Definition at line 13 of file RegisterType.cpp.
References m_dependencies, RegisterType(), and ToXMLElement().
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::BuildTargetXml().
|
pure virtual |
Output the register type as an XML element.
That is, "<foo ...>" until the closing </foo>, including any child types in between. For example the flags in a register flag set.
Implemented in lldb_private::RegisterTypeEnum, and lldb_private::RegisterTypeFlags.
References RegisterType().
Referenced by ToXML().
|
private |
Definition at line 57 of file RegisterType.h.
Referenced by SetDependencies(), and ToXML().
|
private |
Definition at line 56 of file RegisterType.h.
Referenced by GetID(), and RegisterType().
|
private |
Definition at line 55 of file RegisterType.h.
Referenced by getKind(), and RegisterType().