Changeset 1601 for XIOS/dev/dev_trunk_omp/src/object_template_impl.hpp
- Timestamp:
- 11/19/18 15:52:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/object_template_impl.hpp
r1542 r1601 24 24 xios_map<StdString, 25 25 xios_map<StdString, 26 std::shared_ptr<T> > > CObjectTemplate<T>::AllMapObj;26 std::shared_ptr<T> > > *CObjectTemplate<T>::AllMapObj_ptr = 0; 27 27 28 28 template <class T> 29 29 xios_map<StdString, 30 std::vector<std::shared_ptr<T> > > CObjectTemplate<T>::AllVectObj;31 32 template <class T> 33 xios_map<StdString,long int> CObjectTemplate<T>::GenId;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; 34 34 35 35 template <class T> … … 66 66 CObjectTemplate<T>::GetAllVectobject(const StdString & contextId) 67 67 { 68 return (CObjectTemplate<T>::AllVectObj[contextId]);68 return (CObjectTemplate<T>::AllVectObj_ptr->at(contextId)); 69 69 } 70 70 … … 426 426 const vector<T*> CObjectTemplate<T>::getAll() 427 427 { 428 const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>( );428 const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(CObjectFactory::GetCurrentContextId()); 429 429 vector<T*> vect; 430 430
Note: See TracChangeset
for help on using the changeset viewer.