bpp-core3  3.0.0
bpp::NegativeOperator Class Reference

Negative value for an operator. More...

#include <Bpp/Numeric/Function/Operators/NegativeOperator.h>

+ Inheritance diagram for bpp::NegativeOperator:
+ Collaboration diagram for bpp::NegativeOperator:

Public Member Functions

 NegativeOperator (std::shared_ptr< Operator > son)
 
NegativeOperatorclone () const
 Create a copy of this object and send a pointer to it. More...
 
std::shared_ptr< OperatorgetSon ()
 
double getValue () const
 
double getFirstOrderDerivative (const std::string &variable) const
 
double getSecondOrderDerivative (const std::string &variable) const
 
std::string output () const
 

Private Attributes

std::shared_ptr< Operatorson_
 

Detailed Description

Negative value for an operator.

Definition at line 54 of file NegativeOperator.h.

Constructor & Destructor Documentation

◆ NegativeOperator()

bpp::NegativeOperator::NegativeOperator ( std::shared_ptr< Operator son)
inline

Definition at line 61 of file NegativeOperator.h.

Referenced by clone().

Member Function Documentation

◆ clone()

NegativeOperator* bpp::NegativeOperator::clone ( ) const
inlinevirtual

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

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Definition at line 65 of file NegativeOperator.h.

References NegativeOperator().

◆ getFirstOrderDerivative()

double bpp::NegativeOperator::getFirstOrderDerivative ( const std::string &  variable) const
inlinevirtual

Implements bpp::Operator.

Definition at line 80 of file NegativeOperator.h.

References son_.

◆ getSecondOrderDerivative()

double bpp::NegativeOperator::getSecondOrderDerivative ( const std::string &  variable) const
inlinevirtual

Implements bpp::Operator.

Definition at line 85 of file NegativeOperator.h.

References son_.

◆ getSon()

std::shared_ptr<Operator> bpp::NegativeOperator::getSon ( )
inline

Definition at line 70 of file NegativeOperator.h.

References son_.

◆ getValue()

double bpp::NegativeOperator::getValue ( ) const
inlinevirtual

Implements bpp::Operator.

Definition at line 75 of file NegativeOperator.h.

References son_.

◆ output()

std::string bpp::NegativeOperator::output ( ) const
inlinevirtual

Implements bpp::Operator.

Definition at line 90 of file NegativeOperator.h.

References son_.

Member Data Documentation

◆ son_

std::shared_ptr<Operator> bpp::NegativeOperator::son_
private

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