g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::osc::Histogram_cp< HIST > Class Template Reference
Inheritance diagram for tools::osc::Histogram_cp< HIST >:
Inheritance graph
[legend]
Collaboration diagram for tools::osc::Histogram_cp< HIST >:
Collaboration graph
[legend]

Public Member Functions

 Histogram_cp (const HIST &a_h, const std::string &a_cls)
 
virtual ~Histogram_cp ()
 
 Histogram_cp (const Histogram_cp &a_from)
 
Histogram_cpoperator= (const Histogram_cp &a_from)
 
- Public Member Functions inherited from tools::osc::Histogram< HIST >
virtual const std::string & store_cls () const
 
virtual bool visit (iobj_const_visitor &a_v) const
 
 Histogram (const HIST &a_hist, const std::string &a_cls)
 
virtual ~Histogram ()
 
 Histogram (const Histogram &a_from)
 
Histogramoperator= (const Histogram &a_from)
 
- Public Member Functions inherited from tools::istorable
virtual ~istorable ()
 

Protected Attributes

HIST m_cp
 
- Protected Attributes inherited from tools::osc::Histogram< HIST >
const HIST & m_hist
 
std::string m_cls
 

Additional Inherited Members

- Protected Member Functions inherited from tools::osc::Histogram< HIST >
virtual void * cast (const std::string &a_class) const
 
- Static Protected Member Functions inherited from tools::osc::Histogram< HIST >
static bool s_visit (const istorable &a_o, iobj_const_visitor &a_v)
 

Detailed Description

template<class HIST>
class tools::osc::Histogram_cp< HIST >

Definition at line 826 of file osc_streamers.

Constructor & Destructor Documentation

◆ Histogram_cp() [1/2]

template<class HIST >
tools::osc::Histogram_cp< HIST >::Histogram_cp ( const HIST &  a_h,
const std::string &  a_cls 
)
inline

Definition at line 829 of file osc_streamers.

830  :parent(m_cp,a_cls) //give ref of m_cp to Histogram.
831  ,m_cp(a_h) //do a local copy.
832  //WARNING : the upper is ok as long as Histogram constructor does nothing
833  // else than keeping the ref to m_cp. Else it would do
834  // something on an empty histo (and not on a copy of the
835  // passed a_data).
836  {}

◆ ~Histogram_cp()

template<class HIST >
virtual tools::osc::Histogram_cp< HIST >::~Histogram_cp ( )
inlinevirtual

Definition at line 837 of file osc_streamers.

837 {}

◆ Histogram_cp() [2/2]

template<class HIST >
tools::osc::Histogram_cp< HIST >::Histogram_cp ( const Histogram_cp< HIST > &  a_from)
inline

Definition at line 839 of file osc_streamers.

840  :istorable(a_from)
841  ,parent(m_cp,a_from.m_cls)
842  ,m_cp(a_from.m_cp)
843  {}

Member Function Documentation

◆ operator=()

template<class HIST >
Histogram_cp& tools::osc::Histogram_cp< HIST >::operator= ( const Histogram_cp< HIST > &  a_from)
inline

Definition at line 844 of file osc_streamers.

844  {
845  parent::operator=(a_from);
846  m_cp = a_from.m_cp;
847  return *this;
848  }

Member Data Documentation

◆ m_cp

template<class HIST >
HIST tools::osc::Histogram_cp< HIST >::m_cp
protected

Definition at line 850 of file osc_streamers.


The documentation for this class was generated from the following file:
tools::osc::Histogram_cp::m_cp
HIST m_cp
Definition: osc_streamers:850
tools::osc::Histogram::operator=
Histogram & operator=(const Histogram &a_from)
Definition: osc_streamers:513