#include <assert.h>
#include "PndFTSCADef.h"
#include <cstdio>
Go to the source code of this file.
|  | 
| template<typename T > | 
| static void | BinaryStoreWrite (const T *mem, int count, FILE *f) | 
|  | 
| template<typename T > | 
| static void | BinaryStoreWrite (const T &mem, FILE *f) | 
|  | 
| static void | BinaryStoreWrite (const void *offsetPtr, const void *mem, FILE *f) | 
|  | 
| template<typename T > | 
| static void | BinaryStoreRead (T *mem, int count, FILE *f) | 
|  | 
| template<typename T > | 
| static void | BinaryStoreRead (T &mem, FILE *f) | 
|  | 
| template<typename T > | 
| static void | BinaryStoreRead (T *&offsetPtr, char *mem, FILE *f) | 
|  | 
template<typename T > 
  
  | 
        
          | static void BinaryStoreRead | ( | T * | mem, |  
          |  |  | int | count, |  
          |  |  | FILE * | f |  
          |  | ) |  |  |  | inlinestatic | 
 
 
template<typename T > 
  
  | 
        
          | static void BinaryStoreRead | ( | T & | mem, |  
          |  |  | FILE * | f |  
          |  | ) |  |  |  | inlinestatic | 
 
Definition at line 57 of file BinaryStoreHelper.h.
References T.
   59   const size_t read = std::fread( &mem, 
sizeof( 
T ), 1, 
f );
 
   60   assert( read == 1 ); UNUSED_PARAM1( read );
 
 
 
 
template<typename T > 
  
  | 
        
          | static void BinaryStoreRead | ( | T *& | offsetPtr, |  
          |  |  | char * | mem, |  
          |  |  | FILE * | f |  
          |  | ) |  |  |  | inlinestatic | 
 
Definition at line 64 of file BinaryStoreHelper.h.
References offset(), and T.
   67   const size_t read = std::fread( &offset, 
sizeof( 
int ), 1, 
f );
 
   68   assert( read == 1 ); UNUSED_PARAM1( read );
 
   69   offsetPtr = 
reinterpret_cast<T *
>( mem + 
offset );
 
 
 
 
template<typename T > 
  
  | 
        
          | static void BinaryStoreWrite | ( | const T * | mem, |  
          |  |  | int | count, |  
          |  |  | FILE * | f |  
          |  | ) |  |  |  | inlinestatic | 
 
 
template<typename T > 
  
  | 
        
          | static void BinaryStoreWrite | ( | const T & | mem, |  
          |  |  | FILE * | f |  
          |  | ) |  |  |  | inlinestatic | 
 
Definition at line 36 of file BinaryStoreHelper.h.
References T.
   38   const size_t written = std::fwrite( &mem, 
sizeof( 
T ), 1, 
f );
 
   39   assert( written == 1 ); UNUSED_PARAM1( written );
 
 
 
 
  
  | 
        
          | static void BinaryStoreWrite | ( | const void * | offsetPtr, |  
          |  |  | const void * | mem, |  
          |  |  | FILE * | f |  
          |  | ) |  |  |  | inlinestatic | 
 
Definition at line 42 of file BinaryStoreHelper.h.
References offset().
   44   const int offset = 
static_cast<const char *
>( offsetPtr ) - static_cast<const char *>( mem );
 
   45   const size_t written = std::fwrite( &offset, 
sizeof( 
int ), 1, 
f );
 
   46   assert( written == 1 ); UNUSED_PARAM1( written );