NC::Fitter::ICallableInt Class Reference

Interface to a function on integers in many dimensions. More...

#include <NCFitterTypes.h>

Inheritance diagram for NC::Fitter::ICallableInt:
NC::Fitter::Discretizer NC::Fitter::FixVarsInt NC::Fitter::FuncCacheInt NC::Fitter::MarginalizeSimpleInt NC::Fitter::PenalizerInt

List of all members.

Public Member Functions

 ICallableInt ()
virtual ~ICallableInt ()
virtual double EvalAtEx (const CoordInt &r, CoordInt *ret) const
virtual double EvalAt (const CoordInt &r) const

Private Attributes

bool fForwarded

Detailed Description

Interface to a function on integers in many dimensions.

Refer to ICallableND for documentation

See also:

Definition at line 105 of file NCFitterTypes.h.

Constructor & Destructor Documentation

NC::Fitter::ICallableInt::ICallableInt (  )  [inline]

Definition at line 108 of file NCFitterTypes.h.

00108 : fForwarded(false){}

virtual NC::Fitter::ICallableInt::~ICallableInt (  )  [inline, virtual]

Definition at line 109 of file NCFitterTypes.h.

00109 {} // shut gcc up

Member Function Documentation

double NC::Fitter::ICallableInt::EvalAt ( const CoordInt r  )  const [virtual]

Reimplemented in NC::Fitter::Discretizer, NC::Fitter::PenalizerInt, and NC::Fitter::FixVarsInt.

Definition at line 56 of file NCFitterTypes.cxx.

References EvalAtEx().

Referenced by NC::Fitter::PenalizerInt::EvalAt(), NC::Fitter::FixVarsInt::EvalAt(), and EvalAtEx().

00057   {
00058     return this->EvalAtEx(r, 0);
00059   }

double NC::Fitter::ICallableInt::EvalAtEx ( const CoordInt r,
CoordInt ret 
) const [virtual]

Reimplemented in NC::Fitter::FuncCacheInt, and NC::Fitter::MarginalizeSimpleInt.

Definition at line 45 of file NCFitterTypes.cxx.

References EvalAt(), and fForwarded.

Referenced by EvalAt(), and NC::Fitter::FuncCacheInt::EvalAtEx().

00046   {
00047     assert(!fForwarded && "Trapped in EvalAt(Ex) loop. You must override one of these...");
00048     fForwarded = true;
00049     const double rv = this->EvalAt(r);
00050     fForwarded = false;
00051     if(ret) ret->clear();
00052     return rv;
00053   }

Member Data Documentation

bool NC::Fitter::ICallableInt::fForwarded [mutable, private]

Definition at line 116 of file NCFitterTypes.h.

Referenced by EvalAtEx().

The documentation for this class was generated from the following files:

Generated on 21 Mar 2018 for loon by  doxygen 1.6.1