ATLAS Offline Software
Loading...
Searching...
No Matches
VectorConverter.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
15
16
17#ifndef ROOTCONVERSIONS_VECTORCONVERTER_H
18#define ROOTCONVERSIONS_VECTORCONVERTER_H
19
20#include <string>
21#include <vector>
22#include "Rtypes.h"
23#include "TBuffer.h"
24#include "TClass.h"
25#include "TMemberStreamer.h"
26
27
28namespace RootConversions {
29
30
34template <typename T, typename U>
36 : public TMemberStreamer
37{
38public:
43 VectorConverter (const char* tname);
44
45
52 virtual void operator() (TBuffer& b, void* pmember, Int_t size=0);
53
54
55private:
57 TClass* m_cl;
58};
59
60
61} // namespace RootConversions
62
63
65
66
67#endif // not ROOTCONVERSIONS_VECTORCONVERTER_H
virtual void operator()(TBuffer &b, void *pmember, Int_t size=0)
Run the streamer.
TClass * m_cl
Hold the class for vector<double>.
VectorConverter(const char *tname)
Constructor.