Chrysalis - Pattern
Loading...
Searching...
No Matches
BinaryFunctionArgument.h File Reference
Include dependency graph for BinaryFunctionArgument.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Chrysalis::BinaryFunctionArgument

Namespaces

namespace  Chrysalis

Macros

#define BINARY_FUNCTIONS   (Add)(Subtract)(Multiply)(Divide)(Min)(Max)
#define FORWARD_DECLARE(r, data, Name)
#define DECLARE_BINARY_FUNCTION(r, data, Name)

Macro Definition Documentation

◆ BINARY_FUNCTIONS

#define BINARY_FUNCTIONS   (Add)(Subtract)(Multiply)(Divide)(Min)(Max)

◆ DECLARE_BINARY_FUNCTION

#define DECLARE_BINARY_FUNCTION ( r,
data,
Name )
Value:
class BinaryFunctionArgument::Name: public BinaryFunctionArgument { \
PROVIDE_SERIALIZATION_ACCESS(BinaryFunctionArgument::Name) \
public: \
explicit Name(args::number&& operand1, args::number&& operand2) \
: BinaryFunctionArgument(std::move(operand1), std::move(operand2)) {} \
protected: \
std::expected<double, Error> evaluate(double a, double b) const override; \
}; \
SERIALIZE_DERIVED_CONSTRUCTION(BinaryFunctionArgument::Name, BinaryFunctionArgument, operand1_, operand2_);

◆ FORWARD_DECLARE

#define FORWARD_DECLARE ( r,
data,
Name )
Value:
class Name;