ATLAS Offline Software
FooBar.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TOYCONVERSION_FOOBAR_H
6 #define TOYCONVERSION_FOOBAR_H
7 
9 class Foo{
10 private:
11  double m_a;
12 public:
13  Foo(): m_a(0.0) {
14  // std::cout << "Foo() called @" << this <<std::endl;
15  }
16  Foo(double a): m_a(a) {
17  // std::cout << "Foo() called @" << this << std::endl;
18  }
19  ~Foo() {
20  // std::cout << "~Foo() called @" << this << std::endl;
21  }
22  void setA(double a) { m_a=a; }
23  double a() const { return m_a; }
24  void doNothing() const {};
25 };
26 CLASS_DEF( Foo, 8101, 0)
27 struct Bar{
28  void doNothing() const {};
29 };
30 CLASS_DEF( Bar, 8107, 0)
31 
32 #endif // TOYCONVERSION_FOOBAR_H
Foo
Definition: FooBar.h:9
Foo::setA
void setA(double a)
Definition: FooBar.h:22
Foo::Foo
Foo(double a)
Definition: FooBar.h:16
Bar::doNothing
void doNothing() const
Definition: FooBar.h:28
Foo::Foo
Foo()
Definition: FooBar.h:13
Foo::~Foo
~Foo()
Definition: FooBar.h:19
Bar
Definition: FooBar.h:27
Foo::a
double a() const
Definition: FooBar.h:23
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
Foo::doNothing
void doNothing() const
Definition: FooBar.h:24
Foo::m_a
double m_a
Definition: FooBar.h:11
CLASS_DEF.h
macros to associate a CLID to a type