bpp-core3  3.0.0
bpp::ParameterListener Class Referenceabstract

The parameter listener interface. More...

#include <Bpp/Numeric/Parameter.h>

+ Inheritance diagram for bpp::ParameterListener:
+ Collaboration diagram for bpp::ParameterListener:

Public Member Functions

ParameterListenerclone () const =0
 Create a copy of this object and send a pointer to it. More...
 
virtual const std::string & getId () const =0
 
virtual void parameterNameChanged (ParameterEvent &event)=0
 Notify a renaming action. More...
 
virtual void parameterValueChanged (ParameterEvent &event)=0
 Notify a value change. More...
 
virtual void parameterConstraintChanged (ParameterEvent &event)=0
 Notify a constraint change. More...
 

Detailed Description

The parameter listener interface.

Imlementing this interface allows to catch events associated to parameters modifications. Listeners must have an identifier that will be used to pinpoint it when attached to a list. This identifier needs not be unique though, but listeners with identical id will be undistinguishable.

Definition at line 89 of file Parameter.h.

Member Function Documentation

◆ clone()

ParameterListener* bpp::ParameterListener::clone ( ) const
pure virtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Implemented in bpp::AliasParameterListener.

◆ getId()

virtual const std::string& bpp::ParameterListener::getId ( ) const
pure virtual
Returns
The identifier of this listener.

Implemented in bpp::AliasParameterListener.

◆ parameterConstraintChanged()

virtual void bpp::ParameterListener::parameterConstraintChanged ( ParameterEvent event)
pure virtual

Notify a constraint change.

Parameters
eventEvent associated to the acion.

Implemented in bpp::AliasParameterListener.

◆ parameterNameChanged()

virtual void bpp::ParameterListener::parameterNameChanged ( ParameterEvent event)
pure virtual

Notify a renaming action.

Parameters
eventEvent associated to the acion.

Implemented in bpp::AliasParameterListener.

◆ parameterValueChanged()

virtual void bpp::ParameterListener::parameterValueChanged ( ParameterEvent event)
pure virtual

Notify a value change.

Parameters
eventEvent associated to the acion.

Implemented in bpp::AliasParameterListener.


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