Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XBase Class Referenceabstract

#include <XBase.hh>

Inheritance 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 XBase.hh.

Constructor & Destructor Documentation

XBase::XBase ( )

Definition at line 43 of file XBase.cc.

44  : ival(-1),
45  dval(-1.)
47 {
48 }
double dval
Definition: XBase.hh:44
int ival
Definition: XBase.hh:43
XBase::~XBase ( )
virtual

Definition at line 52 of file XBase.cc.

54 {
55 }
XBase::XBase ( )
virtual XBase::~XBase ( )
virtual
XBase::XBase ( )
inline

Definition at line 63 of file test10.cc.

63 {}
XBase::~XBase ( )
inline

Definition at line 64 of file test10.cc.

64 {}

Member Function Documentation

void XBase::AMethod ( )

Definition at line 59 of file XBase.cc.

61 {
62  std::cout << "%%% XBase::AMethod is called."
63  << " (ival, dval)= (" << ival << "," << dval << ")"
64  << std::endl;
65 }
double dval
Definition: XBase.hh:44
int ival
Definition: XBase.hh:43

Here is the caller graph for this function:

double XBase::GetDVal ( ) const
inline

Definition at line 68 of file XBase.hh.

68 { return dval; }
double dval
Definition: XBase.hh:44

Here is the caller graph for this function:

int XBase::GetIVal ( ) const
inline

Definition at line 65 of file XBase.hh.

65 { return ival; }
int ival
Definition: XBase.hh:43

Here is the caller graph for this function:

int XBase::GetIVal ( ) const
inline
virtual std::string XBase::PVMethod ( )
pure virtual

Here is the caller graph for this function:

void XBase::SetDVal ( double  aval)
inline

Definition at line 67 of file XBase.hh.

67 { dval= d; }
double dval
Definition: XBase.hh:44

Here is the caller graph for this function:

void XBase::SetIVal ( int  aval)
inline

Definition at line 64 of file XBase.hh.

64 { ival= i; }
int ival
Definition: XBase.hh:43

Here is the caller graph for this function:

void XBase::SetIVal ( int  i)
inline
virtual int XBase::VMethod ( const XBase abase) const
pure virtual

Implemented in AClass, and BClass.

Here is the caller graph for this function:

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

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:

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

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

double XBase::dval
protected

Definition at line 44 of file XBase.hh.

int XBase::ival
protected

Definition at line 43 of file XBase.hh.


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