OASIS
Open Algebra Software
Loading...
Searching...
No Matches
Negate.hpp
Go to the documentation of this file.
1//
2// Created by Matthew McCall on 3/29/24.
3//
4
5#ifndef OASIS_NEGATE_HPP
6#define OASIS_NEGATE_HPP
7
8#include "Multiply.hpp"
9#include "UnaryExpression.hpp"
10
11namespace Oasis {
12
13template <typename OperandT = Expression>
14class Negate final : public UnaryExpression<Negate, OperandT> {
15public:
16 Negate() = default;
17 Negate(const Negate& other)
18 : UnaryExpression<Negate, OperandT>(other)
19 {
20 }
21
22 explicit Negate(const OperandT& operand)
23 : UnaryExpression<Negate, OperandT>(operand)
24 {
25 }
26
29};
30
31} // Oasis
32
33#endif // OASIS_NEGATE_HPP
#define EXPRESSION_CATEGORY(category)
Definition Expression.hpp:237
#define EXPRESSION_TYPE(type)
Definition Expression.hpp:226
Definition Negate.hpp:14
Negate(const OperandT &operand)
Definition Negate.hpp:22
Negate()=default
Negate(const Negate &other)
Definition Negate.hpp:17
Definition UnaryExpression.hpp:14
Definition Add.hpp:11
@ UnExp
Definition Expression.hpp:53