ATLAS Offline Software
Loading...
Searching...
No Matches
SampleMeta.cxx File Reference
Include dependency graph for SampleMeta.cxx:

Go to the source code of this file.

Functions

 ClassImp (SH::SampleMeta) namespace SH

Function Documentation

◆ ClassImp()

ClassImp ( SH::SampleMeta )
Author
Nils Krumnack

Definition at line 21 of file SampleMeta.cxx.

24{
25 void SampleMeta ::
26 testInvariant () const
27 {
28 }
29
30
31
32 SampleMeta ::
33 SampleMeta ()
34 : Sample ("unnamed")
35 {
36 RCU_NEW_INVARIANT (this);
37 }
38
39
40
41 SampleMeta ::
42 SampleMeta (const std::string& name)
43 : Sample (name)
44 {
45 RCU_NEW_INVARIANT (this);
46 }
47
48
49
50 std::size_t SampleMeta ::
51 getNumFiles () const
52 {
53 RCU_READ_INVARIANT (this);
54 // rationale: this is just so that print() will work
55 return 0;
56 }
57
58
59
60 std::string SampleMeta ::
61 getFileName (std::size_t /*index*/) const
62 {
63 RCU_READ_INVARIANT (this);
64 RCU_THROW_MSG ("fileName() should not be called on SampleMeta");
65 return ""; //compiler dummy
66 }
67
68
69
70 std::unique_ptr<SampleLocal> SampleMeta ::
71 doMakeLocal () const
72 {
73 RCU_READ_INVARIANT (this);
74 RCU_THROW_MSG ("makeLocal() should not be called on SampleMeta");
75 return {}; //compiler dummy
76 }
77
78
79
80 std::vector<std::string> SampleMeta ::
81 doMakeFileList () const
82 {
83 RCU_READ_INVARIANT (this);
84
85 std::vector<std::string> result;
86 return result;
87 }
88}
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:228
#define RCU_READ_INVARIANT(x)
Definition Assert.h:224
#define RCU_THROW_MSG(message)
Definition PrintMsg.h:53