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

#include <TestClass.h>

Inheritance diagram for TCBase:
Collaboration diagram for TCBase:

Public Member Functions

 TCBase ()
 TCBase (const int i)
void Set (const int i)
virtual ~TCBase ()
void print () const
bool isEqual (const TestClass *otherobj) const
std::string getKey () const

Public Attributes

int ai
std::string key

Detailed Description

Definition at line 276 of file TestClass.h.

Constructor & Destructor Documentation

◆ TCBase() [1/2]

TCBase::TCBase ( )
inline

Definition at line 281 of file TestClass.h.

281{}

◆ TCBase() [2/2]

TCBase::TCBase ( const int i)
inline

Definition at line 282 of file TestClass.h.

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

◆ ~TCBase()

virtual TCBase::~TCBase ( )
inlinevirtual

Definition at line 287 of file TestClass.h.

287{}

Member Function Documentation

◆ getKey()

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

Reimplemented from TestClass.

Reimplemented in TCIn1, and TCIn.

Definition at line 302 of file TestClass.h.

302 {
303 return("TCBase");
304 }

◆ isEqual()

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

Implements TestClass.

Reimplemented in TCIn1, and TCIn.

Definition at line 293 of file TestClass.h.

293 {
294 TCBase *tc=(TCBase *)otherobj;
295 if(ai==tc->ai){
296 }
297 else{
298 return false;
299 }
300 return true;
301 }
static Double_t tc
int ai
Definition TestClass.h:278

◆ print()

void TCBase::print ( ) const
inlinevirtual

Implements TestClass.

Reimplemented in TCIn.

Definition at line 289 of file TestClass.h.

289 {
290 std::cout<<"Output:base class member:"<<ai<<std::endl;
291 }

◆ Set()

void TCBase::Set ( const int i)
inline

Definition at line 283 of file TestClass.h.

283 {
284 ai=i;
285 }

Member Data Documentation

◆ ai

int TCBase::ai

Definition at line 278 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: