ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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);}

◆ ~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  }

◆ 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:
TCBase::ai
int ai
Definition: TestClass.h:278
TCBase::Set
void Set(const int i)
Definition: TestClass.h:283
lumiFormat.i
int i
Definition: lumiFormat.py:92
TCBase
Definition: TestClass.h:276