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

#include <AClass.hh>

Inheritance diagram for AClass:
Collaboration diagram for AClass:

Public Member Functions

 AClass ()
 
 AClass (int i, double d=0.)
 
 ~AClass ()
 
void SetIVal (int i)
 
int GetIVal () const
 
void SetDVal (double d)
 
double GetDVal () const
 
void AMethod ()
 
 AClass ()
 
 ~AClass ()
 
void AMethod ()
 
virtual int VMethod (const XBase *abase) const
 
 ~AClass ()
 
 AClass ()
 
 AClass (int i, double d=0.)
 
 ~AClass ()
 
void SetIVal (int i)
 
int GetIVal () const
 
int AMethod ()
 
int AMethod (int i)
 
int AMethod (int i, double d)
 
int BMethod ()
 
double BMethod (double d)
 
double CMethod (int i, double d1=1., double d2=2.)
 
 AClass ()
 
 ~AClass ()
 
 AClass ()
 
 AClass (int i)
 
 ~AClass ()
 
void SetIVal (int i)
 
int GetIVal () const
 
AClass operator+ (const AClass &aclass)
 
AClassoperator+= (const AClass &aclass)
 
bool operator== (const AClass &aclass) const
 
 AClass ()
 
 ~AClass ()
 
 AClass (int i)
 
 AClass (const AClass &a)
 
 ~AClass ()
 
 AClass ()
 
 AClass (const AClass &right)
 
 ~AClass ()
 
void SetIVal (int i)
 
int GetIVal ()
 
void Print () const
 
- 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)
 

Static Public Member Functions

static AClassGetPointer ()
 
static int AMethod ()
 

Protected Member Functions

 AClass ()
 

Static Protected Attributes

static AClassthePointer = 0
 

Additional Inherited Members

- Protected Attributes inherited from XBase
int ival
 
double dval
 

Detailed Description

Definition at line 41 of file AClass.hh.

Constructor & Destructor Documentation

AClass::AClass ( )

Definition at line 42 of file AClass.cc.

43  : ival(-1),
44  dval(-1.)
46 {
47 }

Here is the caller graph for this function:

AClass::AClass ( int  i,
double  d = 0. 
)

Definition at line 51 of file AClass.cc.

52  : ival(i), dval(d)
54 {
55 }
AClass::~AClass ( )

Definition at line 59 of file AClass.cc.

61 {
62 }
AClass::AClass ( )
AClass::~AClass ( )
AClass::AClass ( )
protected
AClass::~AClass ( )
AClass::AClass ( )
AClass::AClass ( int  i,
double  d = 0. 
)
AClass::~AClass ( )
AClass::AClass ( )
inline

Definition at line 37 of file test08.cc.

37 { }
AClass::~AClass ( )
inline

Definition at line 38 of file test08.cc.

38 { }
AClass::AClass ( )
inline

Definition at line 41 of file test09.cc.

41 :ival(999) { }
AClass::AClass ( int  i)
inline

Definition at line 42 of file test09.cc.

42 :ival(i) { }
AClass::~AClass ( )
inline

Definition at line 43 of file test09.cc.

43 { }
AClass::AClass ( )
inline

Definition at line 38 of file test10.cc.

38  {
39  std::cout << "*** AClass is created..." << this
40  << std::endl;
41  }
AClass::~AClass ( )
inline

Definition at line 43 of file test10.cc.

43  {
44  std::cout << "*** AClass is deleted..." << this
45  << std::endl;
46  }
AClass::AClass ( int  i)
inline

Definition at line 39 of file test11.cc.

39 { }
AClass::AClass ( const AClass a)
inline

Definition at line 40 of file test11.cc.

40 { }
AClass::~AClass ( )
inline

Definition at line 41 of file test11.cc.

41 { }
AClass::AClass ( )
inline

Definition at line 49 of file test12.cc.

49  : ival(0) {
50  }
AClass::AClass ( const AClass right)
inline

Definition at line 52 of file test12.cc.

52  {
53  ival= right.ival;
54  std::cout << "*** copy constructor is called" << std::endl;
55  }
AClass::~AClass ( )
inline

Definition at line 57 of file test12.cc.

57 { }

Member Function Documentation

static int AClass::AMethod ( )
inlinestatic

Definition at line 39 of file test08.cc.

39 { return 1; }
void AClass::AMethod ( )
int AClass::AMethod ( )
int AClass::AMethod ( int  i)

Definition at line 71 of file AClass.cc.

73 {
74  return 1;
75 }
int AClass::AMethod ( int  i,
double  d 
)

Definition at line 79 of file AClass.cc.

81 {
82  return 2;
83 }
int AClass::AMethod ( )

Definition at line 66 of file AClass.cc.

68 {
69  std::cout << "%%% AClass::AMethod is called."
70  << " (ival, dval)= (" << ival << "," << dval << ")"
71  << std::endl;
72 }

Here is the caller graph for this function:

int AClass::BMethod ( )

Definition at line 88 of file AClass.cc.

90 {
91  return 0;
92 }
double AClass::BMethod ( double  d)

Definition at line 95 of file AClass.cc.

97 {
98  return 1.;
99 
100 }
double AClass::CMethod ( int  i,
double  d1 = 1.,
double  d2 = 2. 
)

Definition at line 103 of file AClass.cc.

105 {
106  return i*d1*d2;
107 }
static const G4double d2
static const G4double d1

Here is the caller graph for this function:

double AClass::GetDVal ( ) const
inline

Definition at line 70 of file AClass.hh.

70 { return dval; }

Here is the caller graph for this function:

int AClass::GetIVal ( ) const
inline

Definition at line 46 of file test09.cc.

46 { return ival; }
int AClass::GetIVal ( ) const
int AClass::GetIVal ( ) const
inline

Definition at line 67 of file AClass.hh.

67 { return ival; }

Here is the caller graph for this function:

int AClass::GetIVal ( )
inline

Definition at line 60 of file test12.cc.

60 { return ival; }
AClass * AClass::GetPointer ( )
static

Definition at line 58 of file AClass.cc.

60 {
61  if(thePointer==0) thePointer= new AClass();
62  return thePointer;
63 }
static AClass * thePointer
Definition: AClass.hh:43
AClass()
Definition: AClass.cc:42

Here is the call graph for this function:

Here is the caller graph for this function:

AClass AClass::operator+ ( const AClass aclass)
inline

Definition at line 48 of file test09.cc.

48  {
49  AClass atemp;
50  atemp.ival= ival + aclass.ival;
51  return atemp;
52  }
Definition: AClass.hh:41
AClass& AClass::operator+= ( const AClass aclass)
inline

Definition at line 54 of file test09.cc.

54  {
55  ival+= aclass.ival;
56  return *this;
57  }
bool AClass::operator== ( const AClass aclass) const
inline

Definition at line 59 of file test09.cc.

59  {
60  if(ival == aclass.ival) return true;
61  return false;
62  }
void AClass::Print ( ) const
inline

Definition at line 62 of file test12.cc.

62  {
63  std::cout << "*** @" << this << ": i="
64  << ival << std::endl;
65  }

Here is the caller graph for this function:

void AClass::SetDVal ( double  d)
inline

Definition at line 69 of file AClass.hh.

69 { dval= d; }

Here is the caller graph for this function:

void AClass::SetIVal ( int  i)
inline

Definition at line 45 of file test09.cc.

45 { ival= i; }
void AClass::SetIVal ( int  i)
void AClass::SetIVal ( int  i)
inline

Definition at line 66 of file AClass.hh.

66 { ival= i; }

Here is the caller graph for this function:

void AClass::SetIVal ( int  i)
inline

Definition at line 59 of file test12.cc.

59 { ival= i; }
int AClass::VMethod ( const XBase abase) const
virtual

Implements XBase.

Definition at line 66 of file AClass.cc.

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

Member Data Documentation

AClass * AClass::thePointer = 0
staticprotected

Definition at line 43 of file AClass.hh.


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