torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PlacerHelpers.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 /// \file
17 /// \brief Header for Placer helper functions.
18 
19 #ifndef TORC_PLACER_PLACERHELPERS_HPP
20 #define TORC_PLACER_PLACERHELPERS_HPP
21 
25 
26 namespace torc {
27 namespace placer {
28 
29 void setInstanceTypeIndex(physical::InstanceSharedPtr inInstance, boost::uint32_t inType);
30 
31 boost::uint32_t getInstanceTypeIndex(physical::InstanceSharedPtr inInstance);
32 
34  const architecture::Site* inSite);
35 
36 
37 const architecture::Site* getInstanceSitePtr(physical::InstanceSharedPtr inInstance);
38 
39 } // namespace placer
40 } // namespace torc
41 
42 #endif // TORC_PLACER_PLACERHELPERS_HPP
Header for the Instance class.
Header for the Sites class.
Header for the Annotated class.
void setInstanceSitePtr(physical::InstanceSharedPtr inInstance, const architecture::Site *inSite)
const architecture::Site * getInstanceSitePtr(physical::InstanceSharedPtr inInstance)
boost::shared_ptr< Instance > InstanceSharedPtr
Shared pointer encapsulation of an Instance.
void setInstanceTypeIndex(physical::InstanceSharedPtr inInstance, boost::uint32_t inType)
boost::uint32_t getInstanceTypeIndex(physical::InstanceSharedPtr inInstance)