Changeset 347 for XIOS/trunk/src/node/grid.cpp
- Timestamp:
- 05/21/12 17:57:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/grid.cpp
r346 r347 25 25 CGrid::~CGrid(void) 26 26 { 27 this->axis.reset() ;28 this->domain.reset() ;27 // this->axis.reset() ; 28 // this->domain.reset() ; 29 29 30 30 for (StdSize i = 0; i < this->storeIndex.size(); i++) … … 73 73 //--------------------------------------------------------------- 74 74 75 const boost::shared_ptr<CAxis>CGrid::getRelAxis (void) const75 const CAxis* CGrid::getRelAxis (void) const 76 76 { 77 77 return (this->axis ); … … 80 80 //--------------------------------------------------------------- 81 81 82 const boost::shared_ptr<CDomain>CGrid::getRelDomain(void) const82 const CDomain* CGrid::getRelDomain(void) const 83 83 { 84 84 return (this->domain ); … … 158 158 { 159 159 if (this->isChecked) return; 160 shared_ptr<CContext>context = CContext::getCurrent() ;160 CContext* context = CContext::getCurrent() ; 161 161 CContextClient* client=context->client ; 162 162 … … 306 306 //---------------------------------------------------------------- 307 307 308 boost::shared_ptr<CGrid> 309 CGrid::CreateGrid(boost::shared_ptr<CDomain> domain) 308 CGrid* CGrid::createGrid(CDomain* domain) 310 309 { 311 310 StdString new_id = StdString("__") + domain->getId() + StdString("__") ; 312 boost::shared_ptr<CGrid>grid = CGridGroup::get("grid_definition")->createChild(new_id) ;311 CGrid* grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 313 312 grid->domain_ref.setValue(domain->getId()); 314 313 return (grid); 315 314 } 316 315 317 boost::shared_ptr<CGrid> 318 CGrid::CreateGrid(boost::shared_ptr<CDomain> domain, boost::shared_ptr<CAxis> axis) 316 CGrid* CGrid::createGrid(CDomain* domain, CAxis* axis) 319 317 { 320 318 StdString new_id = StdString("__") + domain->getId() + 321 319 StdString("_") + axis->getId() + StdString("__") ; 322 boost::shared_ptr<CGrid>grid = CGridGroup::get("grid_definition")->createChild(new_id) ;320 CGrid* grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 323 321 grid->domain_ref.setValue(domain->getId()); 324 322 grid->axis_ref.setValue(axis->getId()); … … 416 414 void CGrid::sendIndex(void) 417 415 { 418 shared_ptr<CContext>context = CContext::getCurrent() ;416 CContext* context = CContext::getCurrent() ; 419 417 CContextClient* client=context->client ; 420 418
Note: See TracChangeset
for help on using the changeset viewer.