Ignore:
Timestamp:
11/16/17 16:20:41 (6 years ago)
Author:
yushan
Message:

dev_omp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/object_factory.hpp

    r1328 r1331  
    1212namespace xios 
    1313{ 
    14    /// ////////////////////// Déclarations ////////////////////// /// 
    15    class CObjectFactory 
    16    { 
    17       public : 
     14  /// ////////////////////// Déclarations ////////////////////// /// 
     15  class CObjectFactory 
     16  { 
     17    public : 
    1818 
    19          /// Mutateurs /// 
    20          static void SetCurrentContextId(const StdString & context); 
     19      /// Mutateurs /// 
     20      static void SetCurrentContextId(const StdString & context); 
    2121 
    22          /// Accesseurs /// 
    23          static StdString & GetCurrentContextId(void); 
     22      /// Accesseurs /// 
     23      static StdString & GetCurrentContextId(void); 
    2424 
    25          template <typename U> 
    26             static  boost::shared_ptr<U> GetObject(const StdString & id); 
     25      template <typename U> 
     26      static  boost::shared_ptr<U> GetObject(const StdString & id); 
    2727 
    28          template <typename U> 
    29             static  boost::shared_ptr<U> GetObject(const StdString& context,const StdString & id); 
     28      template <typename U> 
     29      static  boost::shared_ptr<U> GetObject(const StdString& context,const StdString & id); 
    3030 
    31          template <typename U> 
    32             static  boost::shared_ptr<U> GetObject(const U * const object); 
     31      template <typename U> 
     32      static  boost::shared_ptr<U> GetObject(const U * const object); 
    3333 
    34          template <typename U> 
    35             static  int GetObjectNum(void); 
    36          template <typename U> 
    37             static  int GetObjectIdNum(void); 
     34      template <typename U> 
     35      static  int GetObjectNum(void); 
     36      template <typename U> 
     37      static  int GetObjectIdNum(void); 
    3838 
    39          template <typename U> 
    40             static  const std::vector<boost::shared_ptr<U> > & 
    41                GetObjectVector(const StdString & context = CObjectFactory::GetCurrentContextId()); 
     39      template <typename U> 
     40      static  const std::vector<boost::shared_ptr<U> > & 
     41             GetObjectVector(const StdString & context = CObjectFactory::GetCurrentContextId()); 
    4242 
    43          /// Tests /// 
    44          template <typename U> 
    45             static  bool HasObject(const StdString & id); 
     43      /// Tests /// 
     44      template <typename U> 
     45      static  bool HasObject(const StdString & id); 
    4646 
    47          template <typename U> 
    48             static  bool HasObject(const StdString& context,const StdString & id); 
     47      template <typename U> 
     48      static  bool HasObject(const StdString& context,const StdString & id); 
    4949 
    50          /// Instanciateur /// 
    51          template <typename U> 
    52             static  boost::shared_ptr<U> CreateObject(const StdString & id = StdString("")); 
     50      /// Instanciateur /// 
     51      template <typename U> 
     52      static  boost::shared_ptr<U> CreateObject(const StdString & id = StdString("")); 
    5353 
    54          template <typename U> static const StdString& GetUIdBase(void); 
    55          template <typename U> static StdString GenUId(void); 
    56          template <typename U> static bool IsGenUId(const StdString& id); 
     54      template <typename U> static const StdString& GetUIdBase(void); 
     55      template <typename U> static StdString GenUId(void); 
     56      template <typename U> static bool IsGenUId(const StdString& id); 
    5757 
    58       private : 
     58    private : 
    5959 
    60          /// Propriétés statiques /// 
    61          static StdString CurrContext; 
     60      /// Propriétés statiques /// 
     61      static StdString CurrContext; 
     62//      #pragma omp threadprivate(CurrContext) 
    6263 
    63    }; // class CObjectFactory 
     64  }; // class CObjectFactory 
    6465} // namespace xios 
    6566 
Note: See TracChangeset for help on using the changeset viewer.