OpenASIP
2.0
|
#include <FileSymElement.hh>
Public Member Functions | |
FileSymElement () | |
virtual | ~FileSymElement () |
virtual SymbolType | type () const |
Word | value () const |
void | setValue (Word aValue) |
Public Member Functions inherited from TPEF::SymbolElement | |
SymbolElement () | |
virtual | ~SymbolElement () |
bool | absolute () const |
void | setAbsolute (bool anAbsoluteness) |
SymbolBinding | binding () const |
void | setBinding (SymbolBinding aBinding) |
Chunk * | name () const |
void | setName (Chunk *aName) |
void | setName (const ReferenceManager::SafePointer *aName) |
Section * | section () const |
void | setSection (Section *aSect) |
void | setSection (const ReferenceManager::SafePointer *aSect) |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Private Attributes | |
Word | value_ |
Value of the symbol. More... | |
Additional Inherited Members | |
Public Types inherited from TPEF::SymbolElement | |
enum | SymbolBinding { STB_LOCAL = 0x0, STB_GLOBAL = 0x1, STB_WEAK = 0x2 } |
Binding types of symbol. More... | |
enum | SymbolType { STT_NOTYPE = 0x0, STT_DATA = 0x1, STT_CODE = 0x2, STT_SECTION = 0x3, STT_FILE = 0x4, STT_PROCEDURE = 0x5 } |
Type of symbol element. More... | |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
File Symbol element.
Definition at line 44 of file FileSymElement.hh.
TPEF::FileSymElement::FileSymElement | ( | ) |
Constructor.
Definition at line 41 of file FileSymElement.cc.
|
virtual |
void TPEF::FileSymElement::setValue | ( | Word | aValue | ) |
Sets value of the element.
This might be for example relocation information.
aValue | Value of the element. |
Definition at line 82 of file FileSymElement.cc.
References value_.
|
virtual |
Returns type of the element.
Implements TPEF::SymbolElement.
Definition at line 58 of file FileSymElement.cc.
References TPEF::SymbolElement::STT_FILE.
Word TPEF::FileSymElement::value | ( | ) | const |
Returns value of the element.
This might be for example relocation information.
Definition at line 70 of file FileSymElement.cc.
References value_.
Referenced by TPEF::TPEFSymbolSectionWriter::writeValueAndSize().
|
private |
Value of the symbol.
Definition at line 56 of file FileSymElement.hh.
Referenced by setValue(), and value().