Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ran_pool< T > Class Template Reference

#include <ran.h>

Collaboration diagram for ran_pool< T >:

Public Member Functions

void init (size_t s, t_ran *rc, t_ran_fun f)
 
void reset ()
 
bool lgInitialized () const
 
next ()
 
 ran_pool ()
 
 ran_pool (const ran_pool &)=delete
 
ran_pooloperator= (const ran_pool &)=delete
 
 ~ran_pool ()
 

Private Member Functions

void p_alloc ()
 
void p_update_pool ()
 

Private Attributes

void * p_pool
 
T * p_next
 
T * p_end
 
size_t p_size
 
size_t p_squad
 
t_ranp_rc
 
t_ran_fun p_fill
 

Constructor & Destructor Documentation

template<class T>
ran_pool< T >::ran_pool ( )
inline
template<class T>
ran_pool< T >::ran_pool ( const ran_pool< T > &  )
delete
template<class T>
ran_pool< T >::~ran_pool ( )
inline

Member Function Documentation

template<class T>
void ran_pool< T >::init ( size_t  s,
t_ran rc,
t_ran_fun  f 
)
inline

Referenced by t_ran::p_init().

template<class T>
bool ran_pool< T >::lgInitialized ( ) const
inline
template<class T>
ran_pool& ran_pool< T >::operator= ( const ran_pool< T > &  )
delete
template<class T>
void ran_pool< T >::p_alloc ( )
inlineprivate
template<class T>
void ran_pool< T >::p_update_pool ( )
inlineprivate

Referenced by ran_pool< uint8 >::next().

template<class T>
void ran_pool< T >::reset ( )
inline

Referenced by t_ran::p_seed().

Member Data Documentation

template<class T>
size_t ran_pool< T >::p_squad
private

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