OpenASIP  2.0
LineNumProcedure.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file LineNumProcedure.hh
26  *
27  * Declaration of LineNumProcedure class.
28  *
29  * @author Mikael Lepistö 2003 (tmlepist-no.spam-cs.tut.fi)
30  *
31  * @note rating: yellow
32  */
33 
34 #ifndef TTA_LINE_NUM_PROCEDURE_HH
35 #define TTA_LINE_NUM_PROCEDURE_HH
36 
37 #include <vector>
38 
39 #include "TPEFBaseType.hh"
40 #include "SectionElement.hh"
41 #include "SafePointer.hh"
42 #include "SymbolElement.hh"
43 #include "LineNumElement.hh"
44 
45 namespace TPEF {
46 
47 /**
48  * Procedure entry for line number section.
49  *
50  * Class represents one procedure and contains all line
51  * number elements for procedure.
52  */
54 public:
56  virtual ~LineNumProcedure();
57 
58  void addLine(const LineNumElement* elem);
59  const LineNumElement* line(HalfWord index) const;
60 
61  HalfWord lineCount() const;
62 
66 
67 private:
68  /// Symbol element of procedure.
70 
71  /// Contains LineNumElements of procedure.
72  std::vector<const LineNumElement*> lines_;
73 };
74 }
75 
76 #include "LineNumProcedure.icc"
77 
78 #endif
TPEF::LineNumProcedure::setProcedureSymbol
void setProcedureSymbol(const ReferenceManager::SafePointer *aRef)
TPEF::LineNumProcedure::symbol_
const ReferenceManager::SafePointer * symbol_
Symbol element of procedure.
Definition: LineNumProcedure.hh:69
TPEF::LineNumProcedure::LineNumProcedure
LineNumProcedure()
Definition: LineNumProcedure.cc:43
TPEF::LineNumProcedure::line
const LineNumElement * line(HalfWord index) const
SafePointer.hh
TPEF::LineNumProcedure::~LineNumProcedure
virtual ~LineNumProcedure()
Definition: LineNumProcedure.cc:52
LineNumElement.hh
TPEF::LineNumProcedure::addLine
void addLine(const LineNumElement *elem)
TPEF::LineNumElement
Definition: LineNumElement.hh:48
TPEF::LineNumProcedure::lines_
std::vector< const LineNumElement * > lines_
Contains LineNumElements of procedure.
Definition: LineNumProcedure.hh:72
TPEF::ReferenceManager::SafePointer
Definition: SafePointer.hh:188
TPEF::SectionElement
Definition: SectionElement.hh:44
TPEF::SymbolElement
Definition: SymbolElement.hh:52
LineNumProcedure.icc
TPEF::LineNumProcedure::procedureSymbol
SymbolElement * procedureSymbol() const
SectionElement.hh
SymbolElement.hh
TPEF::LineNumProcedure::lineCount
HalfWord lineCount() const
TPEF::LineNumProcedure
Definition: LineNumProcedure.hh:53
TPEFBaseType.hh
TPEF
Definition: Assembler.hh:43