xref: /llvm-project/lldb/bindings/interface/SBTypeEnumMemberDocstrings.i (revision 662548c82683bd8657a3179afee693c4965a3dfd)
1*662548c8SAlex Langford %feature(
2*662548c8SAlex Langford     "docstring",
3*662548c8SAlex Langford     "Represents a member of an enum in lldb."
4*662548c8SAlex Langford ) lldb::SBTypeEnumMember;
5*662548c8SAlex Langford 
6*662548c8SAlex Langford %feature("docstring",
7*662548c8SAlex Langford "Represents a list of SBTypeEnumMembers.
8*662548c8SAlex Langford 
9*662548c8SAlex Langford SBTypeEnumMemberList supports SBTypeEnumMember iteration.
10*662548c8SAlex Langford It also supports [] access either by index, or by enum
11*662548c8SAlex Langford element name by doing: ::
12*662548c8SAlex Langford 
13*662548c8SAlex Langford   myType = target.FindFirstType('MyEnumWithElementA')
14*662548c8SAlex Langford   members = myType.GetEnumMembers()
15*662548c8SAlex Langford   first_elem = members[0]
16*662548c8SAlex Langford   elem_A = members['A']
17*662548c8SAlex Langford 
18*662548c8SAlex Langford ") lldb::SBTypeEnumMemberList;
19