1 //===-- SWIG Interface for SBTypeEnumMember ---------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 "Represents a member of an enum in lldb."
16 class SBTypeEnumMember
21 SBTypeEnumMember (const SBTypeEnumMember& rhs);
28 explicit operator bool() const;
43 GetDescription (lldb::SBStream &description,
44 lldb::DescriptionLevel description_level);
46 STRING_EXTENSION_LEVEL(SBTypeEnumMember, lldb::eDescriptionLevelBrief)
49 name = property(GetName, None, doc='''A read only property that returns the name for this enum member as a string.''')
50 type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this enum member.''')
51 signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this enum member as a signed integer.''')
52 unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this enum member as a unsigned integer.''')
58 friend class SBTypeEnumMemberList;
61 reset (lldb_private::TypeEnumMemberImpl *);
63 lldb_private::TypeEnumMemberImpl &
66 const lldb_private::TypeEnumMemberImpl &
69 lldb::TypeEnumMemberImplSP m_opaque_sp;
71 SBTypeEnumMember (const lldb::TypeEnumMemberImplSP &);
76 "Represents a list of SBTypeEnumMembers."
77 ) SBTypeEnumMemberList;
79 class SBTypeEnumMemberList
82 SBTypeEnumMemberList();
84 SBTypeEnumMemberList(const SBTypeEnumMemberList& rhs);
86 ~SBTypeEnumMemberList();
91 explicit operator bool() const;
94 Append (SBTypeEnumMember entry);
97 GetTypeEnumMemberAtIndex (uint32_t index);
104 std::unique_ptr<lldb_private::TypeEnumMemberListImpl> m_opaque_ap;