Geant4  10.02.p03
XBase Class Referenceabstract

#include <XBase.hh>

Inheritance diagram for XBase:
Collaboration diagram for XBase:

Public Member Functions

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

Protected Attributes

int ival
 
double dval
 

Detailed Description

Definition at line 41 of file test02/module/XBase.hh.

Constructor & Destructor Documentation

◆ XBase() [1/3]

XBase::XBase ( )

Definition at line 43 of file test02/module/XBase.cc.

44  : ival(-1),
45  dval(-1.)
47 {
48 }
Here is the caller graph for this function:

◆ ~XBase() [1/3]

XBase::~XBase ( )
virtual

Definition at line 52 of file test02/module/XBase.cc.

54 {
55 }

◆ XBase() [2/3]

XBase::XBase ( )

◆ ~XBase() [2/3]

virtual XBase::~XBase ( )
virtual

◆ XBase() [3/3]

XBase::XBase ( )
inline

Definition at line 63 of file test10.cc.

63 {}

◆ ~XBase() [3/3]

XBase::~XBase ( )
inline

Definition at line 64 of file test10.cc.

64 {}

Member Function Documentation

◆ AMethod()

void XBase::AMethod ( )

Definition at line 59 of file test02/module/XBase.cc.

61 {
62  std::cout << "%%% XBase::AMethod is called."
63  << " (ival, dval)= (" << ival << "," << dval << ")"
64  << std::endl;
65 }
Here is the caller graph for this function:

◆ GetDVal()

double XBase::GetDVal ( ) const
inline

Definition at line 68 of file test02/module/XBase.hh.

68 { return dval; }
Here is the caller graph for this function:

◆ GetIVal() [1/2]

int XBase::GetIVal ( ) const
inline

Definition at line 65 of file test02/module/XBase.hh.

65 { return ival; }
Here is the caller graph for this function:

◆ GetIVal() [2/2]

int XBase::GetIVal ( ) const
inline

◆ PVMethod()

virtual std::string XBase::PVMethod ( )
pure virtual
Here is the caller graph for this function:

◆ SetDVal()

void XBase::SetDVal ( double  aval)
inline

Definition at line 67 of file test02/module/XBase.hh.

67 { dval= d; }
Float_t d
Here is the caller graph for this function:

◆ SetIVal() [1/2]

void XBase::SetIVal ( int  aval)
inline

Definition at line 64 of file test02/module/XBase.hh.

64 { ival= i; }
Here is the caller graph for this function:

◆ SetIVal() [2/2]

void XBase::SetIVal ( int  i)
inline

◆ VMethod()

virtual int XBase::VMethod ( const XBase abase) const
pure virtual

Implemented in AClass.

Here is the caller graph for this function:

◆ VMethodA()

virtual void XBase::VMethodA ( const AClass a)
inlinevirtual

Reimplemented in CB_XBase.

Definition at line 66 of file test10.cc.

66  {
67  std::cout << "*** XBase::VMethod...A() is called." << std::endl;
68  }
Here is the caller graph for this function:

◆ VMethodB()

virtual void XBase::VMethodB ( const BClass b)
inlinevirtual

Reimplemented in CB_XBase.

Definition at line 70 of file test10.cc.

70  {
71  std::cout << "*** XBase::VMethod...B() is called." << std::endl;
72  }
Here is the caller graph for this function:

Member Data Documentation

◆ dval

double XBase::dval
protected

Definition at line 44 of file test02/module/XBase.hh.

◆ ival

int XBase::ival
protected

Definition at line 43 of file test02/module/XBase.hh.


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