CMS 3D CMS Logo

edm::CustomStreamer< T > Class Template Reference

#include <IOPool/Common/interface/CustomStreamer.h>

List of all members.

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 12 of file CustomStreamer.h.


Member Typedef Documentation

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

Definition at line 14 of file CustomStreamer.h.


Constructor & Destructor Documentation

template<typename T>
edm::CustomStreamer< T >::CustomStreamer (  )  [inline]

Definition at line 23 of file CustomStreamer.h.

00023                                     :
00024     className_(TypeID(typeid(T)).className()),
00025     cl_(className_.c_str())
00026   {}


Member Function Documentation

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

Definition at line 30 of file CustomStreamer.h.

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

00030                                                          {
00031     if (R__b.IsReading()) {
00032       cl_->ReadBuffer(R__b, objp);
00033     } else {
00034       cl_->WriteBuffer(R__b, objp);
00035     }
00036   }


Member Data Documentation

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

Definition at line 19 of file CustomStreamer.h.

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

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

Definition at line 18 of file CustomStreamer.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:39:56 2009 for CMSSW by  doxygen 1.5.4