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

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

Definition at line 15 of file CustomStreamer.h.

Constructor & Destructor Documentation

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  {}
std::string className_
long double T
std::string className(const T &t)
Definition: ClassName.h:31

Member Function Documentation

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

Definition at line 31 of file CustomStreamer.h.

References edm::CustomStreamer< T >::cl_.

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

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

Definition at line 20 of file CustomStreamer.h.

Referenced by edm::CustomStreamer< T >::operator()().

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

Definition at line 19 of file CustomStreamer.h.