Changeset 3612 in Sophya for trunk/SophyaLib/BaseTools/stsrand.h


Ignore:
Timestamp:
Apr 30, 2009, 7:06:50 PM (16 years ago)
Author:
ansari
Message:

Suite modifs / adaptation avec l'introduction de la suite des classes RandomGeneratorInterface et Cie , Reza 30/04/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/stsrand.h

    r3599 r3612  
    1616namespace SOPHYA {
    1717
    18 class RandomGenerator : public AnyDataObj {
     18class STSRandGen : public AnyDataObj {
    1919
    2020 public:
    21   RandomGenerator(size_t n = 1024, bool tsafe=true);
    22   RandomGenerator(RandomGenerator const & rg);
     21  STSRandGen(size_t n = 1024, bool tsafe=true);
     22  STSRandGen(STSRandGen const & rg);
    2323
    2424  void SetBuffSize(size_t n);
    2525
    26   virtual ~RandomGenerator();
     26  virtual ~STSRandGen();
    2727
    2828  /*! \brief Automatic initialization using the current time */
     
    7272 
    7373  //  Pour la gestion de persistance PPF
    74   friend class ObjFileIO<RandomGenerator> ;
     74  friend class ObjFileIO<STSRandGen> ;
    7575
    7676 protected:
     
    9393  static  void GetSeed_P(unsigned short seed_16v[3]);
    9494
    95 };  // Fin de la classe RandomGenerator
     95};  // Fin de la classe STSRandGen
    9696
    97 // Classe pour la gestion de persistance PPF :  ObjFileIO<RandomGenerator>
     97// Classe pour la gestion de persistance PPF :  ObjFileIO<STSRandGen>
    9898
    9999/*! Writes the random generator object state in the POutPersist stream \b os */
    100 inline POutPersist& operator << (POutPersist& os, RandomGenerator & obj)
    101 { ObjFileIO<RandomGenerator> fio(&obj);  fio.Write(os);  return(os); }
     100inline POutPersist& operator << (POutPersist& os, STSRandGen & obj)
     101{ ObjFileIO<STSRandGen> fio(&obj);  fio.Write(os);  return(os); }
    102102/*! Reads the random generator object state from the PInPersist stream \b is */
    103 inline PInPersist& operator >> (PInPersist& is, RandomGenerator & obj)
    104 { ObjFileIO<RandomGenerator> fio(&obj); is.SkipToNextObject(); fio.Read(is); return(is); }
     103inline PInPersist& operator >> (PInPersist& is, STSRandGen & obj)
     104{ ObjFileIO<STSRandGen> fio(&obj); is.SkipToNextObject(); fio.Read(is); return(is); }
    105105
    106106} /* namespace SOPHYA */
Note: See TracChangeset for help on using the changeset viewer.