Logo ROOT   6.13/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Math::GSLRngWrapper Class Reference

GSLRngWrapper class to wrap gsl_rng structure.

Definition at line 25 of file GSLRngWrapper.h.

Public Member Functions

 GSLRngWrapper ()
 Default constructor. More...
 
 GSLRngWrapper (const gsl_rng_type *type)
 Constructor with type. More...
 
 GSLRngWrapper (const gsl_rng *r)
 construct from an existing gsl_rng it is managed externally - so will not be deleted at the end More...
 
 GSLRngWrapper (GSLRngWrapper &r)
 Copy constructor - clone the GSL object and manage it. More...
 
 ~GSLRngWrapper ()
 Destructor (free the rng if not done before) More...
 
void Allocate ()
 
void Free ()
 
GSLRngWrapperoperator= (const GSLRngWrapper &rhs)
 Assignment operator. More...
 
void PrintState () const
 
gsl_rng * Rng ()
 
const gsl_rng * Rng () const
 
void SetDefaultType ()
 
void SetType (const gsl_rng_type *type)
 

Private Attributes

bool fOwn
 
gsl_rng * fRng
 
const gsl_rng_type * fRngType
 

#include </home/ozapatam/Projects/root/math/mathmore/src/GSLRngWrapper.h>

Constructor & Destructor Documentation

◆ GSLRngWrapper() [1/4]

ROOT::Math::GSLRngWrapper::GSLRngWrapper ( )
inline

Default constructor.

Definition at line 33 of file GSLRngWrapper.h.

◆ GSLRngWrapper() [2/4]

ROOT::Math::GSLRngWrapper::GSLRngWrapper ( const gsl_rng_type *  type)
inline

Constructor with type.

Definition at line 43 of file GSLRngWrapper.h.

◆ GSLRngWrapper() [3/4]

ROOT::Math::GSLRngWrapper::GSLRngWrapper ( const gsl_rng *  r)
inline

construct from an existing gsl_rng it is managed externally - so will not be deleted at the end

Definition at line 54 of file GSLRngWrapper.h.

◆ GSLRngWrapper() [4/4]

ROOT::Math::GSLRngWrapper::GSLRngWrapper ( GSLRngWrapper r)
inline

Copy constructor - clone the GSL object and manage it.

Definition at line 64 of file GSLRngWrapper.h.

◆ ~GSLRngWrapper()

ROOT::Math::GSLRngWrapper::~GSLRngWrapper ( )
inline

Destructor (free the rng if not done before)

Definition at line 92 of file GSLRngWrapper.h.

Member Function Documentation

◆ Allocate()

void ROOT::Math::GSLRngWrapper::Allocate ( )
inline

Definition at line 96 of file GSLRngWrapper.h.

◆ Free()

void ROOT::Math::GSLRngWrapper::Free ( )
inline

Definition at line 103 of file GSLRngWrapper.h.

◆ operator=()

GSLRngWrapper& ROOT::Math::GSLRngWrapper::operator= ( const GSLRngWrapper rhs)
inline

Assignment operator.

Definition at line 74 of file GSLRngWrapper.h.

◆ PrintState()

void ROOT::Math::GSLRngWrapper::PrintState ( ) const
inline

Definition at line 121 of file GSLRngWrapper.h.

◆ Rng() [1/2]

gsl_rng* ROOT::Math::GSLRngWrapper::Rng ( )
inline

Definition at line 125 of file GSLRngWrapper.h.

◆ Rng() [2/2]

const gsl_rng* ROOT::Math::GSLRngWrapper::Rng ( ) const
inline

Definition at line 127 of file GSLRngWrapper.h.

◆ SetDefaultType()

void ROOT::Math::GSLRngWrapper::SetDefaultType ( )
inline

Definition at line 115 of file GSLRngWrapper.h.

◆ SetType()

void ROOT::Math::GSLRngWrapper::SetType ( const gsl_rng_type *  type)
inline

Definition at line 111 of file GSLRngWrapper.h.

Member Data Documentation

◆ fOwn

bool ROOT::Math::GSLRngWrapper::fOwn
private

Definition at line 133 of file GSLRngWrapper.h.

◆ fRng

gsl_rng* ROOT::Math::GSLRngWrapper::fRng
private

Definition at line 134 of file GSLRngWrapper.h.

◆ fRngType

const gsl_rng_type* ROOT::Math::GSLRngWrapper::fRngType
private

Definition at line 135 of file GSLRngWrapper.h.


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