bpp-phyl3  3.0.0
bpp::NaNListener Class Reference

A listener which capture NaN function values and throw an exception in case this happens. More...

#include <Bpp/Phyl/OptimizationTools.h>

+ Inheritance diagram for bpp::NaNListener:
+ Collaboration diagram for bpp::NaNListener:

Public Member Functions

 NaNListener (OptimizerInterface *optimizer, FunctionInterface *function)
 
 NaNListener (const NaNListener &lr)
 
NaNListeneroperator= (const NaNListener &lr)
 
void optimizationInitializationPerformed (const OptimizationEvent &event)
 
void optimizationStepPerformed (const OptimizationEvent &event)
 
bool listenerModifiesParameters () const
 

Private Attributes

OptimizerInterfaceoptimizer_
 
FunctionInterfacefunction_
 

Detailed Description

A listener which capture NaN function values and throw an exception in case this happens.

Definition at line 22 of file OptimizationTools.h.

Constructor & Destructor Documentation

◆ NaNListener() [1/2]

bpp::NaNListener::NaNListener ( OptimizerInterface optimizer,
FunctionInterface function 
)
inline

Definition at line 29 of file OptimizationTools.h.

◆ NaNListener() [2/2]

bpp::NaNListener::NaNListener ( const NaNListener lr)
inline

Definition at line 31 of file OptimizationTools.h.

Member Function Documentation

◆ listenerModifiesParameters()

bool bpp::NaNListener::listenerModifiesParameters ( ) const
inlinevirtual

Implements bpp::OptimizationListener.

Definition at line 54 of file OptimizationTools.h.

◆ operator=()

NaNListener& bpp::NaNListener::operator= ( const NaNListener lr)
inline

Definition at line 36 of file OptimizationTools.h.

References function_, and optimizer_.

◆ optimizationInitializationPerformed()

void bpp::NaNListener::optimizationInitializationPerformed ( const OptimizationEvent event)
inlinevirtual

Implements bpp::OptimizationListener.

Definition at line 44 of file OptimizationTools.h.

◆ optimizationStepPerformed()

void bpp::NaNListener::optimizationStepPerformed ( const OptimizationEvent event)
inlinevirtual

Member Data Documentation

◆ function_

FunctionInterface* bpp::NaNListener::function_
private

Definition at line 26 of file OptimizationTools.h.

Referenced by operator=(), and optimizationStepPerformed().

◆ optimizer_

OptimizerInterface* bpp::NaNListener::optimizer_
private

Definition at line 25 of file OptimizationTools.h.

Referenced by operator=(), and optimizationStepPerformed().


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