OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
TPEF::SectionSymElement Class Reference

#include <SectionSymElement.hh>

Inheritance diagram for TPEF::SectionSymElement:
Inheritance graph
Collaboration diagram for TPEF::SectionSymElement:
Collaboration graph

Public Member Functions

 SectionSymElement ()
 
virtual ~SectionSymElement ()
 
virtual SymbolType type () const
 
Word value () const
 
void setValue (Word aValue)
 
Word size () const
 
void setSize (Word aSize)
 
- 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. More...
 
Word size_
 Size of referred object in MAUs. 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 ()
 

Detailed Description

Section symbol element.

Definition at line 44 of file SectionSymElement.hh.

Constructor & Destructor Documentation

◆ SectionSymElement()

TPEF::SectionSymElement::SectionSymElement ( )

Constructor.

Definition at line 41 of file SectionSymElement.cc.

41  :
42  SymbolElement(), value_(0), size_(0) {
43 
44 }

◆ ~SectionSymElement()

TPEF::SectionSymElement::~SectionSymElement ( )
virtual

Destructor.

Definition at line 49 of file SectionSymElement.cc.

49  {
50 }

Member Function Documentation

◆ setSize()

void TPEF::SectionSymElement::setSize ( Word  aSize)

Sets size of referred object in MAUs.

Parameters
aSizeof the referred object in MAUs.

Definition at line 102 of file SectionSymElement.cc.

102  {
103  size_ = aSize;
104 }

References size_.

◆ setValue()

void TPEF::SectionSymElement::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 SectionSymElement.cc.

82  {
83  value_ = aValue;
84 }

References value_.

◆ size()

Word TPEF::SectionSymElement::size ( ) const

Returns size of the referred object in MAUs.

Returns
Size of the referred object in MAUs.

Definition at line 92 of file SectionSymElement.cc.

92  {
93  return size_;
94 }

References size_.

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

◆ type()

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

Returns type of the element.

Returns
Type of the element.

Implements TPEF::SymbolElement.

Definition at line 58 of file SectionSymElement.cc.

58  {
59  return STT_SECTION;
60 }

References TPEF::SymbolElement::STT_SECTION.

◆ value()

Word TPEF::SectionSymElement::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 SectionSymElement.cc.

70  {
71  return value_;
72 }

References value_.

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

Member Data Documentation

◆ size_

Word TPEF::SectionSymElement::size_
private

Size of referred object in MAUs.

Definition at line 61 of file SectionSymElement.hh.

Referenced by setSize(), and size().

◆ value_

Word TPEF::SectionSymElement::value_
private

Value of the symbol.

Definition at line 59 of file SectionSymElement.hh.

Referenced by setValue(), and value().


The documentation for this class was generated from the following files:
TPEF::SymbolElement::STT_SECTION
@ STT_SECTION
Associated with section.
Definition: SymbolElement.hh:70
TPEF::SymbolElement::SymbolElement
SymbolElement()
Definition: SymbolElement.cc:46
TPEF::SectionSymElement::size_
Word size_
Size of referred object in MAUs.
Definition: SectionSymElement.hh:61
TPEF::SectionSymElement::value_
Word value_
Value of the symbol.
Definition: SectionSymElement.hh:59