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

#include <BasicElement.hh>

Inheritance diagram for TPEF::BasicElement:
Inheritance graph
Collaboration diagram for TPEF::BasicElement:
Collaboration graph

Public Member Functions

 BasicElement ()
 
virtual ~BasicElement ()
 
void addByte (const Byte &data)
 
Byte byte (Word index) const
 
Word length () const
 
- Public Member Functions inherited from TPEF::SectionElement
virtual ~SectionElement ()
 
- Public Member Functions inherited from TPEF::SafePointable
virtual ~SafePointable ()
 

Private Attributes

std::vector< Bytebytes_
 Storage of bytes that element contains. More...
 

Additional Inherited Members

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

Detailed Description

Basic element type.

Allows representing data of any element which doesn't have own class for representing it. Can contain any number of bytes inside.

Definition at line 51 of file BasicElement.hh.

Constructor & Destructor Documentation

◆ BasicElement()

TPEF::BasicElement::BasicElement ( )

Constructor.

Definition at line 41 of file BasicElement.cc.

41  : SectionElement() {
42 }

◆ ~BasicElement()

TPEF::BasicElement::~BasicElement ( )
virtual

Destructor.

Definition at line 47 of file BasicElement.cc.

47  {
48 }

Member Function Documentation

◆ addByte()

void TPEF::BasicElement::addByte ( const Byte data)

◆ byte()

Byte TPEF::BasicElement::byte ( Word  index) const

◆ length()

Word TPEF::BasicElement::length ( ) const

Member Data Documentation

◆ bytes_

std::vector<Byte> TPEF::BasicElement::bytes_
private

Storage of bytes that element contains.

Definition at line 64 of file BasicElement.hh.


The documentation for this class was generated from the following files:
TPEF::SectionElement::SectionElement
SectionElement()
Definition: SectionElement.cc:41