torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::router::PathFinderHeuristic Class Reference

Provides net routing based on the Nillson graphsearch algorithm. More...

#include <PathFinderHeuristic.hpp>

+ Inheritance diagram for torc::router::PathFinderHeuristic:
+ Collaboration diagram for torc::router::PathFinderHeuristic:

Public Member Functions

 PathFinderHeuristic (DDB &inDB)
 Public Constructor. More...
 
virtual ~PathFinderHeuristic ()
 Destructor. More...
 
virtual void prioritizeNets (RouteNetVector &inNets)
 Prioritize nets for routing. More...
 
virtual void updateParameters (ParameterMap &inParameters)
 Heuristically update parameters related to the associated NetVector router. More...
 
boost::any getParameter (boost::uint32_t index)
 Get a parameter. More...
 
void setParameter (boost::uint32_t index, boost::any inParameter)
 Set a parameter. More...
 
virtual void processParameters ()
 Do something with the parameters. More...
 

Protected Attributes

DDBmDB
 Database reference. More...
 
ParameterMap mParameters
 Parameter map. More...
 

Private Types

typedef architecture::DDB DDB
 Imported type names. More...
 
typedef
architecture::TilewireVector 
TilewireVector
 
typedef boost::unordered_map
< boost::uint32_t, boost::any > 
ParameterMap
 

Detailed Description

Provides net routing based on the Nillson graphsearch algorithm.

The router can either return a vector of nodes or directly populate DDB usage.

Definition at line 33 of file PathFinderHeuristic.hpp.

Member Typedef Documentation

Imported type names.

Definition at line 36 of file PathFinderHeuristic.hpp.

typedef boost::unordered_map<boost::uint32_t, boost::any> torc::router::PathFinderHeuristic::ParameterMap
private

Definition at line 39 of file PathFinderHeuristic.hpp.

Constructor & Destructor Documentation

torc::router::PathFinderHeuristic::PathFinderHeuristic ( DDB inDB)
inline

Public Constructor.

Definition at line 47 of file PathFinderHeuristic.hpp.

virtual torc::router::PathFinderHeuristic::~PathFinderHeuristic ( )
inlinevirtual

Destructor.

Definition at line 49 of file PathFinderHeuristic.hpp.

49 {}

Member Function Documentation

boost::any torc::router::RouterHeuristicBase::getParameter ( boost::uint32_t  index)
inlineinherited

Get a parameter.

Definition at line 52 of file RouterHeuristicBase.hpp.

52  {
53  ParameterMap::iterator p = mParameters.find(index);
54  if (p != mParameters.end()) {
55  return p->second;
56  }
57  return boost::any();
58  }
ParameterMap mParameters
Parameter map.

+ Here is the caller graph for this function:

virtual void torc::router::PathFinderHeuristic::prioritizeNets ( RouteNetVector inNets)
inlinevirtual

Prioritize nets for routing.

Reimplemented from torc::router::NetVectorRouterHeuristicBase.

Definition at line 52 of file PathFinderHeuristic.hpp.

52 {}
virtual void torc::router::RouterHeuristicBase::processParameters ( )
inlinevirtualinherited

Do something with the parameters.

Reimplemented in torc::router::PathFinderNetRouterHeuristic.

Definition at line 64 of file RouterHeuristicBase.hpp.

64 {}

+ Here is the caller graph for this function:

void torc::router::RouterHeuristicBase::setParameter ( boost::uint32_t  index,
boost::any  inParameter 
)
inlineinherited

Set a parameter.

Definition at line 60 of file RouterHeuristicBase.hpp.

60  {
61  mParameters[index] = inParameter;
62  }
ParameterMap mParameters
Parameter map.

+ Here is the caller graph for this function:

virtual void torc::router::PathFinderHeuristic::updateParameters ( ParameterMap inParameters)
inlinevirtual

Heuristically update parameters related to the associated NetVector router.

Reimplemented from torc::router::NetVectorRouterHeuristicBase.

Definition at line 54 of file PathFinderHeuristic.hpp.

54 {}

Field Documentation

DDB& torc::router::RouterHeuristicBase::mDB
protectedinherited

Database reference.

Definition at line 40 of file RouterHeuristicBase.hpp.

ParameterMap torc::router::RouterHeuristicBase::mParameters
protectedinherited

Parameter map.

Definition at line 42 of file RouterHeuristicBase.hpp.


The documentation for this class was generated from the following file: