Go to the source code of this file.
#define CREATE_PRBLM |
( |
|
problemClass, |
|
|
|
adapterClass |
|
) |
| |
Value:adapterClass * pCast = dynamic_cast<adapterClass *> \
(adapterFactory->getMainAdapter()); \
if(!pCast) { throw std::logic_error( \
"ProblemFactory adapter dynamic_cast failed for problem name " \
+ problem_name + " and adapterClass " + #adapterClass ); } \
problem = rcp(new problemClass<adapterClass>(pCast, params));
#define MAKE_PARTITION_PROBLEM |
( |
|
adapterClass | ) |
CREATE_PRBLM(PartitioningProblem, adapterClass); |
#define MAKE_ORDERING_PROBLEM |
( |
|
adapterClass | ) |
CREATE_PRBLM(OrderingProblem, adapterClass); |