CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::CustomStreamer< T > Class Template Reference

#include <CustomStreamer.h>

Inheritance diagram for edm::CustomStreamer< T >:

Public Types

typedef T element_type
 

Public Member Functions

 CustomStreamer ()
 
void operator() (TBuffer &R__b, void *objp)
 

Private Attributes

TClassRef cl_
 
std::string className_
 

Detailed Description

template<typename T>
class edm::CustomStreamer< T >

Definition at line 13 of file CustomStreamer.h.

Member Typedef Documentation

◆ element_type

template<typename T >
typedef T edm::CustomStreamer< T >::element_type

Definition at line 15 of file CustomStreamer.h.

Constructor & Destructor Documentation

◆ CustomStreamer()

template<typename T >
edm::CustomStreamer< T >::CustomStreamer ( )

Definition at line 24 of file CustomStreamer.h.

24  :
25  className_(TypeID(typeid(T)).className()),
26  cl_(className_.c_str())
27  {}

Member Function Documentation

◆ operator()()

template<typename T >
void edm::CustomStreamer< T >::operator() ( TBuffer &  R__b,
void *  objp 
)

Definition at line 31 of file CustomStreamer.h.

31  {
32  if (R__b.IsReading()) {
33  cl_->ReadBuffer(R__b, objp);
34  } else {
35  cl_->WriteBuffer(R__b, objp);
36  }
37  }

Member Data Documentation

◆ cl_

template<typename T >
TClassRef edm::CustomStreamer< T >::cl_
private

Definition at line 20 of file CustomStreamer.h.

◆ className_

template<typename T >
std::string edm::CustomStreamer< T >::className_
private

Definition at line 19 of file CustomStreamer.h.

edm::CustomStreamer::cl_
TClassRef cl_
Definition: CustomStreamer.h:20
edm::CustomStreamer::className_
std::string className_
Definition: CustomStreamer.h:19
T
long double T
Definition: Basic3DVectorLD.h:48
className
std::string className(const T &t)
Definition: ClassName.h:31