Changeset 1542 for XIOS/trunk/src/object_template_impl.hpp
- Timestamp:
- 06/13/18 16:48:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/object_template_impl.hpp
r1330 r1542 24 24 xios_map<StdString, 25 25 xios_map<StdString, 26 boost::shared_ptr<T> > > CObjectTemplate<T>::AllMapObj;26 std::shared_ptr<T> > > CObjectTemplate<T>::AllMapObj; 27 27 28 28 template <class T> 29 29 xios_map<StdString, 30 std::vector< boost::shared_ptr<T> > > CObjectTemplate<T>::AllVectObj;30 std::vector<std::shared_ptr<T> > > CObjectTemplate<T>::AllVectObj; 31 31 32 32 template <class T> … … 63 63 64 64 template <class T> 65 std::vector< boost::shared_ptr<T> > &65 std::vector<std::shared_ptr<T> > & 66 66 CObjectTemplate<T>::GetAllVectobject(const StdString & contextId) 67 67 { … … 412 412 413 413 template <typename T> 414 s hared_ptr<T> CObjectTemplate<T>::getShared(const T* ptr)414 std::shared_ptr<T> CObjectTemplate<T>::getShared(const T* ptr) 415 415 { 416 416 return CObjectFactory::GetObject<T>(ptr); … … 418 418 419 419 template <typename T> 420 s hared_ptr<T> CObjectTemplate<T>::getShared(void)420 std::shared_ptr<T> CObjectTemplate<T>::getShared(void) 421 421 { 422 422 return CObjectFactory::GetObject<T>((T*)this); … … 426 426 const vector<T*> CObjectTemplate<T>::getAll() 427 427 { 428 const vector< s hared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>();428 const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(); 429 429 vector<T*> vect; 430 430 431 typename vector<s hared_ptr<T> >::const_iterator it;431 typename vector<std::shared_ptr<T> >::const_iterator it; 432 432 for(it=shared_vect.begin();it!=shared_vect.end();++it) vect.push_back(it->get()); 433 433 return vect; … … 437 437 const vector<T*> CObjectTemplate<T>::getAll(const string & id) 438 438 { 439 const vector< s hared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(id);439 const vector< std::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(id); 440 440 vector<T*> vect; 441 441 442 typename vector<s hared_ptr<T> >::const_iterator it;442 typename vector<std::shared_ptr<T> >::const_iterator it; 443 443 for(it=shared_vect.begin();it!=shared_vect.end();++it) vect.push_back(it->get()); 444 444 return vect; … … 475 475 oss << iendl; 476 476 oss << "#include <boost/multi_array.hpp>" << iendl; 477 oss << "#include <boost /shared_ptr.hpp>" << iendl;477 oss << "#include <boostXXX/shared_ptr.hpp>" << iendl; 478 478 oss << "#include \"xios.hpp\"" << iendl; 479 479 oss << "#include \"attribute_template.hpp\"" << iendl;
Note: See TracChangeset
for help on using the changeset viewer.