CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros
vPenalty.hh File Reference

Declaration of class vPenalty. More...

#include "gVariables.hh"
#include "oImageDimensionsAndQuantification.hh"

Go to the source code of this file.

Classes

class  vPenalty
 This class is designed to generically described any penalty applied to MAP algorithms. More...
 

Macros

#define FUNCTION_PENALTY(CLASS)   static vPenalty *make_penalty() { return new CLASS(); };
 
#define CLASS_PENALTY(NAME, CLASS)
 

Detailed Description

Declaration of class vPenalty.

Definition in file vPenalty.hh.

Macro Definition Documentation

#define CLASS_PENALTY (   NAME,
  CLASS 
)
Value:
class NAME##PenaltyCreator \
{ \
public: \
NAME##PenaltyCreator() \
{ sAddonManager::GetInstance()->mp_listOfPenalties[#NAME] = CLASS::make_penalty; } \
}; \
static NAME##PenaltyCreator PenaltyCreator##NAME;
static sAddonManager * GetInstance()
std::map< string, maker_penalty > mp_listOfPenalties

Definition at line 123 of file vPenalty.hh.

#define FUNCTION_PENALTY (   CLASS)    static vPenalty *make_penalty() { return new CLASS(); };

Definition at line 119 of file vPenalty.hh.