Преглед изворни кода

Lemma V 0.2.0, ctor_key now only at root level

submodule
T-bone пре 6 година
родитељ
комит
a941c7df1c
56 измењених фајлова са 99 додато и 137 уклоњено
  1. 2
    2
      CMakeLists.txt
  2. 0
    2
      Modules/FDEM1D/include/DipoleSource.h
  3. 0
    2
      Modules/FDEM1D/include/EMEarth1D.h
  4. 0
    2
      Modules/FDEM1D/include/FHTAnderson801.h
  5. 0
    2
      Modules/FDEM1D/include/FHTKey101.h
  6. 1
    4
      Modules/FDEM1D/include/FHTKey201.h
  7. 0
    2
      Modules/FDEM1D/include/FHTKey51.h
  8. 0
    4
      Modules/FDEM1D/include/FieldPoints.h
  9. 0
    3
      Modules/FDEM1D/include/GQChave.h
  10. 2
    2
      Modules/FDEM1D/include/HankelTransform.h
  11. 1
    1
      Modules/FDEM1D/include/KernelEM1DBase.h
  12. 0
    2
      Modules/FDEM1D/include/KernelEM1DManager.h
  13. 1
    1
      Modules/FDEM1D/include/KernelEM1DReflBase.h
  14. 2
    5
      Modules/FDEM1D/include/KernelEM1DReflSpec.h
  15. 2
    4
      Modules/FDEM1D/include/KernelEM1DSpec.h
  16. 0
    2
      Modules/FDEM1D/include/LayeredEarthEM.h
  17. 0
    2
      Modules/FDEM1D/include/PolygonalWireAntenna.h
  18. 0
    2
      Modules/FDEM1D/include/QWEKey.h
  19. 0
    3
      Modules/FDEM1D/include/WireAntenna.h
  20. 2
    2
      Modules/FDEM1D/src/DipoleSource.cpp
  21. 2
    2
      Modules/FDEM1D/src/EMEarth1D.cpp
  22. 3
    3
      Modules/FDEM1D/src/FHTAnderson801.cpp
  23. 3
    3
      Modules/FDEM1D/src/FHTKey101.cpp
  24. 3
    3
      Modules/FDEM1D/src/FHTKey201.cpp
  25. 3
    3
      Modules/FDEM1D/src/FHTKey51.cpp
  26. 3
    3
      Modules/FDEM1D/src/FieldPoints.cpp
  27. 3
    3
      Modules/FDEM1D/src/GQChave.cpp
  28. 3
    3
      Modules/FDEM1D/src/HankelTransform.cpp
  29. 2
    2
      Modules/FDEM1D/src/KernelEM1DManager.cpp
  30. 3
    3
      Modules/FDEM1D/src/LayeredEarthEM.cpp
  31. 4
    3
      Modules/FDEM1D/src/PolygonalWireAntenna.cpp
  32. 2
    2
      Modules/FDEM1D/src/QWEKey.cpp
  33. 3
    3
      Modules/FDEM1D/src/WireAntenna.cpp
  34. 3
    4
      Modules/LemmaCore/include/CubicSplineInterpolator.h
  35. 2
    2
      Modules/LemmaCore/include/Data.h
  36. 2
    2
      Modules/LemmaCore/include/DataReader.h
  37. 2
    2
      Modules/LemmaCore/include/EarthModel.h
  38. 2
    2
      Modules/LemmaCore/include/Filter.h
  39. 2
    2
      Modules/LemmaCore/include/Grid.h
  40. 2
    2
      Modules/LemmaCore/include/GridReader.h
  41. 1
    3
      Modules/LemmaCore/include/LayeredEarth.h
  42. 1
    1
      Modules/LemmaCore/include/RectilinearGrid.h
  43. 1
    1
      Modules/LemmaCore/include/RectilinearGridReader.h
  44. 1
    1
      Modules/LemmaCore/include/RectilinearGridVTKExporter.h
  45. 1
    1
      Modules/LemmaCore/include/WindowFilter.h
  46. 4
    4
      Modules/LemmaCore/src/CubicSplineInterpolator.cpp
  47. 3
    3
      Modules/LemmaCore/src/Data.cpp
  48. 3
    3
      Modules/LemmaCore/src/DataReader.cpp
  49. 3
    3
      Modules/LemmaCore/src/EarthModel.cpp
  50. 2
    2
      Modules/LemmaCore/src/Filter.cpp
  51. 2
    2
      Modules/LemmaCore/src/Grid.cpp
  52. 3
    3
      Modules/LemmaCore/src/LayeredEarth.cpp
  53. 2
    2
      Modules/LemmaCore/src/RectilinearGrid.cpp
  54. 2
    2
      Modules/LemmaCore/src/RectilinearGridReader.cpp
  55. 2
    2
      Modules/LemmaCore/src/RectilinearGridVTKExporter.cpp
  56. 3
    3
      Modules/LemmaCore/src/WindowFilter.cpp

+ 2
- 2
CMakeLists.txt Прегледај датотеку

219
 endif()
219
 endif()
220
 
220
 
221
 set(LEMMA_VERSION_MAJOR "0")
221
 set(LEMMA_VERSION_MAJOR "0")
222
-set(LEMMA_VERSION_MINOR "1")
223
-set(LEMMA_VERSION_PATCH "2")
222
+set(LEMMA_VERSION_MINOR "2")
223
+set(LEMMA_VERSION_PATCH "0")
224
 set(LEMMA_VERSION "\"${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}.${LEMMA_VERSION_PATCH}\"")
224
 set(LEMMA_VERSION "\"${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}.${LEMMA_VERSION_PATCH}\"")
225
 set(LEMMA_VERSION_NOQUOTES "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}.${LEMMA_VERSION_PATCH}")
225
 set(LEMMA_VERSION_NOQUOTES "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}.${LEMMA_VERSION_PATCH}")
226
 
226
 

+ 0
- 2
Modules/FDEM1D/include/DipoleSource.h Прегледај датотеку

46
 
46
 
47
         friend std::ostream &operator<<(std::ostream &stream, const DipoleSource &ob);
47
         friend std::ostream &operator<<(std::ostream &stream, const DipoleSource &ob);
48
 
48
 
49
-        struct ctor_key{};
50
-
51
         public:
49
         public:
52
 
50
 
53
             // ====================  LIFECYCLE     ======================
51
             // ====================  LIFECYCLE     ======================

+ 0
- 2
Modules/FDEM1D/include/EMEarth1D.h Прегледај датотеку

54
 		friend std::ostream &operator<<(std::ostream &stream,
54
 		friend std::ostream &operator<<(std::ostream &stream,
55
 			const EMEarth1D &ob);
55
 			const EMEarth1D &ob);
56
 
56
 
57
-        struct ctor_key{};
58
-
59
         public:
57
         public:
60
 
58
 
61
             //friend class KernelEm1D;
59
             //friend class KernelEm1D;

+ 0
- 2
Modules/FDEM1D/include/FHTAnderson801.h Прегледај датотеку

61
 
61
 
62
     friend std::ostream &operator<<(std::ostream &stream, const FHTAnderson801 &ob);
62
     friend std::ostream &operator<<(std::ostream &stream, const FHTAnderson801 &ob);
63
 
63
 
64
-    struct ctor_key {};
65
-
66
     public:
64
     public:
67
 
65
 
68
         // ====================  LIFECYCLE     ==============================
66
         // ====================  LIFECYCLE     ==============================

+ 0
- 2
Modules/FDEM1D/include/FHTKey101.h Прегледај датотеку

39
 
39
 
40
         friend std::ostream &operator<<(std::ostream &stream, const FHTKey101 &ob);
40
         friend std::ostream &operator<<(std::ostream &stream, const FHTKey101 &ob);
41
 
41
 
42
-        struct ctor_key {};
43
-
44
         public:
42
         public:
45
 
43
 
46
         // ====================  LIFECYCLE     =======================
44
         // ====================  LIFECYCLE     =======================

+ 1
- 4
Modules/FDEM1D/include/FHTKey201.h Прегледај датотеку

38
     class FHTKey201 : public HankelTransform {
38
     class FHTKey201 : public HankelTransform {
39
 
39
 
40
         friend std::ostream &operator<<(std::ostream &stream, const FHTKey201 &ob);
40
         friend std::ostream &operator<<(std::ostream &stream, const FHTKey201 &ob);
41
-
42
-        struct ctor_key {};
41
+        // ====================  LIFECYCLE     =======================
43
 
42
 
44
         public:
43
         public:
45
 
44
 
46
-        // ====================  LIFECYCLE     =======================
47
-
48
         /** Default locked constructor, use NewSP */
45
         /** Default locked constructor, use NewSP */
49
         FHTKey201 ( const ctor_key& );
46
         FHTKey201 ( const ctor_key& );
50
 
47
 

+ 0
- 2
Modules/FDEM1D/include/FHTKey51.h Прегледај датотеку

39
 
39
 
40
         friend std::ostream &operator<<(std::ostream &stream, const FHTKey51 &ob);
40
         friend std::ostream &operator<<(std::ostream &stream, const FHTKey51 &ob);
41
 
41
 
42
-        struct ctor_key {};
43
-
44
         public:
42
         public:
45
 
43
 
46
         // ====================  LIFECYCLE     =======================
44
         // ====================  LIFECYCLE     =======================

+ 0
- 4
Modules/FDEM1D/include/FieldPoints.h Прегледај датотеку

56
          */
56
          */
57
         friend std::ostream &operator<<(std::ostream &stream, const FieldPoints &ob);
57
         friend std::ostream &operator<<(std::ostream &stream, const FieldPoints &ob);
58
 
58
 
59
-        struct ctor_key {};
60
-
61
         public:
59
         public:
62
 
60
 
63
             // ====================    FRIENDS     ===========================
61
             // ====================    FRIENDS     ===========================
64
 
62
 
65
-
66
-
67
             // ====================  LIFECYCLE     ===========================
63
             // ====================  LIFECYCLE     ===========================
68
 
64
 
69
             /** Default locked constructor. */
65
             /** Default locked constructor. */

+ 0
- 3
Modules/FDEM1D/include/GQChave.h Прегледај датотеку

31
 	class GQChave : public HankelTransform {
31
 	class GQChave : public HankelTransform {
32
 
32
 
33
 		friend std::ostream &operator<<(std::ostream &stream, const GQChave &ob);
33
 		friend std::ostream &operator<<(std::ostream &stream, const GQChave &ob);
34
-
35
-        struct ctor_key{};
36
-
37
 		public:
34
 		public:
38
 
35
 
39
 			// ====================  LIFECYCLE     ===========================
36
 			// ====================  LIFECYCLE     ===========================

+ 2
- 2
Modules/FDEM1D/include/HankelTransform.h Прегледај датотеку

75
                 // ====================  LIFECYCLE     =======================
75
                 // ====================  LIFECYCLE     =======================
76
 
76
 
77
                 /// Default protected constructor.
77
                 /// Default protected constructor.
78
-                HankelTransform ( );
78
+                HankelTransform ( const ctor_key& );
79
 
79
 
80
                 /// Default protected constructor.
80
                 /// Default protected constructor.
81
-                HankelTransform ( const YAML::Node& node );
81
+                HankelTransform ( const YAML::Node& node, const ctor_key& );
82
 
82
 
83
                 /// Default protected constructor.
83
                 /// Default protected constructor.
84
                 ~HankelTransform ( );
84
                 ~HankelTransform ( );

+ 1
- 1
Modules/FDEM1D/include/KernelEM1DBase.h Прегледај датотеку

38
             // ====================  LIFECYCLE     =======================
38
             // ====================  LIFECYCLE     =======================
39
 
39
 
40
             /// Default protected constructor.
40
             /// Default protected constructor.
41
-            KernelEM1DBase ( ) : LemmaObject( ) {
41
+            KernelEM1DBase ( const ctor_key& key ) : LemmaObject( key ) {
42
 
42
 
43
             }
43
             }
44
 
44
 

+ 0
- 2
Modules/FDEM1D/include/KernelEM1DManager.h Прегледај датотеку

32
     // ===================================================================
32
     // ===================================================================
33
     class KernelEM1DManager : public LemmaObject {
33
     class KernelEM1DManager : public LemmaObject {
34
 
34
 
35
-        struct ctor_key {};
36
-
37
         /** Recursively streams information about this class */
35
         /** Recursively streams information about this class */
38
         friend std::ostream &operator<<(std::ostream &stream, const KernelEM1DManager &ob);
36
         friend std::ostream &operator<<(std::ostream &stream, const KernelEM1DManager &ob);
39
 
37
 

+ 1
- 1
Modules/FDEM1D/include/KernelEM1DReflBase.h Прегледај датотеку

151
             // ====================  LIFECYCLE     =======================
151
             // ====================  LIFECYCLE     =======================
152
 
152
 
153
             /// Default protected constructor.
153
             /// Default protected constructor.
154
-            KernelEM1DReflBase ( ) : LemmaObject( )
154
+            KernelEM1DReflBase ( const ctor_key& key ) : LemmaObject( key )
155
             {
155
             {
156
             }
156
             }
157
 
157
 

+ 2
- 5
Modules/FDEM1D/include/KernelEM1DReflSpec.h Прегледај датотеку

38
     template<EMMODE Mode, DIPOLE_LOCATION Isource, DIPOLE_LOCATION Irecv>
38
     template<EMMODE Mode, DIPOLE_LOCATION Isource, DIPOLE_LOCATION Irecv>
39
     class KernelEM1DReflSpec : public KernelEM1DReflBase {
39
     class KernelEM1DReflSpec : public KernelEM1DReflBase {
40
 
40
 
41
-        // TODO can we use the manager's key instead to lock for that?
42
-        struct ctor_key{};
43
-
44
         public:
41
         public:
45
 
42
 
46
             //template<EMMODE Mode2, int Ikernel2, DIPOLE_LOCATION Isource2, DIPOLE_LOCATION Irecv2>
43
             //template<EMMODE Mode2, int Ikernel2, DIPOLE_LOCATION Isource2, DIPOLE_LOCATION Irecv2>
51
             // ====================  LIFECYCLE     =======================
48
             // ====================  LIFECYCLE     =======================
52
 
49
 
53
             /// Default locked constructor.
50
             /// Default locked constructor.
54
-            explicit KernelEM1DReflSpec ( const ctor_key& ) : KernelEM1DReflBase( ) {
51
+            explicit KernelEM1DReflSpec ( const ctor_key& key ) : KernelEM1DReflBase( key ) {
55
             }
52
             }
56
 
53
 
57
             /// Default protected constructor.
54
             /// Default protected constructor.
72
 
69
 
73
             virtual std::string GetName() {
70
             virtual std::string GetName() {
74
                 return CName;
71
                 return CName;
75
-            } 
72
+            }
76
 
73
 
77
         protected:
74
         protected:
78
         private:
75
         private:

+ 2
- 4
Modules/FDEM1D/include/KernelEM1DSpec.h Прегледај датотеку

37
     template<EMMODE Mode, int Ikernel, DIPOLE_LOCATION Isource, DIPOLE_LOCATION Irecv>
37
     template<EMMODE Mode, int Ikernel, DIPOLE_LOCATION Isource, DIPOLE_LOCATION Irecv>
38
     class KernelEM1DSpec : public KernelEM1DBase {
38
     class KernelEM1DSpec : public KernelEM1DBase {
39
 
39
 
40
-        struct ctor_key {};
41
-
42
         public:
40
         public:
43
 
41
 
44
             // ====================  LIFECYCLE     =======================
42
             // ====================  LIFECYCLE     =======================
45
 
43
 
46
             /// Default locked constructor.
44
             /// Default locked constructor.
47
-            explicit KernelEM1DSpec (const ctor_key& ) : KernelEM1DBase( ), ReflCalc(nullptr) {
45
+            explicit KernelEM1DSpec (const ctor_key& key ) : KernelEM1DBase( key ), ReflCalc(nullptr) {
48
             }
46
             }
49
 
47
 
50
             /// Default destructor.
48
             /// Default destructor.
59
             }
57
             }
60
 
58
 
61
             static std::shared_ptr<KernelEM1DSpec> NewSP(LayeredEarthEM* Earth, std::shared_ptr<DipoleSource> Dipole,
59
             static std::shared_ptr<KernelEM1DSpec> NewSP(LayeredEarthEM* Earth, std::shared_ptr<DipoleSource> Dipole,
62
-                                                                                        const int& ifreq, const Real& rz) {
60
+                                                         const int& ifreq, const Real& rz) {
63
                 auto Obj = std::make_shared< KernelEM1DSpec > ( ctor_key() );
61
                 auto Obj = std::make_shared< KernelEM1DSpec > ( ctor_key() );
64
 
62
 
65
                 // under this scenario KernelEM1DSpec manages its own Refl Base
63
                 // under this scenario KernelEM1DSpec manages its own Refl Base

+ 0
- 2
Modules/FDEM1D/include/LayeredEarthEM.h Прегледај датотеку

34
         /** Recursively streams information about this class */
34
         /** Recursively streams information about this class */
35
         friend std::ostream &operator<<(std::ostream &stream, const LayeredEarthEM &ob);
35
         friend std::ostream &operator<<(std::ostream &stream, const LayeredEarthEM &ob);
36
 
36
 
37
-        struct ctor_key {};
38
-
39
         public:
37
         public:
40
 
38
 
41
             // ====================  LIFECYCLE     ===========================
39
             // ====================  LIFECYCLE     ===========================

+ 0
- 2
Modules/FDEM1D/include/PolygonalWireAntenna.h Прегледај датотеку

29
 
29
 
30
         friend std::ostream &operator<<(std::ostream &stream, const PolygonalWireAntenna &ob);
30
         friend std::ostream &operator<<(std::ostream &stream, const PolygonalWireAntenna &ob);
31
 
31
 
32
-        struct ctor_key {};
33
-
34
         public:
32
         public:
35
 
33
 
36
             // ====================  LIFECYCLE     =======================
34
             // ====================  LIFECYCLE     =======================

+ 0
- 2
Modules/FDEM1D/include/QWEKey.h Прегледај датотеку

50
 
50
 
51
         friend std::ostream &operator<<(std::ostream &stream, const QWEKey &ob);
51
         friend std::ostream &operator<<(std::ostream &stream, const QWEKey &ob);
52
 
52
 
53
-        struct ctor_key {};
54
-
55
         public:
53
         public:
56
 
54
 
57
         // ====================  LIFECYCLE     =======================
55
         // ====================  LIFECYCLE     =======================

+ 0
- 3
Modules/FDEM1D/include/WireAntenna.h Прегледај датотеку

33
 
33
 
34
         friend std::ostream &operator<<(std::ostream &stream, const WireAntenna &ob);
34
         friend std::ostream &operator<<(std::ostream &stream, const WireAntenna &ob);
35
 
35
 
36
-        protected:
37
-        struct ctor_key {};
38
-
39
         public:
36
         public:
40
 
37
 
41
             // ====================  LIFECYCLE     =======================
38
             // ====================  LIFECYCLE     =======================

+ 2
- 2
Modules/FDEM1D/src/DipoleSource.cpp Прегледај датотеку

26
 
26
 
27
     // ====================    FRIENDS     ======================
27
     // ====================    FRIENDS     ======================
28
     std::ostream &operator<<(std::ostream &stream, const DipoleSource &ob) {
28
     std::ostream &operator<<(std::ostream &stream, const DipoleSource &ob) {
29
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
29
+        stream << ob.Serialize()  << "\n";
30
         return stream;
30
         return stream;
31
     }
31
     }
32
 
32
 
33
 
33
 
34
     // ====================  LIFECYCLE     ======================
34
     // ====================  LIFECYCLE     ======================
35
 
35
 
36
-    DipoleSource::DipoleSource( const ctor_key& ) : LemmaObject( ),
36
+    DipoleSource::DipoleSource( const ctor_key& key ) : LemmaObject( key ),
37
                     Type(NOSOURCETYPE),
37
                     Type(NOSOURCETYPE),
38
                     irec(-1),
38
                     irec(-1),
39
                     Phase(0),
39
                     Phase(0),

+ 2
- 2
Modules/FDEM1D/src/EMEarth1D.cpp Прегледај датотеку

22
 namespace Lemma {
22
 namespace Lemma {
23
 
23
 
24
     std::ostream &operator << (std::ostream &stream, const EMEarth1D &ob) {
24
     std::ostream &operator << (std::ostream &stream, const EMEarth1D &ob) {
25
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
25
+        stream << ob.Serialize()  << "\n";
26
         return stream;
26
         return stream;
27
     }
27
     }
28
 
28
 
70
     // ====================  LIFECYCLE     ===================================
70
     // ====================  LIFECYCLE     ===================================
71
 
71
 
72
     // TODO init large arrays here.
72
     // TODO init large arrays here.
73
-    EMEarth1D::EMEarth1D( const ctor_key& ) : LemmaObject( ),
73
+    EMEarth1D::EMEarth1D( const ctor_key& key ) : LemmaObject( key ),
74
             Dipole(nullptr), Earth(nullptr), Receivers(nullptr), Antenna(nullptr),
74
             Dipole(nullptr), Earth(nullptr), Receivers(nullptr), Antenna(nullptr),
75
             FieldsToCalculate(BOTH), HankelType(ANDERSON801), icalcinner(0), icalc(0)
75
             FieldsToCalculate(BOTH), HankelType(ANDERSON801), icalcinner(0), icalc(0)
76
         //#ifdef HAVEBOOSTPROGRESS
76
         //#ifdef HAVEBOOSTPROGRESS

+ 3
- 3
Modules/FDEM1D/src/FHTAnderson801.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const FHTAnderson801 &ob) {
18
     std::ostream &operator << (std::ostream &stream, const FHTAnderson801 &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
841
 	const Real FHTAnderson801::ABSER = 0.904837418035959573;      // 1/exp(.1)
841
 	const Real FHTAnderson801::ABSER = 0.904837418035959573;      // 1/exp(.1)
842
 
842
 
843
 	// ====================  LIFECYCLE     ==============================
843
 	// ====================  LIFECYCLE     ==============================
844
-	FHTAnderson801::FHTAnderson801(const ctor_key& ) : HankelTransform( ),
844
+	FHTAnderson801::FHTAnderson801(const ctor_key& key ) : HankelTransform( key ),
845
 			             Lambda(0), NumFun(0),
845
 			             Lambda(0), NumFun(0),
846
 						 NumConv(0), NumRel(0),
846
 						 NumConv(0), NumRel(0),
847
 						 BesselOrder(-1),  Manager(nullptr) {
847
 						 BesselOrder(-1),  Manager(nullptr) {
848
 	}
848
 	}
849
 
849
 
850
-    FHTAnderson801::FHTAnderson801( const YAML::Node& node, const ctor_key& ) : HankelTransform( ) {
850
+    FHTAnderson801::FHTAnderson801( const YAML::Node& node, const ctor_key& key ) : HankelTransform( key ) {
851
         Lambda = node["Lambda"].as<Real>();
851
         Lambda = node["Lambda"].as<Real>();
852
         NumFun = node["NumFun"].as<int>();
852
         NumFun = node["NumFun"].as<int>();
853
 		NumConv = node["NumConv"].as<int>();
853
 		NumConv = node["NumConv"].as<int>();

+ 3
- 3
Modules/FDEM1D/src/FHTKey101.cpp Прегледај датотеку

23
     // ====================  FRIEND METHODS  =====================
23
     // ====================  FRIEND METHODS  =====================
24
 
24
 
25
     std::ostream &operator<<(std::ostream &stream, const FHTKey101 &ob) {
25
     std::ostream &operator<<(std::ostream &stream, const FHTKey101 &ob) {
26
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
26
+        stream << ob.Serialize()  << "\n";
27
         return stream;
27
         return stream;
28
     }
28
     }
29
 
29
 
141
     //      Method:  FHTKey101
141
     //      Method:  FHTKey101
142
     // Description:  constructor (locked)
142
     // Description:  constructor (locked)
143
     //--------------------------------------------------------------------------------------
143
     //--------------------------------------------------------------------------------------
144
-    FHTKey101::FHTKey101 ( const ctor_key& ) : HankelTransform( ) {
144
+    FHTKey101::FHTKey101 ( const ctor_key& key ) : HankelTransform( key ) {
145
 
145
 
146
     }  // -----  end of method FHTKey101::FHTKey101  (constructor)  -----
146
     }  // -----  end of method FHTKey101::FHTKey101  (constructor)  -----
147
 
147
 
150
     //      Method:  FHTKey101
150
     //      Method:  FHTKey101
151
     // Description:  constructor (protected)
151
     // Description:  constructor (protected)
152
     //--------------------------------------------------------------------------------------
152
     //--------------------------------------------------------------------------------------
153
-    FHTKey101::FHTKey101( const YAML::Node& node, const ctor_key& ) : HankelTransform(node) {
153
+    FHTKey101::FHTKey101( const YAML::Node& node, const ctor_key& key ) : HankelTransform(node, key) {
154
 
154
 
155
     }
155
     }
156
 
156
 

+ 3
- 3
Modules/FDEM1D/src/FHTKey201.cpp Прегледај датотеку

22
     // ====================  FRIEND METHODS  =====================
22
     // ====================  FRIEND METHODS  =====================
23
 
23
 
24
     std::ostream &operator<<(std::ostream &stream, const FHTKey201 &ob) {
24
     std::ostream &operator<<(std::ostream &stream, const FHTKey201 &ob) {
25
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
25
+        stream << ob.Serialize()  << "\n";
26
         return stream;
26
         return stream;
27
     }
27
     }
28
 
28
 
240
     //      Method:  FHTKey201
240
     //      Method:  FHTKey201
241
     // Description:  constructor (locked)
241
     // Description:  constructor (locked)
242
     //--------------------------------------------------------------------------------------
242
     //--------------------------------------------------------------------------------------
243
-    FHTKey201::FHTKey201 (const ctor_key& ) : HankelTransform( ) {
243
+    FHTKey201::FHTKey201 (const ctor_key& key ) : HankelTransform( key ) {
244
 
244
 
245
     }  // -----  end of method FHTKey201::FHTKey201  (constructor)  -----
245
     }  // -----  end of method FHTKey201::FHTKey201  (constructor)  -----
246
 
246
 
249
     //      Method:  FHTKey201
249
     //      Method:  FHTKey201
250
     // Description:  constructor (locked)
250
     // Description:  constructor (locked)
251
     //--------------------------------------------------------------------------------------
251
     //--------------------------------------------------------------------------------------
252
-    FHTKey201::FHTKey201( const YAML::Node& node, const ctor_key& ) : HankelTransform(node) {
252
+    FHTKey201::FHTKey201( const YAML::Node& node, const ctor_key& key) : HankelTransform(node, key) {
253
 
253
 
254
     }
254
     }
255
 
255
 

+ 3
- 3
Modules/FDEM1D/src/FHTKey51.cpp Прегледај датотеку

24
     // ====================  FRIEND METHODS  =====================
24
     // ====================  FRIEND METHODS  =====================
25
 
25
 
26
     std::ostream &operator<<(std::ostream &stream, const FHTKey51 &ob) {
26
     std::ostream &operator<<(std::ostream &stream, const FHTKey51 &ob) {
27
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
27
+        stream << ob.Serialize()  << "\n"; // End of doc ---
28
         return stream;
28
         return stream;
29
     }
29
     }
30
 
30
 
92
     //      Method:  FHTKey51
92
     //      Method:  FHTKey51
93
     // Description:  constructor (locked)
93
     // Description:  constructor (locked)
94
     //--------------------------------------------------------------------------------------
94
     //--------------------------------------------------------------------------------------
95
-    FHTKey51::FHTKey51 (const ctor_key& ) : HankelTransform( ) {
95
+    FHTKey51::FHTKey51 (const ctor_key& key ) : HankelTransform( key ) {
96
 
96
 
97
     }  // -----  end of method FHTKey51::FHTKey51  (constructor)  -----
97
     }  // -----  end of method FHTKey51::FHTKey51  (constructor)  -----
98
 
98
 
101
     //      Method:  FHTKey51
101
     //      Method:  FHTKey51
102
     // Description:  constructor (protected)
102
     // Description:  constructor (protected)
103
     //--------------------------------------------------------------------------------------
103
     //--------------------------------------------------------------------------------------
104
-    FHTKey51::FHTKey51( const YAML::Node& node, const ctor_key& ) : HankelTransform(node) {
104
+    FHTKey51::FHTKey51( const YAML::Node& node, const ctor_key& key ) : HankelTransform(node, key) {
105
 
105
 
106
     }
106
     }
107
 
107
 

+ 3
- 3
Modules/FDEM1D/src/FieldPoints.cpp Прегледај датотеку

18
     // ====================    FRIENDS     ======================
18
     // ====================    FRIENDS     ======================
19
 
19
 
20
     std::ostream &operator << (std::ostream &stream, const FieldPoints &ob) {
20
     std::ostream &operator << (std::ostream &stream, const FieldPoints &ob) {
21
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
21
+        stream << ob.Serialize()  << "\n";
22
         return stream;
22
         return stream;
23
     }
23
     }
24
 
24
 
25
     // ====================  LIFECYCLE     ===================================
25
     // ====================  LIFECYCLE     ===================================
26
 
26
 
27
-    FieldPoints::FieldPoints( const ctor_key& ) : LemmaObject( ),
27
+    FieldPoints::FieldPoints( const ctor_key& key ) : LemmaObject( key ),
28
         NumberOfPoints(0), NumberOfBinsE(0), NumberOfBinsH(0) {
28
         NumberOfPoints(0), NumberOfBinsE(0), NumberOfBinsH(0) {
29
     }
29
     }
30
 
30
 
33
     //      Method:  FieldPoints
33
     //      Method:  FieldPoints
34
     // Description:  constructor (protected)
34
     // Description:  constructor (protected)
35
     //--------------------------------------------------------------------------------------
35
     //--------------------------------------------------------------------------------------
36
-    FieldPoints::FieldPoints (const YAML::Node& node, const ctor_key&) : LemmaObject(node) {
36
+    FieldPoints::FieldPoints (const YAML::Node& node, const ctor_key& key) : LemmaObject(node, key) {
37
         //DeSerialize
37
         //DeSerialize
38
         NumberOfPoints = node["NumberOfPoints"].as<int>();
38
         NumberOfPoints = node["NumberOfPoints"].as<int>();
39
         NumberOfBinsE = node["NumberOfBinsE"].as<int>();
39
         NumberOfBinsE = node["NumberOfBinsE"].as<int>();

+ 3
- 3
Modules/FDEM1D/src/GQChave.cpp Прегледај датотеку

22
 namespace Lemma{
22
 namespace Lemma{
23
 
23
 
24
     std::ostream &operator<<(std::ostream &stream, const GQChave &ob) {
24
     std::ostream &operator<<(std::ostream &stream, const GQChave &ob) {
25
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
25
+        stream << ob.Serialize()  << "\n";
26
         return stream;
26
         return stream;
27
     }
27
     }
28
 
28
 
264
     const Real J1_X12 = -0.5382308663841630e-15;
264
     const Real J1_X12 = -0.5382308663841630e-15;
265
 */
265
 */
266
 
266
 
267
-    GQChave::GQChave( const ctor_key& ) : HankelTransform( ) {
267
+    GQChave::GQChave( const ctor_key& key ) : HankelTransform( key ) {
268
         karg.resize(255, 100);
268
         karg.resize(255, 100);
269
         kern.resize(510, 100);
269
         kern.resize(510, 100);
270
     }
270
     }
271
 
271
 
272
-    GQChave::GQChave( const YAML::Node& node, const ctor_key& ) : HankelTransform(node) {
272
+    GQChave::GQChave( const YAML::Node& node, const ctor_key& key ) : HankelTransform(node, key) {
273
 
273
 
274
     }
274
     }
275
 
275
 

+ 3
- 3
Modules/FDEM1D/src/HankelTransform.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const HankelTransform &ob) {
18
     std::ostream &operator << (std::ostream &stream, const HankelTransform &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
-	HankelTransform::HankelTransform( ) : LemmaObject( )	{
23
+	HankelTransform::HankelTransform( const ctor_key& key ) : LemmaObject( key )	{
24
 	}
24
 	}
25
 
25
 
26
-    HankelTransform::HankelTransform( const YAML::Node& node ) : LemmaObject( node )	{
26
+    HankelTransform::HankelTransform( const YAML::Node& node, const ctor_key& key  ) : LemmaObject( node, key )	{
27
 	}
27
 	}
28
 
28
 
29
 	HankelTransform::~HankelTransform( ) {
29
 	HankelTransform::~HankelTransform( ) {

+ 2
- 2
Modules/FDEM1D/src/KernelEM1DManager.cpp Прегледај датотеку

15
 namespace Lemma {
15
 namespace Lemma {
16
 
16
 
17
     std::ostream &operator<<(std::ostream &stream, const KernelEM1DManager &ob) {
17
     std::ostream &operator<<(std::ostream &stream, const KernelEM1DManager &ob) {
18
-        stream << ob.Serialize() << "\n---\n";
18
+        stream << ob.Serialize() << "\n";
19
         return stream;
19
         return stream;
20
     }
20
     }
21
 
21
 
22
     // ====================  LIFECYCLE     =======================
22
     // ====================  LIFECYCLE     =======================
23
 
23
 
24
-    KernelEM1DManager::KernelEM1DManager( const ctor_key& ) : LemmaObject( ), TEReflBase(nullptr),
24
+    KernelEM1DManager::KernelEM1DManager( const ctor_key& key ) : LemmaObject( key ), TEReflBase(nullptr),
25
         TMReflBase(nullptr), Earth(nullptr), Dipole(nullptr) {
25
         TMReflBase(nullptr), Earth(nullptr), Dipole(nullptr) {
26
     }
26
     }
27
 
27
 

+ 3
- 3
Modules/FDEM1D/src/LayeredEarthEM.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const LayeredEarthEM &ob) {
18
     std::ostream &operator << (std::ostream &stream, const LayeredEarthEM &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
     // ====================  LIFECYCLE     ===================================
23
     // ====================  LIFECYCLE     ===================================
24
 
24
 
25
-    LayeredEarthEM::LayeredEarthEM( const ctor_key& key ) : LayeredEarth( LayeredEarth::ctor_key() ) {
25
+    LayeredEarthEM::LayeredEarthEM( const ctor_key& key ) : LayeredEarth( key ) {
26
     }
26
     }
27
 
27
 
28
-    LayeredEarthEM::LayeredEarthEM( const YAML::Node& node, const ctor_key& ) : LayeredEarth(node) {
28
+    LayeredEarthEM::LayeredEarthEM( const YAML::Node& node, const ctor_key& key ) : LayeredEarth(node, key) {
29
         SetNumberOfLayers(NumberOfLayers);
29
         SetNumberOfLayers(NumberOfLayers);
30
         LayerThickness = node["LayerThickness"].as<VectorXr>();
30
         LayerThickness = node["LayerThickness"].as<VectorXr>();
31
         if (node["LayerConductivity"]) {
31
         if (node["LayerConductivity"]) {

+ 4
- 3
Modules/FDEM1D/src/PolygonalWireAntenna.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const PolygonalWireAntenna &ob) {
18
     std::ostream &operator << (std::ostream &stream, const PolygonalWireAntenna &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
 	// ====================  LIFECYCLE     =======================
23
 	// ====================  LIFECYCLE     =======================
24
 
24
 
25
-	PolygonalWireAntenna::PolygonalWireAntenna( const ctor_key& key ) : WireAntenna( WireAntenna::ctor_key() ), minDipoleRatio(.15),
25
+	PolygonalWireAntenna::PolygonalWireAntenna( const ctor_key& key ) :
26
+            WireAntenna( key ), minDipoleRatio(.15),
26
    		minDipoleMoment(1e-6), maxDipoleMoment(1e1), rRepeat(1e10,1e10,1e10) {
27
    		minDipoleMoment(1e-6), maxDipoleMoment(1e1), rRepeat(1e10,1e10,1e10) {
27
 		Points.setZero();
28
 		Points.setZero();
28
         //rRepeat.setOnes();
29
         //rRepeat.setOnes();
29
 	}
30
 	}
30
 
31
 
31
-    PolygonalWireAntenna::PolygonalWireAntenna( const YAML::Node& node, const ctor_key& ) : WireAntenna(node, WireAntenna::ctor_key() ) {
32
+    PolygonalWireAntenna::PolygonalWireAntenna( const YAML::Node& node, const ctor_key& key) : WireAntenna(node, key ) {
32
         minDipoleRatio   = node["minDipoleRatio"].as<Real>();
33
         minDipoleRatio   = node["minDipoleRatio"].as<Real>();
33
         maxDipoleMoment  = node["maxDipoleMoment"].as<Real>();
34
         maxDipoleMoment  = node["maxDipoleMoment"].as<Real>();
34
         minDipoleMoment  = node["minDipoleMoment"].as<Real>();
35
         minDipoleMoment  = node["minDipoleMoment"].as<Real>();

+ 2
- 2
Modules/FDEM1D/src/QWEKey.cpp Прегледај датотеку

43
     // Description:  constructor (protected)
43
     // Description:  constructor (protected)
44
     //--------------------------------------------------------------------------------------
44
     //--------------------------------------------------------------------------------------
45
     //
45
     //
46
-    QWEKey::QWEKey (const ctor_key& ) : HankelTransform( ), RelTol(1e-12), AbsTol(1e-32), nQuad(61), nDelay(1),
46
+    QWEKey::QWEKey (const ctor_key& key) : HankelTransform( key ), RelTol(1e-12), AbsTol(1e-32), nQuad(61), nDelay(1),
47
     //QWEKey::QWEKey (const std::string& name) : HankelTransform(name), RelTol(1e-38), AbsTol(1e-48), nQuad(39), nDelay(5),
47
     //QWEKey::QWEKey (const std::string& name) : HankelTransform(name), RelTol(1e-38), AbsTol(1e-48), nQuad(39), nDelay(5),
48
         nIntervalsMax(40) {
48
         nIntervalsMax(40) {
49
         BesselWeights( J0 ); // TODO experiment with zero weight (J0, J1) options, should be static one time method
49
         BesselWeights( J0 ); // TODO experiment with zero weight (J0, J1) options, should be static one time method
54
     //      Method:  QWEKey
54
     //      Method:  QWEKey
55
     // Description:  constructor (locked)
55
     // Description:  constructor (locked)
56
     //--------------------------------------------------------------------------------------
56
     //--------------------------------------------------------------------------------------
57
-    QWEKey::QWEKey( const YAML::Node& node, const ctor_key& ) : HankelTransform(node) {
57
+    QWEKey::QWEKey( const YAML::Node& node, const ctor_key& key ) : HankelTransform(node, key) {
58
 
58
 
59
     }
59
     }
60
 
60
 

+ 3
- 3
Modules/FDEM1D/src/WireAntenna.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const WireAntenna &ob) {
18
     std::ostream &operator << (std::ostream &stream, const WireAntenna &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc ---
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
     // ====================  LIFECYCLE     =======================
23
     // ====================  LIFECYCLE     =======================
24
 
24
 
25
-    WireAntenna::WireAntenna( const ctor_key& ) : LemmaObject( ),
25
+    WireAntenna::WireAntenna( const ctor_key& key ) : LemmaObject( key ),
26
         NumberOfPoints(0), Current(1), NumberOfTurns(1) {
26
         NumberOfPoints(0), Current(1), NumberOfTurns(1) {
27
     }
27
     }
28
 
28
 
29
-    WireAntenna::WireAntenna( const YAML::Node& node, const ctor_key& ) : LemmaObject( node ) {
29
+    WireAntenna::WireAntenna( const YAML::Node& node, const ctor_key& key ) : LemmaObject( node, key ) {
30
         Points =  node["Points"].as<Vector3Xr>();
30
         Points =  node["Points"].as<Vector3Xr>();
31
         Freqs = node["Freqs"].as<VectorXr>();
31
         Freqs = node["Freqs"].as<VectorXr>();
32
         NumberOfPoints = node["NumberOfPoints"].as<int>();
32
         NumberOfPoints = node["NumberOfPoints"].as<int>();

+ 3
- 4
Modules/LemmaCore/include/CubicSplineInterpolator.h Прегледај датотеку

12
  * @date      09/25/2013 08:20:14 AM
12
  * @date      09/25/2013 08:20:14 AM
13
  * @version   $Id$
13
  * @version   $Id$
14
  * @author    Trevor Irons (ti)
14
  * @author    Trevor Irons (ti)
15
- * @email     Trevor.Irons@xri-geo.com
16
- * @copyright Copyright (c) 2013, XRI Geophysics, LLC
17
- * @copyright Copyright (c) 2013, Trevor Irons
15
+ * @email     Trevor.Irons@lemmasoftware.org
16
+ * @copyright Copyright (c) 2013,2018 Trevor Irons
18
  */
17
  */
19
 
18
 
20
 #ifndef  CUBICSPLINEINTERPOLATOR_INC
19
 #ifndef  CUBICSPLINEINTERPOLATOR_INC
62
     friend std::ostream &operator<<(std::ostream &stream,
61
     friend std::ostream &operator<<(std::ostream &stream,
63
             const CubicSplineInterpolator& ob);
62
             const CubicSplineInterpolator& ob);
64
 
63
 
65
-    struct ctor_key {};
64
+    //struct ctor_key {};
66
 
65
 
67
     public:
66
     public:
68
 
67
 

+ 2
- 2
Modules/LemmaCore/include/Data.h Прегледај датотеку

70
             // ====================  LIFECYCLE     =======================
70
             // ====================  LIFECYCLE     =======================
71
 
71
 
72
             /** Default protected constructor. */
72
             /** Default protected constructor. */
73
-            Data (  );
73
+            Data ( const ctor_key& key  );
74
 
74
 
75
             /** Deserializing contructor */
75
             /** Deserializing contructor */
76
-            Data ( const YAML::Node& node );
76
+            Data ( const YAML::Node& node, const ctor_key& key );
77
 
77
 
78
             /** Default protected constructor. */
78
             /** Default protected constructor. */
79
             ~Data ( );
79
             ~Data ( );

+ 2
- 2
Modules/LemmaCore/include/DataReader.h Прегледај датотеку

53
         // ====================  LIFECYCLE     =======================
53
         // ====================  LIFECYCLE     =======================
54
 
54
 
55
         /// Default protected constructor.
55
         /// Default protected constructor.
56
-        DataReader ( );
56
+        DataReader ( const ctor_key& key );
57
 
57
 
58
         /// Default protected constructor.
58
         /// Default protected constructor.
59
-        DataReader ( const YAML::Node& node );
59
+        DataReader ( const YAML::Node& node, const ctor_key& key );
60
 
60
 
61
         /// Default protected constructor.
61
         /// Default protected constructor.
62
         ~DataReader ( );
62
         ~DataReader ( );

+ 2
- 2
Modules/LemmaCore/include/EarthModel.h Прегледај датотеку

99
             // ====================  LIFECYCLE     =======================
99
             // ====================  LIFECYCLE     =======================
100
 
100
 
101
             /// Default protected constructor.
101
             /// Default protected constructor.
102
-            EarthModel ( );
102
+            EarthModel ( const ctor_key& );
103
 
103
 
104
             /** Deserialize constructor */
104
             /** Deserialize constructor */
105
-            EarthModel (const YAML::Node& node);
105
+            EarthModel (const YAML::Node& node, const ctor_key&);
106
 
106
 
107
             /// Default protected constructor.
107
             /// Default protected constructor.
108
             ~EarthModel ();
108
             ~EarthModel ();

+ 2
- 2
Modules/LemmaCore/include/Filter.h Прегледај датотеку

56
             // ====================  LIFECYCLE     =======================
56
             // ====================  LIFECYCLE     =======================
57
 
57
 
58
             /// Default protected constructor.
58
             /// Default protected constructor.
59
-            Filter ( );
59
+            Filter ( const ctor_key&  );
60
 
60
 
61
             /// Default protected constructor.
61
             /// Default protected constructor.
62
-            Filter ( const YAML::Node& node );
62
+            Filter ( const YAML::Node& node, const ctor_key& );
63
 
63
 
64
             /// Default protected constructor.
64
             /// Default protected constructor.
65
             virtual ~Filter ();
65
             virtual ~Filter ();

+ 2
- 2
Modules/LemmaCore/include/Grid.h Прегледај датотеку

53
         // ====================  LIFECYCLE     ===================================
53
         // ====================  LIFECYCLE     ===================================
54
 
54
 
55
         /** Protected DeDerializing constructor, use factory DeSerialize  method on non abstract classes*/
55
         /** Protected DeDerializing constructor, use factory DeSerialize  method on non abstract classes*/
56
-        Grid (const YAML::Node& node);
56
+        Grid (const YAML::Node& node, const ctor_key& );
57
 
57
 
58
         /// Default protected constructor.
58
         /// Default protected constructor.
59
-        Grid ( );
59
+        Grid ( const ctor_key& );
60
 
60
 
61
         /// Default protected constructor.
61
         /// Default protected constructor.
62
         virtual ~Grid ( );
62
         virtual ~Grid ( );

+ 2
- 2
Modules/LemmaCore/include/GridReader.h Прегледај датотеку

60
             // ====================  LIFECYCLE     =======================
60
             // ====================  LIFECYCLE     =======================
61
 
61
 
62
             /** Default protected constructor, use New */
62
             /** Default protected constructor, use New */
63
-            GridReader ( ) : LemmaObject( ) {
63
+            GridReader ( const ctor_key& key ) : LemmaObject( key ) {
64
             }
64
             }
65
 
65
 
66
             /** Default protected constructor, use New */
66
             /** Default protected constructor, use New */
67
-            GridReader ( const YAML::Node& node ) : LemmaObject( node ) {
67
+            GridReader ( const YAML::Node& node, const ctor_key& key ) : LemmaObject( node, key ) {
68
             }
68
             }
69
 
69
 
70
             /** Default protected constructor, use Delete */
70
             /** Default protected constructor, use Delete */

+ 1
- 3
Modules/LemmaCore/include/LayeredEarth.h Прегледај датотеку

30
         friend class LayeredEarthEM;
30
         friend class LayeredEarthEM;
31
         friend class LayeredEarthMR;
31
         friend class LayeredEarthMR;
32
 
32
 
33
-        struct ctor_key{};
34
-
35
 		public:
33
 		public:
36
 
34
 
37
 			// ====================    FRIENDS     ===========================
35
 			// ====================    FRIENDS     ===========================
107
 			LayeredEarth ( const ctor_key& );
105
 			LayeredEarth ( const ctor_key& );
108
 
106
 
109
             /** Default protected constructor. */
107
             /** Default protected constructor. */
110
-			LayeredEarth (const YAML::Node& node);
108
+			LayeredEarth (const YAML::Node& node, const ctor_key& key);
111
 
109
 
112
 			/** Default protected constructor. */
110
 			/** Default protected constructor. */
113
 			~LayeredEarth ();
111
 			~LayeredEarth ();

+ 1
- 1
Modules/LemmaCore/include/RectilinearGrid.h Прегледај датотеку

34
         /*
34
         /*
35
          *  This key is used to lock the constructors
35
          *  This key is used to lock the constructors
36
          */
36
          */
37
-        struct ctor_key {};
37
+        //struct ctor_key {};
38
 
38
 
39
         public:
39
         public:
40
 
40
 

+ 1
- 1
Modules/LemmaCore/include/RectilinearGridReader.h Прегледај датотеку

39
         /*
39
         /*
40
          *  This key is used to lock the constructors
40
          *  This key is used to lock the constructors
41
          */
41
          */
42
-        struct ctor_key {};
42
+        //struct ctor_key {};
43
 
43
 
44
         public:
44
         public:
45
 
45
 

+ 1
- 1
Modules/LemmaCore/include/RectilinearGridVTKExporter.h Прегледај датотеку

45
     friend std::ostream &operator<<(std::ostream &stream,
45
     friend std::ostream &operator<<(std::ostream &stream,
46
             const RectilinearGridVTKExporter &ob);
46
             const RectilinearGridVTKExporter &ob);
47
 
47
 
48
-    struct ctor_key {};
48
+    //struct ctor_key {};
49
 
49
 
50
     public:
50
     public:
51
 
51
 

+ 1
- 1
Modules/LemmaCore/include/WindowFilter.h Прегледај датотеку

30
 
30
 
31
         friend std::ostream &operator<<(std::ostream &stream, const WindowFilter& ob);
31
         friend std::ostream &operator<<(std::ostream &stream, const WindowFilter& ob);
32
 
32
 
33
-        struct ctor_key {};
33
+        //struct ctor_key {};
34
 
34
 
35
         public:
35
         public:
36
 
36
 

+ 4
- 4
Modules/LemmaCore/src/CubicSplineInterpolator.cpp Прегледај датотеку

12
  * @date      02/07/2014 12:50:52 PM
12
  * @date      02/07/2014 12:50:52 PM
13
  * @version   $Id$
13
  * @version   $Id$
14
  * @author    Trevor Irons (ti)
14
  * @author    Trevor Irons (ti)
15
- * @email     Trevor.Irons@xri-geo.com
16
- * @copyright Copyright (c) 2014, Trevor Irons
15
+ * @email     Trevor.Irons@lemmasoftware.org
16
+ * @copyright Copyright (c) 2014,2018 Trevor Irons
17
  */
17
  */
18
 
18
 
19
 #include "CubicSplineInterpolator.h"
19
 #include "CubicSplineInterpolator.h"
40
     //      Method:  CubicSplineInterpolator
40
     //      Method:  CubicSplineInterpolator
41
     // Description:  constructor (locked with ctor_key)
41
     // Description:  constructor (locked with ctor_key)
42
     //--------------------------------------------------------------------------------------
42
     //--------------------------------------------------------------------------------------
43
-    CubicSplineInterpolator::CubicSplineInterpolator ( const ctor_key& ) : LemmaObject( ) {
43
+    CubicSplineInterpolator::CubicSplineInterpolator ( const ctor_key& key ) : LemmaObject( key ) {
44
 
44
 
45
     }  // -----  end of method CubicSplineInterpolator::CubicSplineInterpolator  (constructor)  -----
45
     }  // -----  end of method CubicSplineInterpolator::CubicSplineInterpolator  (constructor)  -----
46
 
46
 
49
     //      Method:  CubicSplineInterpolator
49
     //      Method:  CubicSplineInterpolator
50
     // Description:  DeSerializing constructor (locked with ctor_key)
50
     // Description:  DeSerializing constructor (locked with ctor_key)
51
     //--------------------------------------------------------------------------------------
51
     //--------------------------------------------------------------------------------------
52
-    CubicSplineInterpolator::CubicSplineInterpolator (const YAML::Node& node, const ctor_key& ) : LemmaObject(node) {
52
+    CubicSplineInterpolator::CubicSplineInterpolator (const YAML::Node& node, const ctor_key& key ) : LemmaObject(node, key) {
53
     }  // -----  end of method CubicSplineInterpolator::CubicSplineInterpolator  (constructor)  -----
53
     }  // -----  end of method CubicSplineInterpolator::CubicSplineInterpolator  (constructor)  -----
54
 
54
 
55
     //--------------------------------------------------------------------------------------
55
     //--------------------------------------------------------------------------------------

+ 3
- 3
Modules/LemmaCore/src/Data.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const Data &ob) {
18
     std::ostream &operator << (std::ostream &stream, const Data &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc --- as a direct stream should encapulste thingy
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
-	Data::Data(  ) : LemmaObject( ) {
23
+	Data::Data( const ctor_key& key  ) : LemmaObject( key ) {
24
 	}
24
 	}
25
 
25
 
26
-    Data::Data( const YAML::Node& node ) : LemmaObject( node ) {
26
+    Data::Data( const YAML::Node& node, const ctor_key& key ) : LemmaObject( node, key ) {
27
 	}
27
 	}
28
 
28
 
29
 
29
 

+ 3
- 3
Modules/LemmaCore/src/DataReader.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const DataReader &ob) {
18
     std::ostream &operator << (std::ostream &stream, const DataReader &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc --- as a direct stream should encapulste thingy
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
-	DataReader::DataReader( ) : LemmaObject( ) {
23
+	DataReader::DataReader( const ctor_key& key ) : LemmaObject( key ) {
24
 
24
 
25
 	}
25
 	}
26
 
26
 
27
-    DataReader::DataReader( const YAML::Node& node ) : LemmaObject( node ) {
27
+    DataReader::DataReader( const YAML::Node& node, const ctor_key& key ) : LemmaObject( node, key ) {
28
 
28
 
29
 	}
29
 	}
30
 
30
 

+ 3
- 3
Modules/LemmaCore/src/EarthModel.cpp Прегледај датотеку

16
 namespace Lemma {
16
 namespace Lemma {
17
 
17
 
18
     std::ostream &operator << (std::ostream &stream, const EarthModel &ob) {
18
     std::ostream &operator << (std::ostream &stream, const EarthModel &ob) {
19
-        stream << ob.Serialize()  << "\n---\n"; // End of doc --- as a direct stream should encapulste thingy
19
+        stream << ob.Serialize()  << "\n";
20
         return stream;
20
         return stream;
21
     }
21
     }
22
 
22
 
23
 	// ====================  LIFECYCLE     =======================
23
 	// ====================  LIFECYCLE     =======================
24
 
24
 
25
-	EarthModel::EarthModel() : LemmaObject( ),
25
+	EarthModel::EarthModel( const ctor_key& key ) : LemmaObject( key ),
26
         BField(0,0,0), BFieldUnit(0,0,0), BInc(0), BDec(0), BMag(0) {
26
         BField(0,0,0), BFieldUnit(0,0,0), BInc(0), BDec(0), BMag(0) {
27
 	}
27
 	}
28
 
28
 
29
-    EarthModel::EarthModel(const YAML::Node& node) : LemmaObject(node) {
29
+    EarthModel::EarthModel(const YAML::Node& node, const ctor_key& key) : LemmaObject(node, key) {
30
         BInc = node["BInc"].as<double>();
30
         BInc = node["BInc"].as<double>();
31
         BDec = node["BDec"].as<double>();
31
         BDec = node["BDec"].as<double>();
32
         BMag = node["BMag"].as<double>();
32
         BMag = node["BMag"].as<double>();

+ 2
- 2
Modules/LemmaCore/src/Filter.cpp Прегледај датотеку

25
     //      Method:  Filter
25
     //      Method:  Filter
26
     // Description:  constructor (protected)
26
     // Description:  constructor (protected)
27
     //--------------------------------------------------------------------------------------
27
     //--------------------------------------------------------------------------------------
28
-    Filter::Filter( ) : LemmaObject( ) { }
28
+    Filter::Filter( const ctor_key& key ) : LemmaObject( key ) { }
29
 
29
 
30
     //--------------------------------------------------------------------------------------
30
     //--------------------------------------------------------------------------------------
31
     //       Class:  Filter
31
     //       Class:  Filter
39
     //      Method:  Filter
39
     //      Method:  Filter
40
     // Description:  DeSerializing constructor (protected)
40
     // Description:  DeSerializing constructor (protected)
41
     //--------------------------------------------------------------------------------------
41
     //--------------------------------------------------------------------------------------
42
-    Filter::Filter ( const YAML::Node& node ) : LemmaObject(node) {
42
+    Filter::Filter ( const YAML::Node& node, const ctor_key& key ) : LemmaObject(node, key) {
43
     }
43
     }
44
 
44
 
45
     //--------------------------------------------------------------------------------------
45
     //--------------------------------------------------------------------------------------

+ 2
- 2
Modules/LemmaCore/src/Grid.cpp Прегледај датотеку

22
 
22
 
23
     // ====================  LIFECYCLE     ===================================
23
     // ====================  LIFECYCLE     ===================================
24
 
24
 
25
-	Grid::Grid( ) : LemmaObject( ) {
25
+	Grid::Grid( const ctor_key& key ) : LemmaObject( key ) {
26
 	}
26
 	}
27
 
27
 
28
-    Grid::Grid( const YAML::Node& node ) : LemmaObject(node) {
28
+    Grid::Grid( const YAML::Node& node, const ctor_key& key ) : LemmaObject(node, key) {
29
 
29
 
30
     }
30
     }
31
 
31
 

+ 3
- 3
Modules/LemmaCore/src/LayeredEarth.cpp Прегледај датотеку

18
 	// ====================    FRIENDS     ======================
18
 	// ====================    FRIENDS     ======================
19
 
19
 
20
     std::ostream &operator << (std::ostream &stream, const LayeredEarth &ob) {
20
     std::ostream &operator << (std::ostream &stream, const LayeredEarth &ob) {
21
-        stream << ob.Serialize()  << "\n---\n"; // End of doc
21
+        stream << ob.Serialize()  << "\n";
22
         return stream;
22
         return stream;
23
     }
23
     }
24
 
24
 
25
 	// ====================  LIFECYCLE     ===================================
25
 	// ====================  LIFECYCLE     ===================================
26
 
26
 
27
-	LayeredEarth::LayeredEarth( const ctor_key& key ) : EarthModel( ),
27
+	LayeredEarth::LayeredEarth( const ctor_key& key ) : EarthModel( key ),
28
 		NumberOfLayers(0), 	NumberOfInterfaces(0) {
28
 		NumberOfLayers(0), 	NumberOfInterfaces(0) {
29
 	}
29
 	}
30
 
30
 
31
 	LayeredEarth::~LayeredEarth() {
31
 	LayeredEarth::~LayeredEarth() {
32
 	}
32
 	}
33
 
33
 
34
-    LayeredEarth::LayeredEarth(const YAML::Node& node) : EarthModel(node) {
34
+    LayeredEarth::LayeredEarth(const YAML::Node& node, const ctor_key& key) : EarthModel(node, key) {
35
         NumberOfLayers = node["NumberOfLayers"].as<int>();
35
         NumberOfLayers = node["NumberOfLayers"].as<int>();
36
         NumberOfInterfaces = node["NumberOfInterfaces"].as<int>();
36
         NumberOfInterfaces = node["NumberOfInterfaces"].as<int>();
37
         LayerThickness = node["LayerThickness"].as<VectorXr>();
37
         LayerThickness = node["LayerThickness"].as<VectorXr>();

+ 2
- 2
Modules/LemmaCore/src/RectilinearGrid.cpp Прегледај датотеку

22
 
22
 
23
     // ====================  LIFECYCLE     =======================
23
     // ====================  LIFECYCLE     =======================
24
 
24
 
25
-    RectilinearGrid::RectilinearGrid( const ctor_key& ) : Grid( ), nx(0), ny(0), nz(0) {
25
+    RectilinearGrid::RectilinearGrid( const ctor_key& key ) : Grid( key ), nx(0), ny(0), nz(0) {
26
 
26
 
27
     }
27
     }
28
 
28
 
29
-    RectilinearGrid::RectilinearGrid( const YAML::Node& node, const ctor_key& ) : Grid(node) {
29
+    RectilinearGrid::RectilinearGrid( const YAML::Node& node, const ctor_key& key ) : Grid(node, key) {
30
 
30
 
31
         nx = node["nx"].as<int>( );
31
         nx = node["nx"].as<int>( );
32
         ny = node["ny"].as<int>( );
32
         ny = node["ny"].as<int>( );

+ 2
- 2
Modules/LemmaCore/src/RectilinearGridReader.cpp Прегледај датотеку

33
     //      Method:  RectilinearGridReader
33
     //      Method:  RectilinearGridReader
34
     // Description:  constructor (locked)
34
     // Description:  constructor (locked)
35
     //--------------------------------------------------------------------------------------
35
     //--------------------------------------------------------------------------------------
36
-    RectilinearGridReader::RectilinearGridReader ( const ctor_key& ) : GridReader( ),
36
+    RectilinearGridReader::RectilinearGridReader ( const ctor_key& key ) : GridReader( key ),
37
         rGrid( nullptr ), Parser( nullptr ) {
37
         rGrid( nullptr ), Parser( nullptr ) {
38
 
38
 
39
     }  // -----  end of method RectilinearGridReader::RectilinearGridReader  (constructor)  -----
39
     }  // -----  end of method RectilinearGridReader::RectilinearGridReader  (constructor)  -----
43
     //      Method:  RectilinearGridReader
43
     //      Method:  RectilinearGridReader
44
     // Description:  DeSerializing constructor (protected)
44
     // Description:  DeSerializing constructor (protected)
45
     //--------------------------------------------------------------------------------------
45
     //--------------------------------------------------------------------------------------
46
-    RectilinearGridReader::RectilinearGridReader (const YAML::Node& node, const ctor_key&  key) : GridReader(node) {
46
+    RectilinearGridReader::RectilinearGridReader (const YAML::Node& node, const ctor_key&  key) : GridReader(node, key) {
47
     }  // -----  end of method RectilinearGridReader::RectilinearGridReader  (constructor)  -----
47
     }  // -----  end of method RectilinearGridReader::RectilinearGridReader  (constructor)  -----
48
 
48
 
49
     //--------------------------------------------------------------------------------------
49
     //--------------------------------------------------------------------------------------

+ 2
- 2
Modules/LemmaCore/src/RectilinearGridVTKExporter.cpp Прегледај датотеку

36
 //      Method:  RectilinearGridVTKExporter
36
 //      Method:  RectilinearGridVTKExporter
37
 // Description:  constructor (protected)
37
 // Description:  constructor (protected)
38
 //--------------------------------------------------------------------------------------
38
 //--------------------------------------------------------------------------------------
39
-RectilinearGridVTKExporter::RectilinearGridVTKExporter ( const ctor_key& ) : LemmaObject( ), Grid(nullptr), VTKGrid(nullptr) {
39
+RectilinearGridVTKExporter::RectilinearGridVTKExporter ( const ctor_key& key ) : LemmaObject( key ), Grid(nullptr), VTKGrid(nullptr) {
40
 
40
 
41
 }  // -----  end of method RectilinearGridVTKExporter::RectilinearGridVTKExporter  (constructor)  -----
41
 }  // -----  end of method RectilinearGridVTKExporter::RectilinearGridVTKExporter  (constructor)  -----
42
 
42
 
45
 //      Method:  RectilinearGridVTKExporter
45
 //      Method:  RectilinearGridVTKExporter
46
 // Description:  DeSerializing constructor (protected)
46
 // Description:  DeSerializing constructor (protected)
47
 //--------------------------------------------------------------------------------------
47
 //--------------------------------------------------------------------------------------
48
-RectilinearGridVTKExporter::RectilinearGridVTKExporter (const YAML::Node& node, const ctor_key&  key) : LemmaObject(node) {
48
+RectilinearGridVTKExporter::RectilinearGridVTKExporter (const YAML::Node& node, const ctor_key&  key) : LemmaObject(node, key) {
49
     if (node["Grid"]) {
49
     if (node["Grid"]) {
50
         this->Grid = RectilinearGrid::DeSerialize( node["Grid"] );
50
         this->Grid = RectilinearGrid::DeSerialize( node["Grid"] );
51
     }
51
     }

+ 3
- 3
Modules/LemmaCore/src/WindowFilter.cpp Прегледај датотеку

18
     // ====================  FRIEND METHODS  =====================
18
     // ====================  FRIEND METHODS  =====================
19
 
19
 
20
     std::ostream &operator << (std::ostream &stream, const WindowFilter &ob) {
20
     std::ostream &operator << (std::ostream &stream, const WindowFilter &ob) {
21
-        stream << ob.Serialize()  << "\n---\n"; // End of doc --- as a direct stream should encapulste thingy
21
+        stream << ob.Serialize()  << "\n";
22
         return stream;
22
         return stream;
23
     }
23
     }
24
 
24
 
29
     //      Method:  WindowFilter
29
     //      Method:  WindowFilter
30
     // Description:  constructor (locked with ctor_key)
30
     // Description:  constructor (locked with ctor_key)
31
     //--------------------------------------------------------------------------------------
31
     //--------------------------------------------------------------------------------------
32
-    WindowFilter::WindowFilter( const ctor_key& ) : Filter( ),
32
+    WindowFilter::WindowFilter( const ctor_key& key ) : Filter( key ),
33
         Width(0), SamplingRate(0), Bandwidth(0), Coefficients(), Type(RECTANGULAR)
33
         Width(0), SamplingRate(0), Bandwidth(0), Coefficients(), Type(RECTANGULAR)
34
     {
34
     {
35
     }   // -----  end of method WindowFilter::WindowFilter  (constructor)  -----
35
     }   // -----  end of method WindowFilter::WindowFilter  (constructor)  -----
39
     //      Method:  WindowFilter
39
     //      Method:  WindowFilter
40
     // Description:  DeSerializing constructor (locked with ctor_key)
40
     // Description:  DeSerializing constructor (locked with ctor_key)
41
     //--------------------------------------------------------------------------------------
41
     //--------------------------------------------------------------------------------------
42
-    WindowFilter::WindowFilter( const YAML::Node& node, const ctor_key& ) : Filter( node ),
42
+    WindowFilter::WindowFilter( const YAML::Node& node, const ctor_key& key) : Filter( node, key ),
43
         Width(0), SamplingRate(0), Bandwidth(0), Coefficients(), Type(RECTANGULAR)
43
         Width(0), SamplingRate(0), Bandwidth(0), Coefficients(), Type(RECTANGULAR)
44
     {
44
     {
45
         Width = node["Width"].as<int>( );
45
         Width = node["Width"].as<int>( );

Loading…
Откажи
Сачувај