LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
AClass Class Referenceabstract

#include "AClass.hh"

Inheritance diagram for AClass:
XBase

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
 
virtual std::string PVMethod ()=0
 
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
 

Private Member Functions

 AClass ()
 

Private Attributes

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.

Referenced by GetPointer().

43  : ival(-1),
44  dval(-1.)
46 {
47 }
int ival
Definition: AClass.hh:43
double dval
Definition: AClass.hh:44
AClass::AClass ( int  i,
double  d = 0. 
)

Definition at line 51 of file AClass.cc.

52  : ival(i), dval(d)
54 {
55 }
int ival
Definition: AClass.hh:43
double dval
Definition: AClass.hh:44
Float_t d
Definition: plot.C:237
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) { }
int ival
Definition: AClass.hh:43
AClass::AClass ( int  i)
inline

Definition at line 42 of file test09.cc.

42 :ival(i) { }
int ival
Definition: AClass.hh:43
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 ( )
inlineprivate

Definition at line 36 of file test11.cc.

36 { }
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  }
int ival
Definition: AClass.hh:43
AClass::AClass ( const AClass right)
inline

Definition at line 52 of file test12.cc.

References ival.

52  {
53  ival= right.ival;
54  std::cout << "*** copy constructor is called" << std::endl;
55  }
int ival
Definition: AClass.hh:43
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.

References dval, and ival.

Referenced by BOOST_PYTHON_MODULE().

68 {
69  std::cout << "%%% AClass::AMethod is called."
70  << " (ival, dval)= (" << ival << "," << dval << ")"
71  << std::endl;
72 }
int ival
Definition: AClass.hh:43
double dval
Definition: AClass.hh:44
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.

Referenced by BOOST_PYTHON_MODULE().

105 {
106  return i*d1*d2;
107 }
double AClass::GetDVal ( ) const
inline

Definition at line 70 of file AClass.hh.

References dval.

Referenced by BOOST_PYTHON_MODULE().

70 { return dval; }
double dval
Definition: AClass.hh:44
int AClass::GetIVal ( ) const
inline

Definition at line 46 of file test09.cc.

References ival.

46 { return ival; }
int ival
Definition: AClass.hh:43
int AClass::GetIVal ( ) const
int AClass::GetIVal ( ) const
inline

Definition at line 67 of file AClass.hh.

References ival.

Referenced by BOOST_PYTHON_MODULE(), operator<<(), and VMethod().

67 { return ival; }
int ival
Definition: AClass.hh:43
int AClass::GetIVal ( )
inline

Definition at line 60 of file test12.cc.

References ival.

60 { return ival; }
int ival
Definition: AClass.hh:43
AClass * AClass::GetPointer ( )
static

Definition at line 58 of file AClass.cc.

References AClass(), and thePointer.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 48 of file test09.cc.

References ival.

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

Definition at line 54 of file test09.cc.

References ival.

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

Definition at line 59 of file test09.cc.

References ival.

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

Definition at line 62 of file test12.cc.

Referenced by BOOST_PYTHON_MODULE(), and PrintVector().

62  {
63  std::cout << "*** @" << this << ": i="
64  << ival << std::endl;
65  }
int ival
Definition: AClass.hh:43
virtual std::string XBase::PVMethod ( )
pure virtualinherited

Implemented in w_XBase.

Referenced by BOOST_PYTHON_MODULE().

void AClass::SetDVal ( double  d)
inline

Definition at line 69 of file AClass.hh.

References d, and dval.

Referenced by BOOST_PYTHON_MODULE().

69 { dval= d; }
double dval
Definition: AClass.hh:44
Float_t d
Definition: plot.C:237
void AClass::SetIVal ( int  i)
inline

Definition at line 45 of file test09.cc.

45 { ival= i; }
int ival
Definition: AClass.hh:43
void AClass::SetIVal ( int  i)
void AClass::SetIVal ( int  i)
inline

Definition at line 66 of file AClass.hh.

References ival.

Referenced by BOOST_PYTHON_MODULE().

66 { ival= i; }
int ival
Definition: AClass.hh:43
void AClass::SetIVal ( int  i)
inline

Definition at line 59 of file test12.cc.

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

Implements XBase.

Definition at line 66 of file AClass.cc.

References GetIVal().

68 {
69  return abase-> GetIVal();
70 }
int GetIVal() const
Definition: AClass.hh:67
virtual void XBase::VMethodA ( const AClass a)
inlinevirtualinherited

Reimplemented in CB_XBase.

Definition at line 66 of file test10.cc.

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

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

Reimplemented in CB_XBase.

Definition at line 70 of file test10.cc.

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

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

Member Data Documentation

double AClass::dval
private

Definition at line 44 of file AClass.hh.

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

int AClass::ival
private

Definition at line 43 of file AClass.hh.

Referenced by AClass(), AMethod(), GetIVal(), operator+(), operator+=(), operator==(), and SetIVal().

AClass * AClass::thePointer = 0
staticprotected

Definition at line 43 of file AClass.hh.

Referenced by GetPointer().


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