SBTypeSynthetic.i revision 359575
159243Sobrien//===-- SWIG Interface for SBTypeSynthetic-------------------------*- C++ -*-===// 2145479Smp// 359243Sobrien// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 459243Sobrien// See https://llvm.org/LICENSE.txt for license information. 5131962Smp// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6131962Smp// 7131962Smp//===----------------------------------------------------------------------===// 8145479Smp 9131962Smpnamespace lldb { 10131962Smp 11131962Smp %feature("docstring", 12131962Smp "Represents a summary that can be associated to one or more types.") SBTypeSynthetic; 13131962Smp 14131962Smp class SBTypeSynthetic 15131962Smp { 16131962Smp public: 17131962Smp 18131962Smp SBTypeSynthetic(); 19131962Smp 20131962Smp static lldb::SBTypeSynthetic 2159243Sobrien CreateWithClassName (const char* data, uint32_t options = 0); 2259243Sobrien 2359243Sobrien static lldb::SBTypeSynthetic 2459243Sobrien CreateWithScriptCode (const char* data, uint32_t options = 0); 2559243Sobrien 2659243Sobrien SBTypeSynthetic (const lldb::SBTypeSynthetic &rhs); 2759243Sobrien 2859243Sobrien ~SBTypeSynthetic (); 2959243Sobrien 3059243Sobrien bool 3159243Sobrien IsValid() const; 3259243Sobrien 3383098Smp explicit operator bool() const; 3459243Sobrien 3559243Sobrien bool 3659243Sobrien IsEqualTo (lldb::SBTypeSynthetic &rhs); 3759243Sobrien 3883098Smp bool 3959243Sobrien IsClassCode(); 40100616Smp 4159243Sobrien const char* 4259243Sobrien GetData (); 43100616Smp 4459243Sobrien void 4559243Sobrien SetClassName (const char* data); 4659243Sobrien 4759243Sobrien void 4859243Sobrien SetClassCode (const char* data); 4959243Sobrien 50100616Smp uint32_t 51100616Smp GetOptions (); 52145479Smp 53100616Smp void 54100616Smp SetOptions (uint32_t); 5559243Sobrien 5659243Sobrien bool 5759243Sobrien GetDescription (lldb::SBStream &description, 5859243Sobrien lldb::DescriptionLevel description_level); 5959243Sobrien 6059243Sobrien bool 6159243Sobrien operator == (lldb::SBTypeSynthetic &rhs); 6259243Sobrien 6359243Sobrien bool 6459243Sobrien operator != (lldb::SBTypeSynthetic &rhs); 6559243Sobrien 6659243Sobrien STRING_EXTENSION_LEVEL(SBTypeSynthetic, lldb::eDescriptionLevelBrief) 6759243Sobrien 6859243Sobrien#ifdef SWIGPYTHON 6959243Sobrien %pythoncode %{ 7059243Sobrien options = property(GetOptions, SetOptions) 7159243Sobrien contains_code = property(IsClassCode, None) 7259243Sobrien synthetic_data = property(GetData, None) 7359243Sobrien %} 7459243Sobrien#endif 7559243Sobrien 7659243Sobrien }; 7759243Sobrien 7859243Sobrien} // namespace lldb 7959243Sobrien