Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends
G4INCL::Random::SeedVector Class Reference

#include <G4INCLRandomSeedVector.hh>

Public Member Functions

long at (const size_t i) const
 
long & operator[] (const size_t i)
 
size_t size () const
 
void resize (const size_t n)
 
void push_back (const long val)
 

Friends

std::ostream & operator<< (std::ostream &out, SeedVector const &sv)
 

Detailed Description

Definition at line 54 of file G4INCLRandomSeedVector.hh.

Member Function Documentation

long G4INCL::Random::SeedVector::at ( const size_t  i) const

Definition at line 49 of file G4INCLRandomSeedVector.cc.

Referenced by G4INCL::Random::operator<<(), pyapps(), pygfxx(), pyhggm(), pyinom(), pypole(), pysfdc(), pyvacu(), and G4INCL::Ranecu::setSeeds().

49 { return theSeeds.at(i); }
long & G4INCL::Random::SeedVector::operator[] ( const size_t  i)

Definition at line 50 of file G4INCLRandomSeedVector.cc.

50 { return theSeeds[i]; }
void G4INCL::Random::SeedVector::push_back ( const long  val)

Definition at line 53 of file G4INCLRandomSeedVector.cc.

Referenced by G4INCL::Config::getRandomSeeds(), and G4INCL::Ranecu::getSeeds().

53 { theSeeds.push_back(val); }
void G4INCL::Random::SeedVector::resize ( const size_t  n)

Definition at line 52 of file G4INCLRandomSeedVector.cc.

52 { theSeeds.resize(n); }
const G4int n
size_t G4INCL::Random::SeedVector::size ( ) const

Definition at line 51 of file G4INCLRandomSeedVector.cc.

Referenced by G4INCL::Random::operator<<().

51 { return theSeeds.size(); }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
SeedVector const &  sv 
)
friend

Definition at line 55 of file G4INCLRandomSeedVector.cc.

55  {
56  if(sv.size()<=0)
57  return out;
58  for(size_t i=0; i<sv.size()-1; ++i)
59  out << sv.at(i) << '\t';
60  out << sv.at(sv.size()-1);
61  return out;
62  }

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