ATLAS Offline Software
Loading...
Searching...
No Matches
MetaData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef SAMPLE_HANDLER_META_DATA_HH
8#define SAMPLE_HANDLER_META_DATA_HH
9
11
12#include <SampleHandler/Meta.h>
13
14namespace SH
15{
18 template<class T> class MetaData : public Meta
19 {
20 //
21 // public interface
22 //
23
28 public:
29 void testInvariant () const;
30
31
40 public:
41 MetaData ();
42
43
50 public:
51 MetaData (const std::string& name, const T& set_value);
52
53
55 public:
57
58
59
60 //
61 // private interface
62 //
63
65 };
66}
67
69
70namespace SH
71{
72 template<class T> void MetaData<T> ::
73 testInvariant () const
74 {
75 }
76
77
78
79 template<class T> MetaData<T> ::
80 MetaData ()
81 : Meta ("")
82 {
83 RCU_NEW_INVARIANT (this);
84 }
85
86
87
88 template<class T> MetaData<T> ::
89 MetaData (const std::string& name, const T& set_value)
90 : Meta (name), value (set_value)
91 {
92 RCU_NEW_INVARIANT (this);
93 }
94}
95
96#endif
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:228
void testInvariant() const
test the invariant of this object
Definition MetaData.h:73
ClassDef(MetaData, 1)
MetaData()
standard default constructor
Definition MetaData.h:80
T value
the value contained
Definition MetaData.h:56
Meta(const std::string &name)
standard constructor
Definition Meta.cxx:44
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15