ATLAS Offline Software
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 
11 
12 public:
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
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
39  data( 0 )
40 {}
41 
42 inline bool
44 {
45  return ( data == rhs.data );
46 }
47 
48 inline bool
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