CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RandomEngineState.h
Go to the documentation of this file.
1 #ifndef RandomEngine_RandomEngineState_h
2 #define RandomEngine_RandomEngineState_h
3 // -*- C++ -*-
4 //
5 // Package: RandomEngine
6 // Class : RandomEngineState
7 //
17 //
18 // Original Author: W. David Dagenhart, Fermilab
19 // Created: Tue Oct 3 09:56:36 CDT 2006
20 // $Id: RandomEngineState.h,v 1.2 2011/01/04 17:55:19 wdd Exp $
21 //
22 
23 #include <vector>
24 #include <string>
25 #include <boost/cstdint.hpp>
26 
27 
29 
30  public:
31 
33 
35 
36  const std::string& getLabel() const { return label_; }
37  const std::vector<uint32_t>& getState() const { return state_; }
38  const std::vector<uint32_t>& getSeed() const { return seed_; }
39 
40  void setLabel(const std::string& value) { label_ = value; }
41  void setState(const std::vector<uint32_t>& value) { state_ = value; }
42  void setSeed(const std::vector<uint32_t>& value) { seed_ = value; }
43 
44  void clearSeedVector() { seed_.clear(); }
46  void push_back_seedVector(uint32_t v) { seed_.push_back(v); }
47 
48  void clearStateVector() { state_.clear(); }
50  void push_back_stateVector(uint32_t v) { state_.push_back(v); }
51 
52  bool operator<(RandomEngineState const& rhs) { return label_ < rhs.label_; }
53 
54  private:
55 
56  std::string label_;
57  std::vector<uint32_t> state_;
58  std::vector<uint32_t> seed_;
59 };
60 
61 #endif
std::vector< uint32_t > seed_
void setLabel(const std::string &value)
bool operator<(RandomEngineState const &rhs)
void reserveStateVector(std::vector< uint32_t >::size_type n)
uint16_t size_type
const std::string & getLabel() const
void reserveSeedVector(std::vector< uint32_t >::size_type n)
void push_back_stateVector(uint32_t v)
void setSeed(const std::vector< uint32_t > &value)
void setState(const std::vector< uint32_t > &value)
std::vector< uint32_t > state_
const std::vector< uint32_t > & getState() const
const std::vector< uint32_t > & getSeed() const
void push_back_seedVector(uint32_t v)
mathSSE::Vec4< T > v