|
|
|||
Warning, file /include/CLHEP/Random/engineIDulong.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // $Id 0002 // -*- C++ -*- 0003 // 0004 // ----------------------------------------------------------------------- 0005 // HEP Random 0006 // --- engineIDulong --- 0007 // function header file 0008 // ----------------------------------------------------------------------- 0009 0010 // Class generating new engines from streamed saves. 0011 0012 // ======================================================================= 0013 // M Fischler - Created: Mar. 8, 2005 0014 // ======================================================================= 0015 0016 #ifndef engineIDulong_h 0017 #define engineIDulong_h 1 0018 0019 #include <string> 0020 0021 namespace CLHEP { 0022 0023 unsigned long crc32ul(const std::string & s); 0024 0025 template <class E> 0026 unsigned long engineIDulong() { 0027 static const unsigned long id = crc32ul(E::engineName()); 0028 return id; 0029 } 0030 0031 } // namespace CLHEP 0032 0033 #ifdef ENABLE_BACKWARDS_COMPATIBILITY 0034 // backwards compatibility will be enabled ONLY in CLHEP 1.9 0035 using namespace CLHEP; 0036 #endif 0037 0038 0039 #endif 0040
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|