Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Macros
Zoltan2_ProblemFactory.hpp File Reference
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_Problem.hpp>
#include <Zoltan2_PartitioningProblem.hpp>
#include <Zoltan2_OrderingProblem.hpp>
#include <Zoltan2_ColoringProblem.hpp>
#include <Zoltan2_Typedefs.hpp>
Include dependency graph for Zoltan2_ProblemFactory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Zoltan2_TestingFramework::ProblemFactory
 ProblemFactory class contains 1 static factory method. More...
 

Namespaces

 Zoltan2_TestingFramework
 

Macros

#define CREATE_PRBLM(problemClass, adapterClass)
 
#define MAKE_PARTITION_PROBLEM(adapterClass)   CREATE_PRBLM(PartitioningProblem, adapterClass);
 
#define MAKE_ORDERING_PROBLEM(adapterClass)   CREATE_PRBLM(OrderingProblem, adapterClass);
 

Macro Definition Documentation

#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);