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

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

◆ 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:
TestClass13::ai
int ai[3]
Definition: TestClass.h:123
lumiFormat.i
int i
Definition: lumiFormat.py:85
TestClass13::Set
void Set(const int i)
Definition: TestClass.h:129
TestClass13
Definition: TestClass.h:121
fitman.k
k
Definition: fitman.py:528