ATLAS Offline Software
Loading...
Searching...
No Matches
TestClass2 Class Reference

#include <TestClass.h>

Inheritance diagram for TestClass2:
Collaboration diagram for TestClass2:

Public Member Functions

 TestClass2 ()
 TestClass2 (const int i)
void Set (const int i)
 TestClass2 (const double i)
void Set (const double i)
 TestClass2 (const float i)
void Set (const float i)
 ~TestClass2 ()
void print () const
std::string getKey () const
bool isEqual (const TestClass *otherobj) const

Public Attributes

int a
double b
float c
std::string key

Detailed Description

Definition at line 372 of file TestClass.h.

Constructor & Destructor Documentation

◆ TestClass2() [1/4]

TestClass2::TestClass2 ( )
inline

Definition at line 379 of file TestClass.h.

379{ ;}

◆ TestClass2() [2/4]

TestClass2::TestClass2 ( const int i)
inline

Definition at line 381 of file TestClass.h.

381{Set(i);}
struct _Set Set
Represents a set of values.
Definition set.h:59

◆ TestClass2() [3/4]

TestClass2::TestClass2 ( const double i)
inline

Definition at line 385 of file TestClass.h.

385{Set(i);}

◆ TestClass2() [4/4]

TestClass2::TestClass2 ( const float i)
inline

Definition at line 389 of file TestClass.h.

389{Set(i);}

◆ ~TestClass2()

TestClass2::~TestClass2 ( )
inline

Definition at line 393 of file TestClass.h.

393{}

Member Function Documentation

◆ getKey()

std::string TestClass2::getKey ( ) const
inlinevirtual

Reimplemented from TestClass.

Definition at line 399 of file TestClass.h.

399 {
400 return("TestClass2");
401
402 }

◆ isEqual()

bool TestClass2::isEqual ( const TestClass * otherobj) const
inlinevirtual

Implements TestClass.

Definition at line 403 of file TestClass.h.

403 {
404 TestClass2 *tc=(TestClass2 *)otherobj;
405 if(a){
406 if(a==tc->a){
407 return true;
408 }
409 else{
410 return false;
411 }
412 }
413 else if(b){
414 if(b==tc->b){
415 return true;
416 }
417 else{
418 return false;
419 }
420 }
421 else if(c){
422 if(c==tc->c){
423 return true;
424 }
425 else{
426 return false;
427 }
428 }
429 else{ return false;}
430 }
static Double_t tc
double b
Definition TestClass.h:375

◆ print()

void TestClass2::print ( ) const
inlinevirtual

Implements TestClass.

Definition at line 394 of file TestClass.h.

394 {std::cout<< "TC2 "<<"\t"
395 << a <<"\t"
396 << b <<"\t"
397 << c <<std::endl;
398 }

◆ Set() [1/3]

void TestClass2::Set ( const double i)
inline

Definition at line 386 of file TestClass.h.

386 {
387 b=i;}

◆ Set() [2/3]

void TestClass2::Set ( const float i)
inline

Definition at line 390 of file TestClass.h.

390 {
391 c=i;}

◆ Set() [3/3]

void TestClass2::Set ( const int i)
inline

Definition at line 382 of file TestClass.h.

382 {
383 a=i;}

Member Data Documentation

◆ a

int TestClass2::a

Definition at line 374 of file TestClass.h.

◆ b

double TestClass2::b

Definition at line 375 of file TestClass.h.

◆ c

float TestClass2::c

Definition at line 376 of file TestClass.h.

◆ key

std::string TestClass::key
inherited

Definition at line 19 of file TestClass.h.


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