Преглед на файлове

RGridReader tweaks

submodule
T-bone преди 6 години
родител
ревизия
685de74d5f

+ 1
- 1
Modules/LemmaCore/include/GridReader.h Целия файл

@@ -46,7 +46,7 @@ namespace Lemma {
46 46
 
47 47
             virtual void ReadASCIIGridFile( const std::string& name )=0;
48 48
 
49
-            virtual std::shared_ptr< Grid > GetGrid( )=0;
49
+            virtual std::shared_ptr< Grid > GetGrid( ) const =0;
50 50
 
51 51
             // ====================  ACCESS        =======================
52 52
 

+ 1
- 1
Modules/LemmaCore/include/RectilinearGridReader.h Целия файл

@@ -109,7 +109,7 @@ namespace Lemma {
109 109
              * Accessor method for the underlying RectilinearGrid class constructed
110 110
              * from the input file.
111 111
              */
112
-            std::shared_ptr<Grid> GetGrid();
112
+            virtual std::shared_ptr<Grid> GetGrid() const ;
113 113
 
114 114
             // ====================  INQUIRY       =======================
115 115
 

+ 2
- 1
Modules/LemmaCore/src/RectilinearGridReader.cpp Целия файл

@@ -141,8 +141,9 @@ namespace Lemma {
141 141
     //       Class:  RectilinearGridReader
142 142
     //      Method:  GetGrid
143 143
     //--------------------------------------------------------------------------------------
144
-    std::shared_ptr<Grid> RectilinearGridReader::GetGrid (  ) {
144
+    std::shared_ptr<Grid> RectilinearGridReader::GetGrid (  ) const {
145 145
         return std::static_pointer_cast<Grid> (rGrid);
146
+        //return rGrid;
146 147
     }		// -----  end of method RectilinearGridReader::GetGrid  -----
147 148
 
148 149
 

Loading…
Отказ
Запис