Skip to content
Snippets Groups Projects
Commit f19ff1e6 authored by Joseph Boudreau's avatar Joseph Boudreau
Browse files

add friendship for persistification classes

parent 4602606c
No related branches found
No related tags found
No related merge requests found
Pipeline #1379821 passed
Showing
with 79 additions and 0 deletions
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#define ConstMinusFunction_hh #define ConstMinusFunction_hh
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification
class ConstMinusFunctionRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class ConstMinusFunction : public AbsFunction { class ConstMinusFunction : public AbsFunction {
...@@ -51,6 +54,10 @@ namespace GeoGenfun { ...@@ -51,6 +54,10 @@ namespace GeoGenfun {
double _constant; double _constant;
const AbsFunction *_arg; const AbsFunction *_arg;
// For persistification:
friend class ::ConstMinusFunctionRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#define ConstOverFunction_hh #define ConstOverFunction_hh
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class ConstOverFunctionRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class ConstOverFunction : public AbsFunction { class ConstOverFunction : public AbsFunction {
...@@ -51,6 +54,10 @@ namespace GeoGenfun { ...@@ -51,6 +54,10 @@ namespace GeoGenfun {
double _constant; double _constant;
const AbsFunction *_arg; const AbsFunction *_arg;
// For persistification:
friend class ::ConstOverFunctionRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#define ConstPlusFunction_hh #define ConstPlusFunction_hh
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class ConstPlusFunctionRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class ConstPlusFunction : public AbsFunction { class ConstPlusFunction : public AbsFunction {
...@@ -51,6 +54,10 @@ namespace GeoGenfun { ...@@ -51,6 +54,10 @@ namespace GeoGenfun {
double _constant; double _constant;
const AbsFunction *_arg; const AbsFunction *_arg;
// For persistification:
friend class ::ConstPlusFunctionRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
#ifndef ConstTimesFunction_hh #ifndef ConstTimesFunction_hh
#define ConstTimesFunction_hh #define ConstTimesFunction_hh
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class ConstTimesFunctionRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class ConstTimesFunction : public AbsFunction { class ConstTimesFunction : public AbsFunction {
...@@ -50,6 +54,10 @@ namespace GeoGenfun { ...@@ -50,6 +54,10 @@ namespace GeoGenfun {
double _constant; double _constant;
const AbsFunction *_arg; const AbsFunction *_arg;
// For persistification
friend class ::ConstTimesFunctionRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#define FunctionComposition_h 1 #define FunctionComposition_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionCompositionRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionComposition : public AbsFunction { class FunctionComposition : public AbsFunction {
...@@ -51,6 +54,10 @@ namespace GeoGenfun { ...@@ -51,6 +54,10 @@ namespace GeoGenfun {
const AbsFunction *_arg1; const AbsFunction *_arg1;
const AbsFunction *_arg2; const AbsFunction *_arg2;
// For persistification:
friend class ::FunctionCompositionRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
#define FunctionDifference_h 1 #define FunctionDifference_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionDifferenceRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionDifference : public AbsFunction { class FunctionDifference : public AbsFunction {
...@@ -53,6 +56,9 @@ namespace GeoGenfun { ...@@ -53,6 +56,9 @@ namespace GeoGenfun {
const AbsFunction *_arg1; const AbsFunction *_arg1;
const AbsFunction *_arg2; const AbsFunction *_arg2;
// For persistification:
friend class ::FunctionDifferenceRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
#define FunctionNegation_h 1 #define FunctionNegation_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionNegationRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionNegation : public AbsFunction { class FunctionNegation : public AbsFunction {
...@@ -50,6 +53,10 @@ namespace GeoGenfun { ...@@ -50,6 +53,10 @@ namespace GeoGenfun {
// The function we're negating. // The function we're negating.
const AbsFunction *_arg1; const AbsFunction *_arg1;
// For persistification:
friend class ::FunctionNegationRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
#define FunctionNoop_h 1 #define FunctionNoop_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionNoopRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionNoop : public AbsFunction { class FunctionNoop : public AbsFunction {
...@@ -51,6 +55,10 @@ namespace GeoGenfun { ...@@ -51,6 +55,10 @@ namespace GeoGenfun {
// The function we're negating. // The function we're negating.
const AbsFunction *_arg1; const AbsFunction *_arg1;
// For persistification:
friend class ::FunctionNoopRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
#ifndef FunctionProduct_h #ifndef FunctionProduct_h
#define FunctionProduct_h 1 #define FunctionProduct_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionProductRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionProduct : public AbsFunction { class FunctionProduct : public AbsFunction {
...@@ -50,6 +54,10 @@ namespace GeoGenfun { ...@@ -50,6 +54,10 @@ namespace GeoGenfun {
const AbsFunction *_arg1; const AbsFunction *_arg1;
const AbsFunction *_arg2; const AbsFunction *_arg2;
// For persistification:
friend class ::FunctionProductRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
#define FunctionQuotient_h 1 #define FunctionQuotient_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionQuotientRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionQuotient : public AbsFunction { class FunctionQuotient : public AbsFunction {
...@@ -50,6 +53,10 @@ namespace GeoGenfun { ...@@ -50,6 +53,10 @@ namespace GeoGenfun {
const AbsFunction *_arg1; const AbsFunction *_arg1;
const AbsFunction *_arg2; const AbsFunction *_arg2;
// For persistification:
friend class ::FunctionQuotientRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#define FunctionSum_h 1 #define FunctionSum_h 1
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
// For persistification:
class FunctionSumRecorder;
namespace GeoGenfun { namespace GeoGenfun {
class FunctionSum : public AbsFunction { class FunctionSum : public AbsFunction {
...@@ -51,6 +54,10 @@ namespace GeoGenfun { ...@@ -51,6 +54,10 @@ namespace GeoGenfun {
const AbsFunction *_arg1; const AbsFunction *_arg1;
const AbsFunction *_arg2; const AbsFunction *_arg2;
// For persistification:
friend class ::FunctionSumRecorder;
}; };
} // namespace GeoGenfun } // namespace GeoGenfun
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment