LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
rndm::details::PolicyStruct_t< SEED > Struct Template Reference

#include "PolicyFactory.h"

Public Member Functions

 operator bool () const
 
bool operator! () const
 
RandomSeedPolicyBase< SEED > const * operator-> () const
 
RandomSeedPolicyBase< SEED > * operator-> ()
 

Public Attributes

Policy policy { Policy::unDefined }
 
std::unique_ptr< RandomSeedPolicyBase< SEED > > ptr
 

Detailed Description

template<typename SEED>
struct rndm::details::PolicyStruct_t< SEED >

Return value of makeRandomSeedPolicy(): a pointer to RandomSeedPolicyBase<SEED> travelling with a policy number.

Definition at line 38 of file PolicyFactory.h.

Member Function Documentation

template<typename SEED>
rndm::details::PolicyStruct_t< SEED >::operator bool ( ) const
inline

Definition at line 42 of file PolicyFactory.h.

42 { return bool(ptr); }
std::unique_ptr< RandomSeedPolicyBase< SEED > > ptr
Definition: PolicyFactory.h:40
template<typename SEED>
bool rndm::details::PolicyStruct_t< SEED >::operator! ( ) const
inline

Definition at line 43 of file PolicyFactory.h.

43 { return !ptr; }
std::unique_ptr< RandomSeedPolicyBase< SEED > > ptr
Definition: PolicyFactory.h:40
template<typename SEED>
RandomSeedPolicyBase<SEED> const* rndm::details::PolicyStruct_t< SEED >::operator-> ( ) const
inline

Definition at line 44 of file PolicyFactory.h.

44 { return ptr.get(); }
std::unique_ptr< RandomSeedPolicyBase< SEED > > ptr
Definition: PolicyFactory.h:40
template<typename SEED>
RandomSeedPolicyBase<SEED>* rndm::details::PolicyStruct_t< SEED >::operator-> ( )
inline

Definition at line 45 of file PolicyFactory.h.

45 { return ptr.get(); }
std::unique_ptr< RandomSeedPolicyBase< SEED > > ptr
Definition: PolicyFactory.h:40

Member Data Documentation

template<typename SEED>
Policy rndm::details::PolicyStruct_t< SEED >::policy { Policy::unDefined }
template<typename SEED>
std::unique_ptr<RandomSeedPolicyBase<SEED> > rndm::details::PolicyStruct_t< SEED >::ptr

Definition at line 40 of file PolicyFactory.h.

Referenced by rndm::details::PolicyStruct_t< seed_t >::operator!().


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