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

#include <TestClass.h>

Inheritance diagram for TestClassB:
Collaboration diagram for TestClassB:

Public Member Functions

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

Public Attributes

TestClassAaa
std::string key

Detailed Description

Definition at line 202 of file TestClass.h.

Constructor & Destructor Documentation

◆ TestClassB()

TestClassB::TestClassB ( )

Definition at line 266 of file TestClass.h.

266 {
267 std::cout << "TestClassB::TestClassB()" << std::endl;
268}

◆ ~TestClassB()

TestClassB::~TestClassB ( )

Definition at line 271 of file TestClass.h.

271 {
272 std::cout << "TestClassB::~TestClassB()" << std::endl;
273}

Member Function Documentation

◆ getKey()

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

Reimplemented from TestClass.

Definition at line 214 of file TestClass.h.

214 {
215 return("TestClassB");
216 }

◆ isEqual()

bool TestClassB::isEqual ( const TestClass * ) const
inlinevirtual

Implements TestClass.

Definition at line 218 of file TestClass.h.

218 {
219 return false ;}

◆ print()

void TestClassB::print ( ) const
inlinevirtual

Implements TestClass.

Definition at line 211 of file TestClass.h.

211 {std::cout<<"TCB:" << this << " aa: " << aa <<std::endl;
212 }
TestClassA * aa
Definition TestClass.h:204

◆ SetA()

void TestClassB::SetA ( TestClassA * ptr)

Definition at line 247 of file TestClass.h.

247 {
248 aa=ptr;
249 ptr->print();
250
251}
void * ptr(T *p)
Definition SGImplSvc.cxx:74

Member Data Documentation

◆ aa

TestClassA* TestClassB::aa

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