g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::rbinomiald Class Reference
Inheritance diagram for tools::rbinomiald:
Inheritance graph
[legend]
Collaboration diagram for tools::rbinomiald:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual double shootd () const
 
 rbinomiald (unsigned int a_n=1, double a_p=0.5)
 
virtual ~rbinomiald ()
 
 rbinomiald (const rbinomiald &a_from)
 
rbinomialdoperator= (const rbinomiald &a_from)
 
- Public Member Functions inherited from tools::irandd
virtual ~irandd ()
 
- Public Member Functions inherited from tools::rbinomial< rtausmed, double, unsigned int >
 rbinomial (rtausmed &a_flat, unsigned int a_n=1, double a_p=double(0.5))
 
 rbinomial (const rbinomial &a_from)
 
virtual ~rbinomial ()
 
rbinomialoperator= (const rbinomial &a_from)
 
unsigned int shoot () const
 
rtausmedflat ()
 
void set_seed (unsigned int a_seed)
 

Protected Attributes

rtausmed m_flat
 
- Protected Attributes inherited from tools::rbinomial< rtausmed, double, unsigned int >
rtausmedm_flat
 
unsigned int m_n
 
double m_p
 

Detailed Description

Definition at line 24 of file randd.

Constructor & Destructor Documentation

◆ rbinomiald() [1/2]

tools::rbinomiald::rbinomiald ( unsigned int  a_n = 1,
double  a_p = 0.5 
)
inline

Definition at line 35 of file randd.

35 :parent(m_flat,a_n,a_p),m_flat(){}

◆ ~rbinomiald()

virtual tools::rbinomiald::~rbinomiald ( )
inlinevirtual

Definition at line 36 of file randd.

36 {}

◆ rbinomiald() [2/2]

tools::rbinomiald::rbinomiald ( const rbinomiald a_from)
inline

Definition at line 38 of file randd.

38 :irandd(a_from),parent(m_flat),m_flat(a_from.m_flat){}

Member Function Documentation

◆ cast()

virtual void* tools::rbinomiald::cast ( const std::string &  a_class) const
inlinevirtual

Implements tools::irandd.

Definition at line 29 of file randd.

29  {
30  if(void* p = cmp_cast<rbinomiald>(this,a_class)) return p;
31  return 0;
32  }

◆ operator=()

rbinomiald& tools::rbinomiald::operator= ( const rbinomiald a_from)
inline

Definition at line 39 of file randd.

39  {
40  parent::operator=(a_from);
41  m_flat = a_from.m_flat;
42  return *this;
43  }

◆ shootd()

virtual double tools::rbinomiald::shootd ( ) const
inlinevirtual

Implements tools::irandd.

Definition at line 33 of file randd.

33 {return shoot();}

Member Data Documentation

◆ m_flat

rtausmed tools::rbinomiald::m_flat
protected

Definition at line 45 of file randd.


The documentation for this class was generated from the following file:
tools::rbinomial< rtausmed, double, unsigned int >::operator=
rbinomial & operator=(const rbinomial &a_from)
Definition: randT:202
tools::rbinomial< rtausmed, double, unsigned int >::shoot
unsigned int shoot() const
Definition: randT:208
tools::rbinomiald::m_flat
rtausmed m_flat
Definition: randd:45