Back to index

enigmail  1.4.3
Public Types | Public Member Functions | Private Attributes
ElfLocation Class Reference

#include <elfxx.h>

Inheritance diagram for ElfLocation:
Inheritance graph
[legend]
Collaboration diagram for ElfLocation:
Collaboration graph
[legend]

List of all members.

Public Types

enum  position { ABSOLUTE, RELATIVE }

Public Member Functions

 ElfLocation ()
 ElfLocation (ElfSection *section, unsigned int off, enum position pos=RELATIVE)
 ElfLocation (unsigned int location, Elf *elf)
unsigned int getValue ()
ElfSectiongetSection ()

Private Attributes

ElfSectionsection
unsigned int offset

Detailed Description

Definition at line 161 of file elfxx.h.


Member Enumeration Documentation

Enumerator:
ABSOLUTE 
RELATIVE 

Definition at line 165 of file elfxx.h.


Constructor & Destructor Documentation

Definition at line 166 of file elfxx.h.

: section(NULL), offset(0) {};
ElfLocation::ElfLocation ( ElfSection section,
unsigned int  off,
enum position  pos = RELATIVE 
) [inline]

Definition at line 663 of file elfxx.h.

: section(section) {
    if ((pos == ABSOLUTE) && section)
        offset = off - section->getAddr();
    else
        offset = off;
}

Here is the call graph for this function:

ElfLocation::ElfLocation ( unsigned int  location,
Elf elf 
) [inline]

Definition at line 671 of file elfxx.h.

                                                               {
    section = elf->getSectionAt(location);
    offset = location - (section ? section->getAddr() : 0);
}

Here is the call graph for this function:


Member Function Documentation

ElfSection* ElfLocation::getSection ( ) [inline, virtual]

Reimplemented from ElfValue.

Definition at line 170 of file elfxx.h.

{ return section; }

Here is the caller graph for this function:

unsigned int ElfLocation::getValue ( ) [inline, virtual]

Reimplemented from ElfValue.

Definition at line 676 of file elfxx.h.

                                          {
    return (section ? section->getAddr() : 0) + offset;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

unsigned int ElfLocation::offset [private]

Definition at line 163 of file elfxx.h.

Definition at line 162 of file elfxx.h.


The documentation for this class was generated from the following file: