ATLAS Offline Software
Loading...
Searching...
No Matches
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
12public:
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
24inline void
29
30inline std::ostream&
31SimpleTestClass::streamOut( std::ostream& os ) const
32{
33 os << "data = " << data;
34 return os;
35}
36
37inline
41
42inline bool
44{
45 return ( data == rhs.data );
46}
47
48inline bool
50{
51 return ( ( (*this) == rhs ) ? false : true );
52}
53
54
55#endif
std::ostream & streamOut(std::ostream &os) const
bool operator!=(const SimpleTestClass &rhs) const
bool operator==(const SimpleTestClass &rhs) const