LLDB mainline
lldb_private::RegisterTypeEnum Class Reference

#include <RegisterTypeFlags.h>

Inheritance diagram for lldb_private::RegisterTypeEnum:
[legend]

Classes

struct  Enumerator

Public Types

typedef std::vector< EnumeratorEnumerators
Public Types inherited from lldb_private::RegisterType
enum  RegisterTypeKind { eRegisterTypeKindFlags , eRegisterTypeKindEnum }

Public Member Functions

 RegisterTypeEnum (std::string id, const Enumerators &enumerators)
const EnumeratorsGetEnumerators () const
void DumpToLog (Log *log) const
virtual void ToXMLElement (Stream &strm, const RegisterType *user=nullptr) const override
 Output the register type as an XML element.
Public Member Functions inherited from lldb_private::RegisterType
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
const std::string & GetID () const
void SetDependencies (std::vector< const RegisterType * > dependencies)

Static Public Member Functions

static bool classof (const RegisterType *register_type)

Private Attributes

Enumerators m_enumerators

Detailed Description

Definition at line 24 of file RegisterTypeFlags.h.

Member Typedef Documentation

◆ Enumerators

Definition at line 40 of file RegisterTypeFlags.h.

Constructor & Destructor Documentation

◆ RegisterTypeEnum()

RegisterTypeEnum::RegisterTypeEnum ( std::string id,
const Enumerators & enumerators )

Member Function Documentation

◆ classof()

bool lldb_private::RegisterTypeEnum::classof ( const RegisterType * register_type)
inlinestatic

◆ DumpToLog()

void RegisterTypeEnum::DumpToLog ( Log * log) const

◆ GetEnumerators()

const Enumerators & lldb_private::RegisterTypeEnum::GetEnumerators ( ) const
inline

◆ ToXMLElement()

void RegisterTypeEnum::ToXMLElement ( Stream & strm,
const RegisterType * user = nullptr ) const
overridevirtual

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.

Implements lldb_private::RegisterType.

Definition at line 328 of file RegisterTypeFlags.cpp.

References GetEnumerators(), lldb_private::RegisterType::GetID(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), and lldb_private::RegisterType::RegisterType().

Member Data Documentation

◆ m_enumerators

Enumerators lldb_private::RegisterTypeEnum::m_enumerators
private

Definition at line 59 of file RegisterTypeFlags.h.

Referenced by GetEnumerators(), and RegisterTypeEnum().


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