CMS 3D CMS Logo

Classes | Functions
DTFileReaderHelpers.h File Reference
#include <cstdint>

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

◆ dataPointer()

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

Definition at line 6 of file DTFileReaderHelpers.h.

6  {
7  union bPtr {
8  const T* dataP;
9  char* fileP;
10  };
11  union bPtr buf;
12  buf.dataP = ptr;
13  return buf.fileP;
14 }

References visDQMUpload::buf.

◆ typePointer()

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

Definition at line 17 of file DTFileReaderHelpers.h.

17  {
18  union bPtr {
19  T* dataP;
20  const char* fileP;
21  };
22  union bPtr buf;
23  buf.fileP = ptr;
24  return buf.dataP;
25 }

References visDQMUpload::buf.

visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
T
long double T
Definition: Basic3DVectorLD.h:48