Chrysalis - Pattern
Loading...
Searching...
No Matches
Chrysalis::BinaryFunctionArgument Class Referenceabstract

#include <BinaryFunctionArgument.h>

Inheritance diagram for Chrysalis::BinaryFunctionArgument:
[legend]
Collaboration diagram for Chrysalis::BinaryFunctionArgument:
[legend]

Protected Member Functions

 BinaryFunctionArgument (args::number &&operand1, args::number &&operand2)
std::expected< double, Error > calculate () const override
virtual std::expected< double, Error > evaluate (double a, double b) const =0
Protected Member Functions inherited from Chrysalis::BaseCalculatedArgument< double >
 BaseCalculatedArgument ()=default
Protected Member Functions inherited from Chrysalis::BaseArgument< double >
 BaseArgument ()=default

Protected Attributes

args::number operand1_
args::number operand2_

Additional Inherited Members

Public Member Functions inherited from Chrysalis::BaseCalculatedArgument< double >
std::expected< double, Error > get () const override
Public Member Functions inherited from Chrysalis::BaseArgument< double >
virtual ~BaseArgument ()=default

Constructor & Destructor Documentation

◆ BinaryFunctionArgument()

BinaryFunctionArgument::BinaryFunctionArgument ( args::number && operand1,
args::number && operand2 )
explicitprotected

Member Function Documentation

◆ calculate()

std::expected< double, Error > BinaryFunctionArgument::calculate ( ) const
overrideprotectedvirtual

Implements Chrysalis::BaseCalculatedArgument< double >.

Here is the call graph for this function:

◆ evaluate()

virtual std::expected< double, Error > Chrysalis::BinaryFunctionArgument::evaluate ( double a,
double b ) const
protectedpure virtual
Here is the caller graph for this function:

Member Data Documentation

◆ operand1_

args::number Chrysalis::BinaryFunctionArgument::operand1_
protected

◆ operand2_

args::number Chrysalis::BinaryFunctionArgument::operand2_
protected

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