SBFunction.h revision e49ec18f1868168c8927ae30a379db176ca8cce3
1//===-- SBFunction.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_SBFunction_h_
11#define LLDB_SBFunction_h_
12
13#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
17class SBFunction
18{
19public:
20
21    SBFunction ();
22
23    ~SBFunction ();
24
25    bool
26    IsValid () const;
27
28    const char *
29    GetName() const;
30
31    const char *
32    GetMangledName () const;
33
34#ifndef SWIG
35    bool
36    operator == (const lldb::SBFunction &rhs) const;
37
38    bool
39    operator != (const lldb::SBFunction &rhs) const;
40#endif
41
42    bool
43    GetDescription (lldb::SBStream &description);
44
45private:
46    friend class SBFrame;
47    friend class SBSymbolContext;
48
49    SBFunction (lldb_private::Function *lldb_object_ptr);
50
51
52    lldb_private::Function *m_opaque_ptr;
53};
54
55
56} // namespace lldb
57
58#endif // LLDB_SBFunction_h_
59