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

Provides the interface for net routers. More...

#include <RouterHeuristicBase.hpp>

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

Public Member Functions

 RouterHeuristicBase (DDB &inDB)
 Public Constructor. More...
 
virtual ~RouterHeuristicBase ()
 Destructor. 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 boost::unordered_map
< boost::uint32_t, boost::any > 
ParameterMap
 

Detailed Description

Provides the interface for net routers.

Definition at line 31 of file RouterHeuristicBase.hpp.

Member Typedef Documentation

Imported type names.

Definition at line 34 of file RouterHeuristicBase.hpp.

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

Definition at line 35 of file RouterHeuristicBase.hpp.

Constructor & Destructor Documentation

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

Public Constructor.

Definition at line 47 of file RouterHeuristicBase.hpp.

47 : mDB(inDB) {}
virtual torc::router::RouterHeuristicBase::~RouterHeuristicBase ( )
inlinevirtual

Destructor.

Definition at line 49 of file RouterHeuristicBase.hpp.

49 {}

Member Function Documentation

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

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::RouterHeuristicBase::processParameters ( )
inlinevirtual

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 
)
inline

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:

Field Documentation

DDB& torc::router::RouterHeuristicBase::mDB
protected

Database reference.

Definition at line 40 of file RouterHeuristicBase.hpp.

ParameterMap torc::router::RouterHeuristicBase::mParameters
protected

Parameter map.

Definition at line 42 of file RouterHeuristicBase.hpp.


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