libcsdbg  1.28
C++ exception (and generic) stack trace debug library
symbol.hpp
Go to the documentation of this file.
1 #ifndef _CSDBG_SYMBOL
2 #define _CSDBG_SYMBOL 1
3 
10 #include "./object.hpp"
11 
12 namespace csdbg {
13 
17 class symbol: virtual public object
18 {
19 protected:
20 
21  /* Protected variables */
22 
27 public:
28 
29  /* Constructors, copy constructors and destructor */
30 
31  symbol(mem_addr_t, const i8*);
32 
33  symbol(const symbol&);
34 
35  virtual ~symbol();
36 
37  virtual symbol* clone() const;
38 
39 
40  /* Accessor methods */
41 
42  virtual mem_addr_t addr() const;
43 
44  virtual const i8* name() const;
45 
46 
47  /* Operator overloading methods */
48 
49  virtual symbol& operator=(const symbol&);
50 };
51 
52 }
53 
54 #endif
55 
virtual symbol & operator=(const symbol &)
Assignment operator.
Definition: symbol.cpp:105
This abstract class serves as the root of the class hierarchy tree.
Definition: object.hpp:17
This class represents a program/library function symbol.
Definition: symbol.hpp:17
virtual symbol * clone() const
Object virtual copy constructor.
Definition: symbol.cpp:68
virtual ~symbol()
Object destructor.
Definition: symbol.cpp:54
char i8
8-bit signed integer
Definition: config.hpp:72
Class csdbg::object definition.
mem_addr_t m_addr
Symbol address.
Definition: symbol.hpp:23
virtual mem_addr_t addr() const
Get the symbol address.
Definition: symbol.cpp:79
virtual const i8 * name() const
Get the symbol name.
Definition: symbol.cpp:90
symbol(mem_addr_t, const i8 *)
Object constructor.
Definition: symbol.cpp:20
i8 * m_name
Symbol name.
Definition: symbol.hpp:25
unsigned long long mem_addr_t
64-bit memory address
Definition: config.hpp:120