blob: 4f0195aa561559ba09e7d19cc48f88420f829b7d [file] [log] [blame]
//===-- SBAddress.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_SBAddress_h_
#define LLDB_SBAddress_h_
#include <LLDB/SBDefines.h>
namespace lldb {
class SBAddress
{
public:
SBAddress ();
SBAddress (const lldb::SBAddress &rhs);
~SBAddress ();
#ifndef SWIG
const SBAddress &
operator = (const SBAddress &rhs);
#endif
bool
IsValid () const;
addr_t
GetFileAddress () const;
addr_t
GetLoadAddress (const lldb::SBProcess &process) const;
bool
OffsetAddress (addr_t offset);
protected:
friend class SBFrame;
friend class SBLineEntry;
friend class SBSymbolContext;
friend class SBThread;
#ifndef SWIG
const lldb_private::Address *
operator->() const;
const lldb_private::Address &
operator*() const;
#endif
SBAddress (const lldb_private::Address *lldb_object_ptr);
void
SetAddress (const lldb_private::Address *lldb_object_ptr);
private:
std::auto_ptr<lldb_private::Address> m_lldb_object_ap;
};
} // namespace lldb
#endif // LLDB_SBAddress_h_