CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edm::CustomStreamer< T > Class Template Reference

#include <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 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.

                                    :
    className_(TypeID(typeid(T)).className()),
    cl_(className_.c_str())
  {}

Member Function Documentation

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

Definition at line 31 of file CustomStreamer.h.

                                                         {
    if (R__b.IsReading()) {
      cl_->ReadBuffer(R__b, objp);
    } else {
      cl_->WriteBuffer(R__b, objp);
    }
  }

Member Data Documentation

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

Definition at line 20 of file CustomStreamer.h.

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

Definition at line 19 of file CustomStreamer.h.