summaryrefslogtreecommitdiff
path: root/include/lldb/API/SBTypeFilter.h
blob: 19888ba7cfb6972be2cedde7d77101b63475c9f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//===-- SBTypeFilter.h --------------------------------------------*- C++
//-*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLDB_SBTypeFilter_h_
#define LLDB_SBTypeFilter_h_

#include "lldb/API/SBDefines.h"

namespace lldb {

class LLDB_API SBTypeFilter {
public:
  SBTypeFilter();

  SBTypeFilter(uint32_t options); // see lldb::eTypeOption values

  SBTypeFilter(const lldb::SBTypeFilter &rhs);

  ~SBTypeFilter();

  bool IsValid() const;

  uint32_t GetNumberOfExpressionPaths();

  const char *GetExpressionPathAtIndex(uint32_t i);

  bool ReplaceExpressionPathAtIndex(uint32_t i, const char *item);

  void AppendExpressionPath(const char *item);

  void Clear();

  uint32_t GetOptions();

  void SetOptions(uint32_t);

  bool GetDescription(lldb::SBStream &description,
                      lldb::DescriptionLevel description_level);

  lldb::SBTypeFilter &operator=(const lldb::SBTypeFilter &rhs);

  bool IsEqualTo(lldb::SBTypeFilter &rhs);

  bool operator==(lldb::SBTypeFilter &rhs);

  bool operator!=(lldb::SBTypeFilter &rhs);

protected:
  friend class SBDebugger;
  friend class SBTypeCategory;
  friend class SBValue;

  lldb::TypeFilterImplSP GetSP();

  void SetSP(const lldb::TypeFilterImplSP &typefilter_impl_sp);

  lldb::TypeFilterImplSP m_opaque_sp;

  SBTypeFilter(const lldb::TypeFilterImplSP &);

  bool CopyOnWrite_Impl();
};

} // namespace lldb

#endif // LLDB_SBTypeFilter_h_