Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes
XBase Class Referenceabstract

#include <XBase.hh>

Inheritance diagram for XBase:
BClass

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/mylib/XBase.hh.

Constructor & Destructor Documentation

XBase::XBase ( )

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

44  : ival(-1),
45  dval(-1.)
46 //////////////
47 {
48 }
XBase::~XBase ( )
virtual

Definition at line 52 of file test02/mylib/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 test02/mylib/XBase.cc.

References dval, and ival.

Referenced by BOOST_PYTHON_MODULE().

61 {
62  std::cout << "%%% XBase::AMethod is called."
63  << " (ival, dval)= (" << ival << "," << dval << ")"
64  << std::endl;
65 }
double XBase::GetDVal ( ) const
inline

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

References dval.

Referenced by BOOST_PYTHON_MODULE().

68 { return dval; }
int XBase::GetIVal ( ) const
inline

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

References ival.

Referenced by BOOST_PYTHON_MODULE().

65 { return ival; }
int XBase::GetIVal ( ) const
inline
virtual std::string XBase::PVMethod ( )
pure virtual

Referenced by BOOST_PYTHON_MODULE().

void XBase::SetDVal ( double  aval)
inline

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

References dval.

Referenced by BOOST_PYTHON_MODULE().

67 { dval= d; }
void XBase::SetIVal ( int  aval)
inline

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

References ival.

Referenced by BOOST_PYTHON_MODULE().

64 { ival= i; }
void XBase::SetIVal ( int  i)
inline
virtual int XBase::VMethod ( const XBase abase) const
pure virtual

Implemented in BClass.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 66 of file test10.cc.

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

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

Definition at line 70 of file test10.cc.

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

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

Field Documentation

double XBase::dval
protected

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

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

int XBase::ival
protected

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

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


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