Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Macros
Zoltan2_EvaluateFactory.hpp File Reference

Returns a pointer to new test classes. Is not responsible for memory management! More...

#include <Zoltan2_Typedefs.hpp>
#include <Zoltan2_EvaluatePartition.hpp>
#include <Zoltan2_EvaluateOrdering.hpp>
#include <Zoltan2_OrderingProblem.hpp>
#include <Zoltan2_ProblemFactory.hpp>
Include dependency graph for Zoltan2_EvaluateFactory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 Zoltan2_TestingFramework
 

Macros

#define PARTITIONING_PROBLEM(adapterClass)
 
#define EVALUATE_PARTITION(adapterClass)
 
#define ORDERING_PROBLEM(adapterClass)
 
#define LOCAL_ORDERING(adapterClass)
 
#define GLOBAL_ORDERING(adapterClass)
 

Detailed Description

Returns a pointer to new test classes. Is not responsible for memory management!

Definition in file Zoltan2_EvaluateFactory.hpp.

Macro Definition Documentation

#define PARTITIONING_PROBLEM (   adapterClass)
Value:
rcp_dynamic_cast< \
PartitioningProblem<adapterClass>> (problemFactory->getProblem())
#define EVALUATE_PARTITION (   adapterClass)
Value:
const adapterClass * pAdapterClassUpCast = dynamic_cast< \
const adapterClass *>(adapterFactory->getMainAdapter()); \
if(!pAdapterClassUpCast) throw std::logic_error( \
"Bad adapter class cast!" ); \
evaluate = rcp(new EvaluatePartition<adapterClass>( \
pAdapterClassUpCast, params, \
problemFactory->getProblem()->getComm(), \
(&PARTITIONING_PROBLEM(adapterClass)->getSolution())));
#define PARTITIONING_PROBLEM(adapterClass)
A class that computes and returns quality metrics.
#define ORDERING_PROBLEM (   adapterClass)
Value:
rcp_dynamic_cast< \
OrderingProblem<adapterClass>> (problemFactory->getProblem())
#define LOCAL_ORDERING (   adapterClass)
Value:
const adapterClass * pAdapterClassUpCast = dynamic_cast< \
const adapterClass *>(adapterFactory->getMainAdapter()); \
if(!pAdapterClassUpCast) throw std::logic_error( \
"Bad adapter class cast!"); \
evaluate = rcp(new EvaluateLocalOrdering<adapterClass>( \
pAdapterClassUpCast, params, \
problemFactory->getProblem()->getComm(), \
LocalOrderingSolution< zlno_t > * getLocalOrderingSolution(RCP< ProblemFactory > problemFactory)
#define ORDERING_PROBLEM(adapterClass)
#define GLOBAL_ORDERING (   adapterClass)
Value:
const adapterClass * pAdapterClassUpCast = dynamic_cast< \
const adapterClass *>(adapterFactory->getMainAdapter()); \
if(!pAdapterClassUpCast) throw std::logic_error( \
"Bad adapter class cast!" ); \
evaluate = rcp(new EvaluateGlobalOrdering<adapterClass>( \
pAdapterClassUpCast, \
params, ORDERING_PROBLEM(adapterClass)->getComm(), \
ORDERING_PROBLEM(adapterClass)->getGlobalOrderingSolution()));
#define ORDERING_PROBLEM(adapterClass)