OpenASIP  2.0
ProximEditPolicyFactory.cc
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 ProximEditPolicyFactory.cc
26  *
27  * Implementation of ProximEditPolicyFactory class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
34 #include "ProximRFEditPolicy.hh"
35 #include "ProximFUEditPolicy.hh"
36 #include "ProximIUEditPolicy.hh"
38 #include "ProximPortEditPolicy.hh"
39 #include "ProximBusEditPolicy.hh"
40 
41 /**
42  * The Constructor
43  */
46 }
47 
48 /**
49  * The Destructor.
50  */
52 }
53 
54 /**
55  * Creates edit policy for register files.
56  */
59  return new ProximRFEditPolicy();
60 }
61 
62 /**
63  * Creates edit policy for function units.
64  */
67  return new ProximFUEditPolicy();
68 }
69 
70 /**
71  * Creates edit policy for immediate units.
72  */
75  return new ProximIUEditPolicy();
76 }
77 
78 /**
79  * Creates edit policy for control units.
80  */
83  return new ProximFUEditPolicy();
84 }
85 
86 
87 /**
88  * Creates edit policy for sockets.
89  */
92  return new ProximSocketEditPolicy();
93 }
94 
95 /**
96  * Creates edit policy for ports.
97  */
100  return new ProximPortEditPolicy();
101 }
102 
103 
104 /**
105  * Creates edit policy for buses.
106  */
107 EditPolicy*
109  return new ProximBusEditPolicy();
110 }
111 
112 
113 
114 /**
115  * Creates edit policy for bus segments.
116  */
117 EditPolicy*
119  return new ProximBusEditPolicy();
120 }
121 
EditPolicyFactory
Definition: EditPolicyFactory.hh:46
ProximRFEditPolicy.hh
ProximIUEditPolicy.hh
ProximEditPolicyFactory::createFUEditPolicy
virtual EditPolicy * createFUEditPolicy()
Definition: ProximEditPolicyFactory.cc:66
ProximBusEditPolicy
Definition: ProximBusEditPolicy.hh:41
ProximEditPolicyFactory::~ProximEditPolicyFactory
virtual ~ProximEditPolicyFactory()
Definition: ProximEditPolicyFactory.cc:51
ProximRFEditPolicy
Definition: ProximRFEditPolicy.hh:41
ProximIUEditPolicy
Definition: ProximIUEditPolicy.hh:41
ProximEditPolicyFactory::createGCUEditPolicy
virtual EditPolicy * createGCUEditPolicy()
Definition: ProximEditPolicyFactory.cc:82
ProximEditPolicyFactory::createPortEditPolicy
virtual EditPolicy * createPortEditPolicy()
Definition: ProximEditPolicyFactory.cc:99
ProximEditPolicyFactory::ProximEditPolicyFactory
ProximEditPolicyFactory()
Definition: ProximEditPolicyFactory.cc:44
ProximFUEditPolicy.hh
ProximFUEditPolicy
Definition: ProximFUEditPolicy.hh:41
ProximEditPolicyFactory::createSocketEditPolicy
virtual EditPolicy * createSocketEditPolicy()
Definition: ProximEditPolicyFactory.cc:91
EditPolicy
Definition: EditPolicy.hh:47
ProximEditPolicyFactory::createIUEditPolicy
virtual EditPolicy * createIUEditPolicy()
Definition: ProximEditPolicyFactory.cc:74
ProximEditPolicyFactory::createBusEditPolicy
virtual EditPolicy * createBusEditPolicy()
Definition: ProximEditPolicyFactory.cc:108
ProximPortEditPolicy.hh
ProximPortEditPolicy
Definition: ProximPortEditPolicy.hh:41
ProximBusEditPolicy.hh
ProximEditPolicyFactory.hh
ProximEditPolicyFactory::createRFEditPolicy
virtual EditPolicy * createRFEditPolicy()
Definition: ProximEditPolicyFactory.cc:58
ProximSocketEditPolicy
Definition: ProximSocketEditPolicy.hh:41
ProximEditPolicyFactory::createSegmentEditPolicy
virtual EditPolicy * createSegmentEditPolicy()
Definition: ProximEditPolicyFactory.cc:118
ProximSocketEditPolicy.hh