OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TPEF::FileSymElement Class Reference

#include <FileSymElement.hh>

Inheritance diagram for TPEF::FileSymElement:
Inheritance graph
Collaboration diagram for TPEF::FileSymElement:
Collaboration graph

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)
 
Chunkname () const
 
void setName (Chunk *aName)
 
void setName (const ReferenceManager::SafePointer *aName)
 
Sectionsection () 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.
 

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 ()
 

Detailed Description

File Symbol element.

Definition at line 44 of file FileSymElement.hh.

Constructor & Destructor Documentation

◆ FileSymElement()

TPEF::FileSymElement::FileSymElement ( )

Constructor.

Definition at line 41 of file FileSymElement.cc.

41 :
43 value_(0) {
44}
Word value_
Value of the symbol.

◆ ~FileSymElement()

TPEF::FileSymElement::~FileSymElement ( )
virtual

Destructor.

Definition at line 49 of file FileSymElement.cc.

49 {
50}

Member Function Documentation

◆ setValue()

void TPEF::FileSymElement::setValue ( Word  aValue)

Sets value of the element.

This might be for example relocation information.

Parameters
aValueValue of the element.

Definition at line 82 of file FileSymElement.cc.

82 {
83 value_ = aValue;
84}

References value_.

◆ type()

SymbolElement::SymbolType TPEF::FileSymElement::type ( ) const
virtual

Returns type of the element.

Returns
Type of the element.

Implements TPEF::SymbolElement.

Definition at line 58 of file FileSymElement.cc.

58 {
59 return STT_FILE;
60}
@ STT_FILE
Name of symbol gives the name of source file associated with this object file.

References TPEF::SymbolElement::STT_FILE.

◆ value()

Word TPEF::FileSymElement::value ( ) const

Returns value of the element.

This might be for example relocation information.

Returns
Value of the element.

Definition at line 70 of file FileSymElement.cc.

70 {
71 return value_;
72}

References value_.

Referenced by TPEF::TPEFSymbolSectionWriter::writeValueAndSize().

Member Data Documentation

◆ value_

Word TPEF::FileSymElement::value_
private

Value of the symbol.

Definition at line 56 of file FileSymElement.hh.

Referenced by setValue(), and value().


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