ATLAS Offline Software
Loading...
Searching...
No Matches
ViewVectorBaseStreamer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id$
17
18
20#include "TClass.h"
21#include "TBuffer.h"
22
23
24namespace SG {
25
26
27void ViewVectorBaseStreamerFunc (TBuffer& b, void* p)
28{
29 static TClass* const cl = TClass::GetClass ("SG::ViewVectorBase");
30 if (b.IsReading()) {
31 cl->ReadBuffer (b, p);
32 } else {
33 SG::ViewVectorBase* vvb = reinterpret_cast<SG::ViewVectorBase*>(p);
34 vvb->toPersistent();
35 cl->WriteBuffer(b, p);
36 }
37}
38
39
40} // namespace SG
41
42
43namespace ROOT {
44TGenericClassInfo* GenerateInitInstance(const SG::ViewVectorBase*);
45}
46
47namespace SG {
54} // namespace SG
55
Hold the persistent representation for a ViewVector.
Hold the persistent representation for a ViewVector.
virtual void toPersistent()=0
Convert the vector to persistent form.
Selection rules: declare transient members.
Definition DataVector.h:581
TGenericClassInfo * GenerateInitInstance(const SG::ViewVectorBase *)
Forward declaration.
InstallViewVectorBaseStreamer viewVectorBaseStreamerInstance
void ViewVectorBaseStreamerFunc(TBuffer &b, void *p)