OpenASIP  2.0
TerminalAddress.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 TerminalAddress.hh
26  *
27  * Declaration of TerminalAddress class.
28  *
29  * @author Ari Metsähalme 2005 (ari.metsahalme-no.spam-tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_TERMINAL_ADDRESS_HH
34 #define TTA_TERMINAL_ADDRESS_HH
35 
36 #include "TerminalImmediate.hh"
37 #include "Address.hh"
38 
39 namespace TTAMachine {
40  class AddressSpace;
41 }
42 
43 namespace TTAProgram {
44 
45 /**
46  * Represents an inline immediate that refers to a data address.
47  */
49 public:
51  virtual ~TerminalAddress();
52 
53  virtual bool isAddress() const;
54  virtual Address address() const;
55  virtual Terminal* copy() const;
56  virtual bool equals(const Terminal& other) const;
57 private:
58  /// Assignment not allowed.
60  /// Address space of the address.
62 };
63 
64 }
65 
66 #endif
TTAProgram
Definition: Estimator.hh:65
TTAProgram::Address
Definition: Address.hh:51
TTAMachine::AddressSpace
Definition: AddressSpace.hh:51
TTAProgram::TerminalAddress::operator=
TerminalAddress & operator=(const TerminalAddress &)
Assignment not allowed.
SimValue
Definition: SimValue.hh:96
TTAProgram::TerminalImmediate::value
virtual SimValue value() const
Definition: TerminalImmediate.cc:75
TTAProgram::TerminalAddress::isAddress
virtual bool isAddress() const
Definition: TerminalAddress.cc:66
TTAProgram::TerminalAddress::space_
const TTAMachine::AddressSpace & space_
Address space of the address.
Definition: TerminalAddress.hh:61
TTAProgram::TerminalAddress
Definition: TerminalAddress.hh:48
TTAProgram::TerminalAddress::~TerminalAddress
virtual ~TerminalAddress()
Definition: TerminalAddress.cc:56
TTAProgram::TerminalAddress::copy
virtual Terminal * copy() const
Definition: TerminalAddress.cc:87
TTAProgram::TerminalImmediate
Definition: TerminalImmediate.hh:44
TTAProgram::TerminalAddress::address
virtual Address address() const
Definition: TerminalAddress.cc:77
TerminalImmediate.hh
Address.hh
TTAProgram::Terminal
Definition: Terminal.hh:60
TTAProgram::TerminalAddress::TerminalAddress
TerminalAddress(SimValue value, const TTAMachine::AddressSpace &space)
Definition: TerminalAddress.cc:47
TTAMachine
Definition: Assembler.hh:48
TTAProgram::TerminalAddress::equals
virtual bool equals(const Terminal &other) const
Definition: TerminalAddress.cc:98