CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_1/src/IORawData/DTCommissioning/src/DTFileReaderHelpers.h File Reference

#include <boost/cstdint.hpp>

Go to the source code of this file.

Classes

struct  twoNibble
struct  twoNibble64

Functions

template<class T >
char * dataPointer (const T *ptr)
template<class T >
TtypePointer (const char *ptr)

Function Documentation

template<class T >
char* dataPointer ( const T ptr)

Definition at line 6 of file DTFileReaderHelpers.h.

                                                    {
  union bPtr {
    const T* dataP;
    char*    fileP;
  };
  union bPtr buf;
  buf.dataP = ptr;
  return buf.fileP;
}
template<class T >
T* typePointer ( const char *  ptr)

Definition at line 17 of file DTFileReaderHelpers.h.

                                                    {
  union bPtr {
    T*          dataP;
    const char* fileP;
  };
  union bPtr buf;
  buf.fileP = ptr;
  return buf.dataP;
}