Public Types | Public Member Functions | List of all members
ParFormula Class Referenceabstract

#include <ParFormula.h>

Inheritance diagram for ParFormula:
RootParFormula

Public Types

using Value = double
 
using Values = std::vector< Value >
 
using Index = unsigned int
 
using Name = std::string
 
using Names = std::vector< Name >
 

Public Member Functions

virtual ~ParFormula ()
 
virtual Name name () const
 
virtual Name formulaString () const =0
 
virtual Index nvar () const =0
 
virtual Index npar () const
 
virtual Names pars () const =0
 
virtual Names setPars () const =0
 
virtual Names unsetPars () const =0
 
virtual Names resetPars () const =0
 
virtual bool isPar (Name parnam) const =0
 
virtual bool ready () const
 
virtual Value defaultEval () const
 
virtual double eval (const Values &vars) const =0
 
virtual double eval (Value var) const =0
 
virtual double eval () const =0
 
virtual int setParValue (Name parnam, Value parval)=0
 
virtual int setDefaultEval (Value val)
 
virtual int unsetParValues ()=0
 

Detailed Description

Definition at line 16 of file ParFormula.h.

Member Typedef Documentation

using ParFormula::Index = unsigned int

Definition at line 22 of file ParFormula.h.

Definition at line 23 of file ParFormula.h.

Definition at line 24 of file ParFormula.h.

using ParFormula::Value = double

Definition at line 20 of file ParFormula.h.

Definition at line 21 of file ParFormula.h.

Constructor & Destructor Documentation

virtual ParFormula::~ParFormula ( )
inlinevirtual

Definition at line 29 of file ParFormula.h.

29 { }

Member Function Documentation

virtual Value ParFormula::defaultEval ( ) const
inlinevirtual

Reimplemented in RootParFormula.

Definition at line 59 of file ParFormula.h.

59 { return 0.0; }
virtual double ParFormula::eval ( const Values vars) const
pure virtual

Implemented in RootParFormula.

virtual double ParFormula::eval ( Value  var) const
pure virtual

Implemented in RootParFormula.

virtual double ParFormula::eval ( ) const
pure virtual

Implemented in RootParFormula.

virtual Name ParFormula::formulaString ( ) const
pure virtual

Implemented in RootParFormula.

virtual bool ParFormula::isPar ( Name  parnam) const
pure virtual

Implemented in RootParFormula.

virtual Name ParFormula::name ( ) const
inlinevirtual

Reimplemented in RootParFormula.

Definition at line 32 of file ParFormula.h.

32 { return ""; }
virtual Index ParFormula::npar ( ) const
inlinevirtual

Reimplemented in RootParFormula.

Definition at line 44 of file ParFormula.h.

44 { return pars().size(); }
virtual Names pars() const =0
virtual Index ParFormula::nvar ( ) const
pure virtual

Implemented in RootParFormula.

virtual Names ParFormula::pars ( ) const
pure virtual

Implemented in RootParFormula.

virtual bool ParFormula::ready ( ) const
inlinevirtual

Reimplemented in RootParFormula.

Definition at line 56 of file ParFormula.h.

56 { return setPars().size() == npar(); }
virtual Index npar() const
Definition: ParFormula.h:44
virtual Names setPars() const =0
virtual Names ParFormula::resetPars ( ) const
pure virtual

Implemented in RootParFormula.

virtual int ParFormula::setDefaultEval ( Value  val)
inlinevirtual

Reimplemented in RootParFormula.

Definition at line 74 of file ParFormula.h.

74 { return 1; }
virtual Names ParFormula::setPars ( ) const
pure virtual

Implemented in RootParFormula.

virtual int ParFormula::setParValue ( Name  parnam,
Value  parval 
)
pure virtual

Implemented in RootParFormula.

virtual Names ParFormula::unsetPars ( ) const
pure virtual

Implemented in RootParFormula.

virtual int ParFormula::unsetParValues ( )
pure virtual

Implemented in RootParFormula.


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