SBSymbol.h revision e49ec18f1868168c8927ae30a379db176ca8cce3
1//===-- SBSymbol.h ----------------------------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLDB_SBSymbol_h_
11#define LLDB_SBSymbol_h_
12
13#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
17class SBSymbol
18{
19public:
20
21    SBSymbol ();
22
23    ~SBSymbol ();
24
25    bool
26    IsValid () const;
27
28
29    const char *
30    GetName() const;
31
32    const char *
33    GetMangledName () const;
34
35#ifndef SWIG
36    bool
37    operator == (const lldb::SBSymbol &rhs) const;
38
39    bool
40    operator != (const lldb::SBSymbol &rhs) const;
41#endif
42
43    bool
44    GetDescription (lldb::SBStream &description);
45
46private:
47    friend class SBSymbolContext;
48
49    SBSymbol (lldb_private::Symbol *lldb_object_ptr);
50
51    lldb_private::Symbol *m_opaque_ptr;
52};
53
54
55} // namespace lldb
56
57#endif // LLDB_SBSymbol_h_
58