Changeset 1642 for XIOS/dev/branch_openmp/src/object_template_impl.hpp
- Timestamp:
- 01/23/19 10:31:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/object_template_impl.hpp
r1545 r1642 24 24 xios_map<StdString, 25 25 xios_map<StdString, 26 std::shared_ptr<T> > > *CObjectTemplate<T>::AllMapObj_ptr = 0;26 std::shared_ptr<T> > > CObjectTemplate<T>::AllMapObj; 27 27 28 28 template <class T> 29 29 xios_map<StdString, 30 std::vector<std::shared_ptr<T> > > *CObjectTemplate<T>::AllVectObj_ptr = 0;31 32 template <class T> 33 xios_map<StdString,long int> *CObjectTemplate<T>::GenId_ptr = 0;30 std::vector<std::shared_ptr<T> > > CObjectTemplate<T>::AllVectObj; 31 32 template <class T> 33 xios_map<StdString,long int> CObjectTemplate<T>::GenId; 34 34 35 35 template <class T> … … 66 66 CObjectTemplate<T>::GetAllVectobject(const StdString & contextId) 67 67 { 68 return (CObjectTemplate<T>::AllVectObj_ptr->at(contextId));68 return (CObjectTemplate<T>::AllVectObj[contextId]); 69 69 } 70 70 … … 109 109 template <class T> 110 110 void CObjectTemplate<T>::parse(xml::CXMLNode & node) 111 TRY 111 112 { 112 113 xml::THashAttributes attributes = node.getAttributes(); 113 114 CAttributeMap::setAttributes(attributes); 114 115 } 116 CATCH 115 117 116 118 //--------------------------------------------------------------- … … 426 428 const vector<T*> CObjectTemplate<T>::getAll() 427 429 { 428 const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>( CObjectFactory::GetCurrentContextId());430 const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(); 429 431 vector<T*> vect; 430 432 … … 475 477 oss << iendl; 476 478 oss << "#include <boost/multi_array.hpp>" << iendl; 477 oss << "#include <boostXXX/shared_ptr.hpp>" << iendl;478 479 oss << "#include \"xios.hpp\"" << iendl; 479 480 oss << "#include \"attribute_template.hpp\"" << iendl; … … 509 510 oss << "INTERFACE" << iendl++; 510 511 oss << "! Do not call directly / interface FORTRAN 2003 <-> C99"; 511 SuperClassMap::generateFortran2003Interface(oss, className);512 SuperClassMap::generateFortran2003Interface(oss, className); 512 513 oss << iendl--; 513 514 oss << "END INTERFACE" << iendl--;
Note: See TracChangeset
for help on using the changeset viewer.