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

#include <BClass.hh>

Inheritance diagram for BClass:
Collaboration diagram for BClass:

Public Member Functions

 BClass ()
 
 ~BClass ()
 
void AMethod ()
 
virtual int VMethod (const XBase *abase) const
 
 BClass ()
 
 ~BClass ()
 
- Public Member Functions inherited from XBase
 XBase ()
 
virtual ~XBase ()
 
void SetIVal (int aval)
 
int GetIVal () const
 
void SetDVal (double aval)
 
double GetDVal () const
 
void AMethod ()
 
 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)
 

Additional Inherited Members

- Protected Attributes inherited from XBase
int ival
 
double dval
 

Detailed Description

Definition at line 43 of file BClass.hh.

Constructor & Destructor Documentation

BClass::BClass ( )

Definition at line 42 of file BClass.cc.

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

Definition at line 51 of file BClass.cc.

53 {
54 }
BClass::BClass ( )
inline

Definition at line 51 of file test10.cc.

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

Definition at line 55 of file test10.cc.

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

Member Function Documentation

void BClass::AMethod ( )

Definition at line 57 of file BClass.cc.

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

Here is the caller graph for this function:

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

Implements XBase.

Definition at line 66 of file BClass.cc.

68 {
69  return abase-> GetIVal();
70 }
int GetIVal() const
Definition: XBase.hh:65

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