Changeset 1542 for XIOS/trunk/src/group_factory.hpp
- Timestamp:
- 06/13/18 16:48:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/group_factory.hpp
r591 r1542 1 1 #ifndef __XIOS_CGroupFactory__ 2 2 #define __XIOS_CGroupFactory__ 3 4 /// boost headers ///5 #include <boost/shared_ptr.hpp>6 3 7 4 /// XIOS headers /// … … 23 20 24 21 template <typename U> 25 static void AddGroup( boost::shared_ptr<U> pgroup,26 boost::shared_ptr<U> cgroup);22 static void AddGroup(std::shared_ptr<U> pgroup, 23 std::shared_ptr<U> cgroup); 27 24 28 25 template <typename U> 29 static void AddChild( boost::shared_ptr<U> group,30 boost::shared_ptr<typename U::RelChild> child);26 static void AddChild(std::shared_ptr<U> group, 27 std::shared_ptr<typename U::RelChild> child); 31 28 32 29 /// Accesseurs /// … … 34 31 35 32 template <typename U> 36 static boost::shared_ptr<U>37 GetGroup( boost::shared_ptr<U> group, const StdString & id);33 static std::shared_ptr<U> 34 GetGroup(std::shared_ptr<U> group, const StdString & id); 38 35 39 36 template <typename U> 40 static boost::shared_ptr<typename U::RelChild>41 GetChild( boost::shared_ptr<U> group, const StdString & id);37 static std::shared_ptr<typename U::RelChild> 38 GetChild(std::shared_ptr<U> group, const StdString & id); 42 39 43 40 template <typename U> 44 static int GetGroupNum( boost::shared_ptr<U> group);41 static int GetGroupNum(std::shared_ptr<U> group); 45 42 template <typename U> 46 static int GetGroupIdNum( boost::shared_ptr<U> group);43 static int GetGroupIdNum(std::shared_ptr<U> group); 47 44 template <typename U> 48 static int GetChildNum( boost::shared_ptr<U> group);45 static int GetChildNum(std::shared_ptr<U> group); 49 46 template <typename U> 50 static int GetChildIdNum( boost::shared_ptr<U> group);47 static int GetChildIdNum(std::shared_ptr<U> group); 51 48 52 49 /// Tests /// 53 50 template <typename U> 54 static bool HasGroup( boost::shared_ptr<U> group, const StdString & id);51 static bool HasGroup(std::shared_ptr<U> group, const StdString & id); 55 52 56 53 template <typename U> 57 static bool HasChild( boost::shared_ptr<U> group, const StdString & id);54 static bool HasChild(std::shared_ptr<U> group, const StdString & id); 58 55 59 56 /// Instanciateur /// 60 57 template <typename U> 61 static boost::shared_ptr<U>62 CreateGroup( boost::shared_ptr<U> group, const StdString & id = StdString(""));58 static std::shared_ptr<U> 59 CreateGroup(std::shared_ptr<U> group, const StdString & id = StdString("")); 63 60 64 61 template <typename U> 65 static boost::shared_ptr<typename U::RelChild>66 CreateChild( boost::shared_ptr<U> group, const StdString & id = StdString(""));62 static std::shared_ptr<typename U::RelChild> 63 CreateChild(std::shared_ptr<U> group, const StdString & id = StdString("")); 67 64 68 65 private :
Note: See TracChangeset
for help on using the changeset viewer.