Skip to content

Commit

Permalink
Refactor includes
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Feb 4, 2024
1 parent 32b5606 commit 3445c74
Show file tree
Hide file tree
Showing 299 changed files with 1,737 additions and 190 deletions.
1 change: 1 addition & 0 deletions include/fintamath/core/Cache.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <functional>
#include <unordered_map>

namespace fintamath {

Expand Down
2 changes: 2 additions & 0 deletions include/fintamath/core/Converter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <concepts>
#include <functional>
#include <memory>

#include "fintamath/core/MultiMethod.hpp"
Expand Down
3 changes: 3 additions & 0 deletions include/fintamath/core/CoreUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#pragma once

#include <concepts>
#include <functional>
#include <memory>
#include <ranges>
#include <type_traits>

#include "fintamath/core/MathObjectTypes.hpp"

Expand Down
9 changes: 8 additions & 1 deletion include/fintamath/core/IArithmetic.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#pragma once

#include <concepts>
#include <memory>
#include <string>
#include <utility>

#include "fintamath/core/CoreUtils.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/exceptions/InvalidInputException.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"

namespace fintamath {

Expand Down
10 changes: 9 additions & 1 deletion include/fintamath/core/IComparable.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#pragma once

#include <compare>
#include <concepts>
#include <memory>
#include <string>
#include <utility>

#include "fintamath/core/CoreUtils.hpp"
#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/exceptions/InvalidInputException.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"

namespace fintamath {

Expand Down
2 changes: 2 additions & 0 deletions include/fintamath/core/IMathObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
#include <memory>
#include <ostream>
#include <string>
#include <utility>

#include "fintamath/core/Converter.hpp"
#include "fintamath/core/CoreUtils.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"

namespace fintamath {
Expand Down
1 change: 1 addition & 0 deletions include/fintamath/core/MultiMethod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <tuple>

#include "fintamath/core/CoreUtils.hpp"
#include "fintamath/core/MathObjectTypes.hpp"

namespace fintamath {

Expand Down
4 changes: 2 additions & 2 deletions include/fintamath/core/Parser.hpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#pragma once

#include <algorithm>
#include <functional>
#include <memory>
#include <ranges>
#include <string>
#include <unordered_map>
#include <vector>

#include "fintamath/core/CoreUtils.hpp"
#include "fintamath/core/Tokenizer.hpp"
#include "fintamath/exceptions/InvalidInputException.hpp"

#include <algorithm>

namespace fintamath {

template <typename Return, typename... Args>
Expand Down
1 change: 1 addition & 0 deletions include/fintamath/exceptions/InvalidInputException.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions include/fintamath/exceptions/UndefinedException.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <string>
#include <vector>

Expand Down
16 changes: 14 additions & 2 deletions include/fintamath/expressions/Expression.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
#pragma once

#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <stack>

#include <string>
#include <utility>
#include <vector>

#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"
#include "fintamath/core/Tokenizer.hpp"
#include "fintamath/expressions/IExpression.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"
#include "fintamath/literals/Variable.hpp"
#include "fintamath/numbers/Real.hpp"

namespace fintamath {

Expand Down
2 changes: 2 additions & 0 deletions include/fintamath/expressions/ExpressionComparator.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <compare>

#include "fintamath/functions/FunctionArguments.hpp"

namespace fintamath {
Expand Down
1 change: 1 addition & 0 deletions include/fintamath/expressions/ExpressionFunctions.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "fintamath/expressions/Expression.hpp"
#include "fintamath/numbers/Real.hpp"

namespace fintamath {

Expand Down
3 changes: 3 additions & 0 deletions include/fintamath/expressions/ExpressionParser.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IMathObject.hpp"

namespace fintamath {
Expand Down
10 changes: 10 additions & 0 deletions include/fintamath/expressions/ExpressionUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#pragma once

#include <concepts>
#include <cstddef>
#include <functional>
#include <string>
#include <utility>
#include <vector>

#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/exceptions/InvalidInputException.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"
#include "fintamath/functions/IOperator.hpp"
#include "fintamath/literals/Variable.hpp"
#include "fintamath/literals/constants/Undefined.hpp"
Expand Down
12 changes: 12 additions & 0 deletions include/fintamath/expressions/IExpression.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
#pragma once

#include <concepts>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"
#include "fintamath/literals/Variable.hpp"
#include "fintamath/numbers/INumber.hpp"
#include "fintamath/numbers/Integer.hpp"

namespace fintamath {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#pragma once

#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/expressions/IExpression.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"

namespace fintamath {

Expand Down
11 changes: 9 additions & 2 deletions include/fintamath/expressions/interfaces/IPolynomExpression.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#pragma once

#include <compare>
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/expressions/IExpression.hpp"
#include "fintamath/functions/FunctionArguments.hpp"

#include <stack>
#include "fintamath/functions/IFunction.hpp"

namespace fintamath {

Expand Down
9 changes: 9 additions & 0 deletions include/fintamath/expressions/interfaces/IUnaryExpression.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#pragma once

#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/expressions/IExpression.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"

namespace fintamath {

Expand Down
2 changes: 1 addition & 1 deletion include/fintamath/functions/FunctionArguments.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <functional>
#include <memory>
#include <string>
#include <vector>

#include "fintamath/core/MathObjectTypes.hpp"
Expand Down
4 changes: 3 additions & 1 deletion include/fintamath/functions/FunctionUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#pragma once

#include <concepts>
#include <memory>

#include "fintamath/core/IMathObject.hpp"
#include "fintamath/exceptions/InvalidInputException.hpp"
#include "fintamath/functions/FunctionArguments.hpp"

#define FINTAMATH_FUNCTION_EXPRESSION(Function, name) \
Expand Down
11 changes: 9 additions & 2 deletions include/fintamath/functions/IFunction.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#pragma once

#include <algorithm>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_map>

#include "fintamath/core/IMathObject.hpp"
#include "fintamath/exceptions/InvalidInputException.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"
#include "fintamath/exceptions/UndefinedException.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/FunctionUtils.hpp"
Expand Down
7 changes: 7 additions & 0 deletions include/fintamath/functions/IOperator.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#pragma once

#include <concepts>
#include <cstdint>
#include <memory>
#include <string>

#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/core/Parser.hpp"
#include "fintamath/functions/IFunction.hpp"

namespace fintamath {
Expand Down
7 changes: 7 additions & 0 deletions include/fintamath/functions/arithmetic/Abs.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/FunctionUtils.hpp"
#include "fintamath/functions/IFunction.hpp"
#include "fintamath/numbers/INumber.hpp"

Expand Down
7 changes: 7 additions & 0 deletions include/fintamath/functions/arithmetic/Add.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/FunctionUtils.hpp"
#include "fintamath/functions/IOperator.hpp"

namespace fintamath {
Expand Down
7 changes: 7 additions & 0 deletions include/fintamath/functions/arithmetic/Div.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/FunctionUtils.hpp"
#include "fintamath/functions/IOperator.hpp"

namespace fintamath {
Expand Down
6 changes: 6 additions & 0 deletions include/fintamath/functions/arithmetic/Frac.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"

namespace fintamath {
Expand Down
6 changes: 6 additions & 0 deletions include/fintamath/functions/arithmetic/FracMixed.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/IFunction.hpp"

namespace fintamath {
Expand Down
7 changes: 7 additions & 0 deletions include/fintamath/functions/arithmetic/Mul.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/FunctionUtils.hpp"
#include "fintamath/functions/IOperator.hpp"

namespace fintamath {
Expand Down
7 changes: 7 additions & 0 deletions include/fintamath/functions/arithmetic/Neg.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#pragma once

#include <memory>
#include <string>

#include "fintamath/core/IArithmetic.hpp"
#include "fintamath/core/IMathObject.hpp"
#include "fintamath/core/MathObjectTypes.hpp"
#include "fintamath/functions/FunctionArguments.hpp"
#include "fintamath/functions/FunctionUtils.hpp"
#include "fintamath/functions/IOperator.hpp"

namespace fintamath {
Expand Down
Loading

0 comments on commit 3445c74

Please sign in to comment.