CASToR  1.0
Tomographic Reconstruction (PET/SPECT)
Classes | Defines
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...

Defines

#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.


Define 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;

Definition at line 100 of file vPenalty.hh.

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

Definition at line 96 of file vPenalty.hh.

 All Classes Files Functions Variables Typedefs Defines