LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
BClass Class Referenceabstract

#include "BClass.hh"

Inheritance diagram for BClass:
XBase

Public Member Functions

 BClass ()
 
 ~BClass ()
 
void AMethod ()
 
virtual int VMethod (const XBase *abase) const
 
 BClass ()
 
 ~BClass ()
 
void SetIVal (int aval)
 
void SetIVal (int i)
 
int GetIVal () const
 
int GetIVal () const
 
void SetDVal (double aval)
 
double GetDVal () const
 
virtual std::string PVMethod ()=0
 
virtual void VMethodA (const AClass *a)
 
virtual void VMethodB (const BClass *b)
 

Protected Attributes

int ival
 
double dval
 

Detailed Description

Definition at line 42 of file BClass.hh.

Constructor & Destructor Documentation

BClass::BClass ( )

Definition at line 41 of file BClass.cc.

References XBase::dval, and XBase::ival.

42  : XBase()
44 {
45  ival= -3;
46  dval= -3.;
47 }
double dval
Definition: XBase.hh:43
XBase()
Definition: XBase.cc:42
int ival
Definition: XBase.hh:42
BClass::~BClass ( )

Definition at line 50 of file BClass.cc.

52 {
53 }
BClass::BClass ( )
inline

Definition at line 50 of file test10.cc.

50  {
51  std::cout << "*** BClass is created..." << this
52  << std::endl;
53  }
BClass::~BClass ( )
inline

Definition at line 54 of file test10.cc.

54  {
55  std::cout << "*** BClass is deleted..." << this
56  << std::endl;
57  }

Member Function Documentation

void BClass::AMethod ( )

Definition at line 56 of file BClass.cc.

References XBase::dval, and XBase::ival.

Referenced by BOOST_PYTHON_MODULE().

58 {
59  std::cout << "%%% BClass:::AMethod is called."
60  << " (ival, dval)= (" << ival << "," << dval << ")"
61  << std::endl;
62 }
double dval
Definition: XBase.hh:43
int ival
Definition: XBase.hh:42
double XBase::GetDVal ( ) const
inlineinherited

Definition at line 67 of file XBase.hh.

References XBase::dval.

Referenced by BOOST_PYTHON_MODULE().

67 { return dval; }
double dval
Definition: XBase.hh:43
int XBase::GetIVal ( ) const
inlineinherited

Definition at line 64 of file XBase.hh.

References XBase::ival.

Referenced by BOOST_PYTHON_MODULE(), and VMethod().

64 { return ival; }
int ival
Definition: XBase.hh:42
int XBase::GetIVal ( ) const
inlineinherited
virtual std::string XBase::PVMethod ( )
pure virtualinherited

Implemented in w_XBase.

Referenced by BOOST_PYTHON_MODULE().

void XBase::SetDVal ( double  aval)
inlineinherited

Definition at line 66 of file XBase.hh.

References d, and XBase::dval.

Referenced by BOOST_PYTHON_MODULE().

66 { dval= d; }
double dval
Definition: XBase.hh:43
Float_t d
Definition: plot.C:235
void XBase::SetIVal ( int  aval)
inlineinherited

Definition at line 63 of file XBase.hh.

References XBase::ival.

Referenced by BOOST_PYTHON_MODULE().

63 { ival= i; }
int ival
Definition: XBase.hh:42
void XBase::SetIVal ( int  i)
inlineinherited
int BClass::VMethod ( const XBase abase) const
virtual

Implements XBase.

Definition at line 65 of file BClass.cc.

References XBase::GetIVal().

67 {
68  return abase-> GetIVal();
69 }
int GetIVal() const
Definition: XBase.hh:64
virtual void XBase::VMethodA ( const AClass a)
inlinevirtualinherited

Reimplemented in CB_XBase.

Definition at line 65 of file test10.cc.

Referenced by BOOST_PYTHON_MODULE(), CB_XBase::d_VMethodA(), ZClass::Process(), and CB_XBase::VMethodA().

65  {
66  std::cout << "*** XBase::VMethod...A() is called." << std::endl;
67  }
virtual void XBase::VMethodB ( const BClass b)
inlinevirtualinherited

Reimplemented in CB_XBase.

Definition at line 69 of file test10.cc.

Referenced by BOOST_PYTHON_MODULE(), CB_XBase::d_VMethodB(), ZClass::Process(), and CB_XBase::VMethodB().

69  {
70  std::cout << "*** XBase::VMethod...B() is called." << std::endl;
71  }

Member Data Documentation

double XBase::dval
protectedinherited

Definition at line 43 of file XBase.hh.

Referenced by AMethod(), XBase::AMethod(), BClass(), XBase::GetDVal(), and XBase::SetDVal().

int XBase::ival
protectedinherited

Definition at line 42 of file XBase.hh.

Referenced by AMethod(), XBase::AMethod(), BClass(), XBase::GetIVal(), and XBase::SetIVal().


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