torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NetVectorRouterHeuristicBase.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 the NetVectorRouterHeuristicBase class.
18 
19 #ifndef TORC_ROUTER_NETVECTORROUTERHEURISTICBASE_HPP
20 #define TORC_ROUTER_NETVECTORROUTERHEURISTICBASE_HPP
21 
23 #include "torc/router/RouteNet.hpp"
24 
25 namespace torc {
26 namespace router {
27 
28  /// \brief Provides net routing based on the Nillson graphsearch algorithm.
29  /// \details The router can either return a vector of nodes or directly populate DDB usage.
31  // types
32  /// \brief Imported type names
34  typedef boost::unordered_map<boost::uint32_t, boost::any> ParameterMap;
35 
36  public:
37  // constructor
38  /// \brief Public Constructor
40  /// \brief Destructor.
42 
43  /// \brief Prioritize nets for routing.
44  virtual void prioritizeNets(RouteNetVector& inNets) {}
45  /// \brief Heuristically update parameters related to the associated NetVector router.
46  virtual void updateParameters(ParameterMap& inParameters) {}
47 
48  }; // class HeuristicBase
49 
50 
51 } // namespace router
52 } // namespace torc
53 
54 #endif // TORC_ROUTER_NETVECTORROUTERHEURISTICBASE_HPP
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
std::vector< RouteNet > RouteNetVector
Vector of RouteNet objects.
Definition: RouteNet.hpp:205
Provides net routing based on the Nillson graphsearch algorithm.
boost::unordered_map< boost::uint32_t, boost::any > ParameterMap
Provides the interface for net routers.
virtual void updateParameters(ParameterMap &inParameters)
Heuristically update parameters related to the associated NetVector router.
virtual void prioritizeNets(RouteNetVector &inNets)
Prioritize nets for routing.
Header for the HeuristicBase class.
Header for the Net class.