CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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 }
long double T
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 }
long double T