Browse Source

Movement of GetName from headers to make Clang happy :)

submodule
Trevor Irons 7 years ago
parent
commit
cdfa8abf79

+ 1
- 3
Modules/FDEM1D/include/DipoleSource.h View File

@@ -211,9 +211,7 @@ namespace Lemma {
211 211
             #endif
212 212
 
213 213
             /** Returns the name of the underlying class, similiar to Python's type */
214
-            virtual inline std::string GetName() const {
215
-                return CName;
216
-            }
214
+            virtual std::string GetName() const ;
217 215
 
218 216
         private:
219 217
 

+ 1
- 3
Modules/FDEM1D/include/EMEarth1D.h View File

@@ -146,9 +146,7 @@ namespace Lemma {
146 146
              *  Returns the name of the underlying class, similiar to Python's type
147 147
              *  @return string of class name
148 148
              */
149
-            virtual inline std::string GetName() const {
150
-                return CName;
151
-            }
149
+            virtual std::string GetName() const;
152 150
 
153 151
             /**
154 152
              *  Returns the Mode enum tag.

+ 1
- 3
Modules/FDEM1D/include/FHTAnderson801.h View File

@@ -148,9 +148,7 @@ class FHTAnderson801 : public HankelTransform {
148 148
                         const Real &wavef, KernelEM1DBase* Kernel);
149 149
 
150 150
         /** Returns the name of the underlying class, similiar to Python's type */
151
-        virtual inline std::string GetName() const {
152
-            return CName;
153
-        }
151
+        virtual inline std::string GetName() const;
154 152
 
155 153
     protected:
156 154
 

+ 1
- 3
Modules/FDEM1D/include/FHTKey101.h View File

@@ -88,9 +88,7 @@ namespace Lemma {
88 88
         // ====================  ACCESS        =======================
89 89
 
90 90
         // ====================  INQUIRY       =======================
91
-        virtual inline std::string GetName() const {
92
-            return CName;
93
-        }
91
+        virtual std::string GetName() const;
94 92
 
95 93
         protected:
96 94
 

+ 1
- 3
Modules/FDEM1D/include/FHTKey201.h View File

@@ -90,9 +90,7 @@ namespace Lemma {
90 90
         // ====================  INQUIRY       =======================
91 91
 
92 92
         /** Returns the name of the underlying class, similiar to Python's type */
93
-        virtual inline std::string GetName() const {
94
-            return CName;
95
-        }
93
+        virtual std::string GetName() const;
96 94
 
97 95
         protected:
98 96
 

+ 1
- 3
Modules/FDEM1D/include/FHTKey51.h View File

@@ -90,9 +90,7 @@ namespace Lemma {
90 90
         // ====================  INQUIRY       =======================
91 91
 
92 92
         /** Returns the name of the underlying class, similiar to Python's type */
93
-        virtual inline std::string GetName() const {
94
-            return CName;
95
-        }
93
+        virtual inline std::string GetName() const ;
96 94
 
97 95
         protected:
98 96
 

+ 1
- 3
Modules/FDEM1D/include/FieldPoints.h View File

@@ -114,9 +114,7 @@ namespace Lemma {
114 114
             // ====================  INQUIRY       ===========================
115 115
 
116 116
             /** Returns the name of the underlying class, similiar to Python's type */
117
-            virtual inline std::string GetName() const {
118
-                return CName;
119
-            }
117
+            virtual std::string GetName() const ;
120 118
 
121 119
             /// Returns the number of receiverpoints.
122 120
             int GetNumberOfPoints();

+ 1
- 3
Modules/FDEM1D/include/GQChave.h View File

@@ -85,9 +85,7 @@ namespace Lemma {
85 85
 			// ====================  INQUIRY       ============================
86 86
 
87 87
             /** Returns the name of the underlying class, similiar to Python's type */
88
-            virtual inline std::string GetName() const {
89
-                return CName;
90
-            }
88
+            virtual inline std::string GetName() const ;
91 89
 
92 90
 			// ====================  DATA MEMBERS  ============================
93 91
 

+ 1
- 3
Modules/FDEM1D/include/HankelTransform.h View File

@@ -66,9 +66,7 @@ namespace Lemma {
66 66
 
67 67
                 // ====================  INQUIRY       =======================
68 68
                 /** Returns the name of the underlying class, similiar to Python's type */
69
-                virtual inline std::string GetName() const {
70
-                    return CName;
71
-                }
69
+                virtual inline std::string GetName() const = 0 ;
72 70
 
73 71
                 // ====================  DATA MEMBERS  =======================
74 72
 

+ 1
- 3
Modules/FDEM1D/include/KernelEM1DManager.h View File

@@ -133,9 +133,7 @@ namespace Lemma {
133 133
             // ====================  INQUIRY       =======================
134 134
 
135 135
             /** Returns the name of the underlying class, similiar to Python's type */
136
-            virtual inline std::string GetName() const {
137
-                return CName;
138
-            }
136
+            virtual inline std::string GetName() const ;
139 137
 
140 138
         protected:
141 139
 

+ 1
- 3
Modules/FDEM1D/include/LayeredEarthEM.h View File

@@ -245,9 +245,7 @@ namespace Lemma {
245 245
             VectorXr GetLayerBreathPermitivity( );
246 246
 
247 247
             /** Returns the name of the underlying class, similiar to Python's type */
248
-            virtual inline std::string GetName() const {
249
-                return CName;
250
-            }
248
+            virtual std::string GetName() const ;
251 249
 
252 250
         protected:
253 251
 

+ 1
- 3
Modules/FDEM1D/include/PolygonalWireAntenna.h View File

@@ -97,9 +97,7 @@ namespace Lemma {
97 97
             // ====================  INQUIRY       =======================
98 98
 
99 99
             /** Returns the name of the underlying class, similiar to Python's type */
100
-            virtual inline std::string GetName() const {
101
-                return CName;
102
-            }
100
+            virtual std::string GetName() const ;
103 101
 
104 102
         protected:
105 103
 

+ 1
- 3
Modules/FDEM1D/include/QWEKey.h View File

@@ -100,9 +100,7 @@ namespace Lemma {
100 100
         // ====================  INQUIRY       =======================
101 101
 
102 102
         /** Returns the name of the underlying class, similiar to Python's type */
103
-        virtual inline std::string GetName() const {
104
-            return CName;
105
-        }
103
+        virtual std::string GetName() const ;
106 104
 
107 105
         protected:
108 106
 

+ 1
- 3
Modules/FDEM1D/include/WireAntenna.h View File

@@ -187,9 +187,7 @@ namespace Lemma {
187 187
             bool IsHorizontallyPlanar();
188 188
 
189 189
             /** Returns the name of the underlying class, similiar to Python's type */
190
-            virtual inline std::string GetName() const {
191
-                return CName;
192
-            }
190
+            virtual std::string GetName() const;
193 191
 
194 192
         protected:
195 193
 

+ 9
- 0
Modules/FDEM1D/src/DipoleSource.cpp View File

@@ -107,6 +107,15 @@ namespace Lemma {
107 107
         return Obj;
108 108
     }
109 109
 
110
+    //--------------------------------------------------------------------------------------
111
+    //       Class:  DipoleSource
112
+    //      Method:  GetName
113
+    // Description:  Class identifier
114
+    //--------------------------------------------------------------------------------------
115
+    inline std::string DipoleSource::GetName (  ) const {
116
+        return CName;
117
+    }		// -----  end of method DipoleSource::GetName  -----
118
+
110 119
     // ====================  ACCESS        ======================
111 120
     void DipoleSource::SetLocation(const Vector3r &posin) {
112 121
         this->Location = posin;

+ 9
- 0
Modules/FDEM1D/src/EMEarth1D.cpp View File

@@ -98,6 +98,15 @@ namespace Lemma {
98 98
         return node;
99 99
     }
100 100
 
101
+    //--------------------------------------------------------------------------------------
102
+    //       Class:  EMEarth1D
103
+    //      Method:  GetName
104
+    // Description:  Class identifier
105
+    //--------------------------------------------------------------------------------------
106
+    inline std::string EMEarth1D::GetName (  ) const {
107
+        return CName;
108
+    }		// -----  end of method EMEarth1D::GetName  -----
109
+
101 110
     // ====================  ACCESS        ===================================
102 111
     void EMEarth1D::AttachDipoleSource( std::shared_ptr<DipoleSource> dipoleptr) {
103 112
         Dipole = dipoleptr;

+ 9
- 0
Modules/FDEM1D/src/FHTAnderson801.cpp View File

@@ -891,6 +891,15 @@ namespace Lemma {
891 891
         splineVecImag.clear();
892 892
     }
893 893
 
894
+    //--------------------------------------------------------------------------------------
895
+    //       Class:  FHTAnderson801
896
+    //      Method:  GetName
897
+    // Description:  Class identifier
898
+    //--------------------------------------------------------------------------------------
899
+    inline std::string FHTAnderson801::GetName (  ) const {
900
+        return CName;
901
+    }		// -----  end of method FHTAnderson801::GetName  -----
902
+
894 903
 	// ====================  OPERATIONS    ==============================
895 904
 
896 905
     void FHTAnderson801::ComputeRelated(const Real& rho, std::shared_ptr<KernelEM1DBase> Kernel) {

+ 9
- 0
Modules/FDEM1D/src/FHTKey101.cpp View File

@@ -198,6 +198,15 @@ namespace Lemma {
198 198
 
199 199
     //--------------------------------------------------------------------------------------
200 200
     //       Class:  FHTKey101
201
+    //      Method:  GetName
202
+    // Description:  Class identifier
203
+    //--------------------------------------------------------------------------------------
204
+    inline std::string FHTKey101::GetName (  ) const {
205
+        return CName;
206
+    }		// -----  end of method FHTKey101::GetName  -----
207
+
208
+    //--------------------------------------------------------------------------------------
209
+    //       Class:  FHTKey101
201 210
     //      Method:  Zgauss
202 211
     //--------------------------------------------------------------------------------------
203 212
     Complex FHTKey101::Zgauss ( const int &ikk, const EMMODE &imode,

+ 9
- 0
Modules/FDEM1D/src/FHTKey201.cpp View File

@@ -297,6 +297,15 @@ namespace Lemma {
297 297
 
298 298
     //--------------------------------------------------------------------------------------
299 299
     //       Class:  FHTKey201
300
+    //      Method:  GetName
301
+    // Description:  Class identifier
302
+    //--------------------------------------------------------------------------------------
303
+    inline std::string FHTKey201::GetName (  ) const {
304
+        return CName;
305
+    }		// -----  end of method FHTKey201::GetName  -----
306
+
307
+    //--------------------------------------------------------------------------------------
308
+    //       Class:  FHTKey201
300 309
     //      Method:  Zgauss
301 310
     //--------------------------------------------------------------------------------------
302 311
     Complex FHTKey201::Zgauss ( const int &ikk, const EMMODE &imode,

+ 9
- 0
Modules/FDEM1D/src/FHTKey51.cpp View File

@@ -149,6 +149,15 @@ namespace Lemma {
149 149
 
150 150
     //--------------------------------------------------------------------------------------
151 151
     //       Class:  FHTKey51
152
+    //      Method:  GetName
153
+    // Description:  Class identifier
154
+    //--------------------------------------------------------------------------------------
155
+    inline std::string FHTKey51::GetName (  ) const {
156
+        return CName;
157
+    }		// -----  end of method FHTKey51::GetName  -----
158
+
159
+    //--------------------------------------------------------------------------------------
160
+    //       Class:  FHTKey51
152 161
     //      Method:  Zgauss
153 162
     //--------------------------------------------------------------------------------------
154 163
     Complex FHTKey51::Zgauss ( const int &ikk, const EMMODE &imode,

+ 9
- 0
Modules/FDEM1D/src/FieldPoints.cpp View File

@@ -79,6 +79,15 @@ namespace Lemma {
79 79
         return std::make_shared<FieldPoints> ( node, ctor_key() );
80 80
     }		// -----  end of method FieldPoints::DeSerialize  -----
81 81
 
82
+    //--------------------------------------------------------------------------------------
83
+    //       Class:  FieldPoints
84
+    //      Method:  GetName
85
+    // Description:  Class identifier
86
+    //--------------------------------------------------------------------------------------
87
+    inline std::string FieldPoints::GetName (  ) const {
88
+        return CName;
89
+    }		// -----  end of method FieldPoints::GetName  -----
90
+
82 91
     // ====================  ACCESS        ===================================
83 92
 
84 93
     void FieldPoints::SetNumberOfPoints(const int &nrec) {

+ 9
- 0
Modules/FDEM1D/src/GQChave.cpp View File

@@ -309,6 +309,15 @@ namespace Lemma{
309 309
 
310 310
     /////////////////////////////////////////////////////////////
311 311
 
312
+    //--------------------------------------------------------------------------------------
313
+    //       Class:  GQChave
314
+    //      Method:  GetName
315
+    // Description:  Class identifier
316
+    //--------------------------------------------------------------------------------------
317
+    inline std::string GQChave::GetName (  ) const {
318
+        return CName;
319
+    }		// -----  end of method GQChave::GetName  -----
320
+
312 321
     Complex GQChave::
313 322
             Zgauss(const int &ikk, const EMMODE &mode,
314 323
                     const int &itype, const Real &rho, const Real &wavef,

+ 9
- 1
Modules/FDEM1D/src/KernelEM1DManager.cpp View File

@@ -19,7 +19,6 @@ namespace Lemma {
19 19
         return stream;
20 20
     }
21 21
 
22
-
23 22
     // ====================  LIFECYCLE     =======================
24 23
 
25 24
     KernelEM1DManager::KernelEM1DManager( const ctor_key& ) : LemmaObject( ), TEReflBase(nullptr),
@@ -37,6 +36,15 @@ namespace Lemma {
37 36
 
38 37
     // ====================  ACCESS        =======================
39 38
 
39
+    //--------------------------------------------------------------------------------------
40
+    //       Class:  KernelEM1DManager
41
+    //      Method:  GetName
42
+    // Description:  Class identifier
43
+    //--------------------------------------------------------------------------------------
44
+    inline std::string KernelEM1DManager::GetName (  ) const {
45
+        return CName;
46
+    }		// -----  end of method KernelEM1DManager::GetName  -----
47
+
40 48
     // A race condition can develop with these. It's OK to not attach, since this is an internal class, and
41 49
     // we know what is going on.
42 50
     void KernelEM1DManager::SetEarth( std::shared_ptr<LayeredEarthEM> Earthin) {

+ 9
- 0
Modules/FDEM1D/src/LayeredEarthEM.cpp View File

@@ -74,6 +74,15 @@ namespace Lemma {
74 74
         return node;
75 75
     }
76 76
 
77
+    //--------------------------------------------------------------------------------------
78
+    //       Class:  LayeredEarthEM
79
+    //      Method:  GetName
80
+    // Description:  Class identifier
81
+    //--------------------------------------------------------------------------------------
82
+    inline std::string LayeredEarthEM::GetName (  ) const {
83
+        return CName;
84
+    }		// -----  end of method LayeredEarthEM::GetName  -----
85
+
77 86
     // ====================  OPERATIONS    ===================================
78 87
     void LayeredEarthEM::EvaluateColeColeModel(const Real& omega) {
79 88
 

+ 8
- 0
Modules/FDEM1D/src/PolygonalWireAntenna.cpp View File

@@ -93,6 +93,14 @@ namespace Lemma {
93 93
 		return copy;
94 94
 	}
95 95
 
96
+    //--------------------------------------------------------------------------------------
97
+    //       Class:  PolygonalWireAntenna
98
+    //      Method:  GetName
99
+    // Description:  Class identifier
100
+    //--------------------------------------------------------------------------------------
101
+    inline std::string PolygonalWireAntenna::GetName (  ) const {
102
+        return CName;
103
+    }		// -----  end of method PolygonalWireAntenna::GetName  -----
96 104
 
97 105
     void PolygonalWireAntenna::SetMinDipoleRatio (const Real& ratio) {
98 106
         minDipoleRatio = ratio;

+ 9
- 0
Modules/FDEM1D/src/QWEKey.cpp View File

@@ -102,6 +102,15 @@ namespace Lemma {
102 102
 
103 103
     //--------------------------------------------------------------------------------------
104 104
     //       Class:  QWEKey
105
+    //      Method:  GetName
106
+    // Description:  Class identifier
107
+    //--------------------------------------------------------------------------------------
108
+    inline std::string QWEKey::GetName (  ) const {
109
+        return CName;
110
+    }		// -----  end of method QWEKey::GetName  -----
111
+
112
+    //--------------------------------------------------------------------------------------
113
+    //       Class:  QWEKey
105 114
     //      Method:  Zgauss
106 115
     //--------------------------------------------------------------------------------------
107 116
     Complex QWEKey::Zgauss ( const int &ikk, const EMMODE &imode,

+ 8
- 0
Modules/FDEM1D/src/WireAntenna.cpp View File

@@ -80,6 +80,14 @@ namespace Lemma {
80 80
         return std::make_shared<WireAntenna> ( node, ctor_key() );
81 81
     }		// -----  end of method WireAntenna::DeSerialize  -----
82 82
 
83
+    //--------------------------------------------------------------------------------------
84
+    //       Class:  WireAntenna
85
+    //      Method:  GetName
86
+    // Description:  Class identifier
87
+    //--------------------------------------------------------------------------------------
88
+    inline std::string WireAntenna::GetName (  ) const {
89
+        return CName;
90
+    }		// -----  end of method WireAntenna::GetName  -----
83 91
 
84 92
     // ====================  ACCESS        =======================
85 93
 

Loading…
Cancel
Save