ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TestClassA Class Reference

#include <TestClass.h>

Inheritance diagram for TestClassA:
Collaboration diagram for TestClassA:

Public Member Functions

 TestClassA ()
 
 ~TestClassA ()
 
void print () const
 
std::string getKey () const
 
bool isEqual (const TestClass *) const
 

Public Attributes

TestClassBbb
 
int a
 
std::string key
 

Detailed Description

Definition at line 223 of file TestClass.h.

Constructor & Destructor Documentation

◆ TestClassA()

TestClassA::TestClassA ( )

Definition at line 254 of file TestClass.h.

254  {
255 
256  bb=new TestClassB();
257  bb->SetA(this);
258  bb->print();
259 }

◆ ~TestClassA()

TestClassA::~TestClassA ( )

Definition at line 262 of file TestClass.h.

262  {
263  delete bb;
264 }

Member Function Documentation

◆ getKey()

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

Reimplemented from TestClass.

Definition at line 238 of file TestClass.h.

238  {
239  return("TestClassA");
240  }

◆ isEqual()

bool TestClassA::isEqual ( const TestClass ) const
inlinevirtual

Implements TestClass.

Definition at line 242 of file TestClass.h.

242  {
243 
244  return false;}

◆ print()

void TestClassA::print ( ) const
inlinevirtual

Implements TestClass.

Definition at line 232 of file TestClass.h.

232  {
233  std::cout<<"TCA:"<<"\t"
234  << "bb: " << bb << " and this: " << this <<std::endl;
235 
236  }

Member Data Documentation

◆ a

int TestClassA::a

Definition at line 226 of file TestClass.h.

◆ bb

TestClassB* TestClassA::bb

Definition at line 225 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:
TestClassB::print
void print() const
Definition: TestClass.h:211
TestClassB
Definition: TestClass.h:202
TestClassA::bb
TestClassB * bb
Definition: TestClass.h:225
TestClassB::SetA
void SetA(TestClassA *ptr)
Definition: TestClass.h:247