소스 검색

RGridReader tweaks

submodule
T-bone 7 년 전
부모
커밋
685de74d5f
3개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    1
      Modules/LemmaCore/include/GridReader.h
  2. 1
    1
      Modules/LemmaCore/include/RectilinearGridReader.h
  3. 2
    1
      Modules/LemmaCore/src/RectilinearGridReader.cpp

+ 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…
취소
저장