ATLAS Offline Software
Database
APR
APRTests
TestDictionary
SimpleTestClass.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef SIMPLETESTCLASS_H
6
#define SIMPLETESTCLASS_H
7
8
#include <ostream>
9
10
class
SimpleTestClass
{
11
12
public
:
13
SimpleTestClass
();
14
~SimpleTestClass
() {}
15
16
void
setNonZero
();
17
bool
operator==
(
const
SimpleTestClass
& rhs )
const
;
18
bool
operator!=
(
const
SimpleTestClass
& rhs )
const
;
19
std::ostream&
streamOut
( std::ostream&
os
)
const
;
20
21
int
data
;
22
};
23
24
inline
void
25
SimpleTestClass::setNonZero
()
26
{
27
data
= 1;
28
}
29
30
inline
std::ostream&
31
SimpleTestClass::streamOut
( std::ostream&
os
)
const
32
{
33
os
<<
"data = "
<<
data
;
34
return
os
;
35
}
36
37
inline
38
SimpleTestClass::SimpleTestClass
():
39
data
( 0 )
40
{}
41
42
inline
bool
43
SimpleTestClass::operator==
(
const
SimpleTestClass
& rhs )
const
44
{
45
return
(
data
== rhs.
data
);
46
}
47
48
inline
bool
49
SimpleTestClass::operator!=
(
const
SimpleTestClass
& rhs )
const
50
{
51
return
( ( (*
this
) == rhs ) ?
false
:
true
);
52
}
53
54
55
#endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition:
HepEvt.cxx:11
SimpleTestClass::SimpleTestClass
SimpleTestClass()
Definition:
SimpleTestClass.h:38
SimpleTestClass::data
int data
Definition:
SimpleTestClass.h:21
SimpleTestClass::operator!=
bool operator!=(const SimpleTestClass &rhs) const
Definition:
SimpleTestClass.h:49
SimpleTestClass::operator==
bool operator==(const SimpleTestClass &rhs) const
Definition:
SimpleTestClass.h:43
SimpleTestClass::setNonZero
void setNonZero()
Definition:
SimpleTestClass.h:25
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
SimpleTestClass::~SimpleTestClass
~SimpleTestClass()
Definition:
SimpleTestClass.h:14
SimpleTestClass::streamOut
std::ostream & streamOut(std::ostream &os) const
Definition:
SimpleTestClass.h:31
SimpleTestClass
Definition:
SimpleTestClass.h:10
Generated on Thu Nov 7 2024 21:26:09 for ATLAS Offline Software by
1.8.18