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

#include <ImmediateElement.hh>

Inheritance diagram for TPEF::ImmediateElement:
Inheritance graph
Collaboration diagram for TPEF::ImmediateElement:
Collaboration graph

Public Member Functions

 ImmediateElement ()
 
virtual ~ImmediateElement ()
 
bool isInline () const
 
void addByte (Byte aByte)
 
Byte byte (unsigned int index) const
 
void setByte (unsigned int index, Byte aValue)
 
void setWord (Word aValue)
 
void setSignedWord (SignedWord aValue)
 
void setSignedLong (SLongWord aValue)
 
void setULongWord (ULongWord aValue)
 
Word word () const
 
LongWord longWord () const
 
SignedLongWord sLongWord () const
 
SignedWord signedWord () const
 
unsigned int length () const
 
Byte destinationUnit () const
 
void setDestinationUnit (Byte aDestinationUnit)
 
Byte destinationIndex () const
 
void setDestinationIndex (Byte aDestinationIndex)
 
- Public Member Functions inherited from TPEF::InstructionElement
virtual ~InstructionElement ()
 
bool isMove () const
 
bool isImmediate () const
 
bool begin () const
 
void setBegin (bool isBegin)
 
InstructionAnnotationannotation (Word index) const
 
void addAnnotation (InstructionAnnotation *anAnnotation)
 
Word annotationCount () const
 
- Public Member Functions inherited from TPEF::SectionElement
virtual ~SectionElement ()
 
- Public Member Functions inherited from TPEF::SafePointable
virtual ~SafePointable ()
 

Private Attributes

std::vector< Bytevalue_
 Value of immediate. More...
 
Byte destinationUnit_
 Destination unit of immediate. More...
 
Byte destinationIndex_
 Destination index of immediate. More...
 

Additional Inherited Members

- Protected Member Functions inherited from TPEF::InstructionElement
 InstructionElement (bool isMove)
 
- Protected Member Functions inherited from TPEF::SectionElement
 SectionElement ()
 
- Protected Member Functions inherited from TPEF::SafePointable
 SafePointable ()
 

Detailed Description

Immediate data element of CodeSection.

Definition at line 49 of file ImmediateElement.hh.

Constructor & Destructor Documentation

◆ ImmediateElement()

TPEF::ImmediateElement::ImmediateElement ( )

Constructor.

Definition at line 43 of file ImmediateElement.cc.

43  :
45 }

◆ ~ImmediateElement()

TPEF::ImmediateElement::~ImmediateElement ( )
virtual

Destructor.

Definition at line 50 of file ImmediateElement.cc.

50  {
51 }

Member Function Documentation

◆ addByte()

void TPEF::ImmediateElement::addByte ( Byte  aByte)

◆ byte()

Byte TPEF::ImmediateElement::byte ( unsigned int  index) const

◆ destinationIndex()

Byte TPEF::ImmediateElement::destinationIndex ( ) const

◆ destinationUnit()

Byte TPEF::ImmediateElement::destinationUnit ( ) const

◆ isInline()

bool TPEF::ImmediateElement::isInline ( ) const

◆ length()

unsigned int TPEF::ImmediateElement::length ( ) const

◆ longWord()

LongWord TPEF::ImmediateElement::longWord ( ) const

◆ setByte()

void TPEF::ImmediateElement::setByte ( unsigned int  index,
Byte  aValue 
)

◆ setDestinationIndex()

void TPEF::ImmediateElement::setDestinationIndex ( Byte  aDestinationIndex)

◆ setDestinationUnit()

void TPEF::ImmediateElement::setDestinationUnit ( Byte  aDestinationUnit)

◆ setSignedLong()

void TPEF::ImmediateElement::setSignedLong ( SLongWord  aValue)

◆ setSignedWord()

void TPEF::ImmediateElement::setSignedWord ( SignedWord  aValue)

◆ setULongWord()

void TPEF::ImmediateElement::setULongWord ( ULongWord  aValue)

◆ setWord()

void TPEF::ImmediateElement::setWord ( Word  aValue)

◆ signedWord()

SignedWord TPEF::ImmediateElement::signedWord ( ) const

◆ sLongWord()

SignedLongWord TPEF::ImmediateElement::sLongWord ( ) const

◆ word()

Word TPEF::ImmediateElement::word ( ) const

Member Data Documentation

◆ destinationIndex_

Byte TPEF::ImmediateElement::destinationIndex_
private

Destination index of immediate.

Definition at line 88 of file ImmediateElement.hh.

◆ destinationUnit_

Byte TPEF::ImmediateElement::destinationUnit_
private

Destination unit of immediate.

Definition at line 86 of file ImmediateElement.hh.

◆ value_

std::vector<Byte> TPEF::ImmediateElement::value_
private

Value of immediate.

Definition at line 84 of file ImmediateElement.hh.


The documentation for this class was generated from the following files:
TPEF::ImmediateElement::destinationUnit_
Byte destinationUnit_
Destination unit of immediate.
Definition: ImmediateElement.hh:86
TPEF::ImmediateElement::destinationIndex_
Byte destinationIndex_
Destination index of immediate.
Definition: ImmediateElement.hh:88
TPEF::InstructionElement::InstructionElement
InstructionElement(bool isMove)
Definition: InstructionElement.cc:76