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

#include <TestClass.h>

Inheritance diagram for TestClass13:
Collaboration diagram for TestClass13:

Public Member Functions

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

Public Attributes

int ai [3]
std::string key

Detailed Description

Definition at line 121 of file TestClass.h.

Constructor & Destructor Documentation

◆ TestClass13() [1/2]

TestClass13::TestClass13 ( )
inline

Definition at line 126 of file TestClass.h.

126{}

◆ TestClass13() [2/2]

TestClass13::TestClass13 ( const int i)
inline

Definition at line 127 of file TestClass.h.

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

◆ ~TestClass13()

TestClass13::~TestClass13 ( )
inline

Definition at line 137 of file TestClass.h.

137{}

Member Function Documentation

◆ getKey()

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

Reimplemented from TestClass.

Definition at line 144 of file TestClass.h.

144 {
145 return("TestClass13");
146
147 }

◆ isEqual()

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

Implements TestClass.

Definition at line 149 of file TestClass.h.

149 {
150 TestClass13 *tc = (TestClass13 *)otherobj;
151 for(int k=0;k<3;k++){
152 if(ai[k]==tc->ai[k]){
153
154
155 }
156 else{
157 return false;
158 }
159
160 }
161 return true;
162 }
static Double_t tc
int ai[3]
Definition TestClass.h:123

◆ print()

void TestClass13::print ( ) const
inlinevirtual

Implements TestClass.

Definition at line 138 of file TestClass.h.

138 { std::cout << "Output::TC13: array of integers "<<"\t"
139 << ai[0] <<"\t"
140 <<ai[1]<<"\t"
141 <<ai[2]<<std:: endl;
142 }

◆ Set()

void TestClass13::Set ( const int i)
inline

Definition at line 129 of file TestClass.h.

129 {
130 for(int j=0;j<3;j++){
131 ai[j]=i+j;
132 }
133
134 }

Member Data Documentation

◆ ai

int TestClass13::ai[3]

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