Public Types | Public Member Functions | Private Attributes | List of all members
art::RNGsnapshot Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Common/RNGsnapshot.h"

Public Types

using CLHEP_t = unsigned long
 
using engine_state_t = std::vector< CLHEP_t >
 
using saved_t = unsigned int
 
using snapshot_state_t = std::vector< saved_t >
 
using label_t = std::string
 

Public Member Functions

 RNGsnapshot ()=default
 
 RNGsnapshot (std::string const &ekind, label_t const &label, engine_state_t const &est)
 
std::string const & ekind () const
 
label_t const & label () const
 
snapshot_state_t const & state () const
 
void saveFrom (std::string const &, label_t const &, engine_state_t const &)
 
engine_state_t restoreState () const
 

Private Attributes

std::string engine_kind_ {}
 
label_t label_ {}
 
snapshot_state_t state_ {}
 

Detailed Description

Definition at line 40 of file RNGsnapshot.h.

Member Typedef Documentation

using art::RNGsnapshot::CLHEP_t = unsigned long

Definition at line 43 of file RNGsnapshot.h.

Definition at line 44 of file RNGsnapshot.h.

Definition at line 49 of file RNGsnapshot.h.

using art::RNGsnapshot::saved_t = unsigned int

Definition at line 47 of file RNGsnapshot.h.

Definition at line 48 of file RNGsnapshot.h.

Constructor & Destructor Documentation

art::RNGsnapshot::RNGsnapshot ( )
default
art::RNGsnapshot::RNGsnapshot ( std::string const &  ekind,
label_t const &  label,
engine_state_t const &  est 
)
explicit

Member Function Documentation

std::string const& art::RNGsnapshot::ekind ( ) const
inline

Definition at line 63 of file RNGsnapshot.h.

References engine_kind_.

64  {
65  return engine_kind_;
66  }
std::string engine_kind_
Definition: RNGsnapshot.h:83
label_t const& art::RNGsnapshot::label ( ) const
inline

Definition at line 68 of file RNGsnapshot.h.

References label_.

69  {
70  return label_;
71  }
engine_state_t art::RNGsnapshot::restoreState ( ) const

Referenced by state().

void art::RNGsnapshot::saveFrom ( std::string const &  ,
label_t const &  ,
engine_state_t const &   
)

Referenced by state().

snapshot_state_t const& art::RNGsnapshot::state ( ) const
inline

Definition at line 73 of file RNGsnapshot.h.

References restoreState(), saveFrom(), state_, and string.

74  {
75  return state_;
76  }
snapshot_state_t state_
Definition: RNGsnapshot.h:85

Member Data Documentation

std::string art::RNGsnapshot::engine_kind_ {}
private

Definition at line 83 of file RNGsnapshot.h.

Referenced by ekind().

label_t art::RNGsnapshot::label_ {}
private

Definition at line 84 of file RNGsnapshot.h.

Referenced by label().

snapshot_state_t art::RNGsnapshot::state_ {}
private

Definition at line 85 of file RNGsnapshot.h.

Referenced by state().


The documentation for this class was generated from the following file: