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

#include <LineNumProcedure.hh>

Inheritance diagram for TPEF::LineNumProcedure:
Inheritance graph
Collaboration diagram for TPEF::LineNumProcedure:
Collaboration graph

Public Member Functions

 LineNumProcedure ()
 
virtual ~LineNumProcedure ()
 
void addLine (const LineNumElement *elem)
 
const LineNumElementline (HalfWord index) const
 
HalfWord lineCount () const
 
void setProcedureSymbol (const ReferenceManager::SafePointer *aRef)
 
void setProcedureSymbol (SymbolElement *aRef)
 
SymbolElementprocedureSymbol () const
 
- Public Member Functions inherited from TPEF::SectionElement
virtual ~SectionElement ()
 
- Public Member Functions inherited from TPEF::SafePointable
virtual ~SafePointable ()
 

Private Attributes

const ReferenceManager::SafePointersymbol_
 Symbol element of procedure. More...
 
std::vector< const LineNumElement * > lines_
 Contains LineNumElements of procedure. More...
 

Additional Inherited Members

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

Detailed Description

Procedure entry for line number section.

Class represents one procedure and contains all line number elements for procedure.

Definition at line 53 of file LineNumProcedure.hh.

Constructor & Destructor Documentation

◆ LineNumProcedure()

TPEF::LineNumProcedure::LineNumProcedure ( )

Constructor.

Definition at line 43 of file LineNumProcedure.cc.

43  : SectionElement(),
45 }

◆ ~LineNumProcedure()

TPEF::LineNumProcedure::~LineNumProcedure ( )
virtual

Destructor.

Deletes all line numbers inside procedure.

Definition at line 52 of file LineNumProcedure.cc.

52  {
53  for (HalfWord i = 0; i < lines_.size(); i++) {
54  delete lines_[i];
55  lines_[i] = NULL;
56  }
57  lines_.clear();
58 }

References lines_.

Member Function Documentation

◆ addLine()

void TPEF::LineNumProcedure::addLine ( const LineNumElement elem)

◆ line()

const LineNumElement* TPEF::LineNumProcedure::line ( HalfWord  index) const

◆ lineCount()

HalfWord TPEF::LineNumProcedure::lineCount ( ) const

◆ procedureSymbol()

SymbolElement* TPEF::LineNumProcedure::procedureSymbol ( ) const

◆ setProcedureSymbol() [1/2]

void TPEF::LineNumProcedure::setProcedureSymbol ( const ReferenceManager::SafePointer aRef)

◆ setProcedureSymbol() [2/2]

void TPEF::LineNumProcedure::setProcedureSymbol ( SymbolElement aRef)

Member Data Documentation

◆ lines_

std::vector<const LineNumElement*> TPEF::LineNumProcedure::lines_
private

Contains LineNumElements of procedure.

Definition at line 72 of file LineNumProcedure.hh.

Referenced by ~LineNumProcedure().

◆ symbol_

const ReferenceManager::SafePointer* TPEF::LineNumProcedure::symbol_
private

Symbol element of procedure.

Definition at line 69 of file LineNumProcedure.hh.


The documentation for this class was generated from the following files:
TPEF::SectionElement::SectionElement
SectionElement()
Definition: SectionElement.cc:41
TPEF::LineNumProcedure::symbol_
const ReferenceManager::SafePointer * symbol_
Symbol element of procedure.
Definition: LineNumProcedure.hh:69
TPEF::ReferenceManager::SafePointer::null
static const SafePointer null
The default SafePointer that is used in null references.
Definition: SafePointer.hh:229
TPEF::LineNumProcedure::lines_
std::vector< const LineNumElement * > lines_
Contains LineNumElements of procedure.
Definition: LineNumProcedure.hh:72