CMS 3D CMS Logo

Classes | Macros | Functions
vppc_sim_lib.h File Reference
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cstdarg>
#include <map>
#include <vector>
#include <exception>
#include <stdexcept>
#include <time.h>

Go to the source code of this file.

Classes

class  signal_
 
class  signal_storage
 

Macros

#define const__p   const_s_p
 
#define dull   unsigned long long
 
#define max_bits   1024
 
#define max_depth   32
 
#define max_temp_sig   64
 
#define mdull   (0xffffffffffffffffULL)
 
#define mull   (0xffffffffUL)
 
#define repeat(a)   for (int __rep_counter__ = 0; __rep_counter__ < a; __rep_counter__++)
 
#define Sdisplay(cl, ...)   Sfwrite(stdout_sig, (std::string)cl + "\n", ##__VA_ARGS__)
 
#define sdull   64
 
#define Sfdisplay(fd, cl, ...)   Sfwrite(fd, (std::string)cl + "\n", ##__VA_ARGS__)
 
#define Stime   clock()
 
#define sull   32
 
#define Swrite(cl, ...)   Sfwrite(stdout_sig, cl, ##__VA_ARGS__)
 
#define temp_i_mask   (max_temp_sig - 1)
 
#define ull   unsigned int
 

Functions

void beginalways ()
 
unsigned int const_ (size_t sz, unsigned int val)
 
signal_const_l (size_t sz, size_t count,...)
 
signal_const_l_p (size_t sz, size_t count,...)
 
signal_const_s (size_t sz, unsigned long long val)
 
signal_const_s_p (size_t sz, unsigned long long val)
 
void endalways ()
 
void Sfclose (signal_ &fd)
 
int Sfeof (signal_ &fd)
 
int Sfgets (signal_ &line, signal_ &fd)
 
signal_ Sfopen (std::string fname, std::string mode="w")
 
void Sfwrite (signal_ &fd, std::string format,...)
 
void sim_lib_init ()
 
void Sreadmemh (std::string fname, signal_ &dest, size_t adr=0)
 
int Ssscanf (signal_ &line, std::string format,...)
 

Macro Definition Documentation

#define const__p   const_s_p

Definition at line 25 of file vppc_sim_lib.h.

#define dull   unsigned long long

Definition at line 16 of file vppc_sim_lib.h.

Referenced by signal_::operator^=().

#define max_bits   1024

Definition at line 24 of file vppc_sim_lib.h.

#define max_depth   32

Definition at line 21 of file vppc_sim_lib.h.

#define max_temp_sig   64

Definition at line 22 of file vppc_sim_lib.h.

#define mdull   (0xffffffffffffffffULL)

Definition at line 20 of file vppc_sim_lib.h.

#define mull   (0xffffffffUL)

Definition at line 19 of file vppc_sim_lib.h.

#define repeat (   a)    for (int __rep_counter__ = 0; __rep_counter__ < a; __rep_counter__++)

Definition at line 28 of file vppc_sim_lib.h.

Referenced by reco::GhostTrackVertexFinder::recursiveMerge().

#define Sdisplay (   cl,
  ... 
)    Sfwrite(stdout_sig, (std::string)cl + "\n", ##__VA_ARGS__)

Definition at line 30 of file vppc_sim_lib.h.

#define sdull   64

Definition at line 18 of file vppc_sim_lib.h.

#define Sfdisplay (   fd,
  cl,
  ... 
)    Sfwrite(fd, (std::string)cl + "\n", ##__VA_ARGS__)

Definition at line 31 of file vppc_sim_lib.h.

#define Stime   clock()

Definition at line 27 of file vppc_sim_lib.h.

#define sull   32

Definition at line 17 of file vppc_sim_lib.h.

#define Swrite (   cl,
  ... 
)    Sfwrite(stdout_sig, cl, ##__VA_ARGS__)

Definition at line 29 of file vppc_sim_lib.h.

#define temp_i_mask   (max_temp_sig - 1)

Definition at line 23 of file vppc_sim_lib.h.

#define ull   unsigned int

Function Documentation

void beginalways ( )
unsigned int const_ ( size_t  sz,
unsigned int  val 
)

Referenced by signal_::operator^=().

signal_ & const_l ( size_t  sz,
size_t  count,
  ... 
)

Referenced by signal_::operator^=().

signal_& const_l_p ( size_t  sz,
size_t  count,
  ... 
)

Referenced by signal_::operator^=().

signal_& const_s ( size_t  sz,
unsigned long long  val 
)

Referenced by signal_::operator^=().

signal_& const_s_p ( size_t  sz,
unsigned long long  val 
)

Referenced by signal_::operator^=().

void endalways ( )
void Sfclose ( signal_ fd)
int Sfeof ( signal_ fd)
int Sfgets ( signal_ line,
signal_ fd 
)
signal_ Sfopen ( std::string  fname,
std::string  mode = "w" 
)
void Sfwrite ( signal_ fd,
std::string  format,
  ... 
)
void sim_lib_init ( )
void Sreadmemh ( std::string  fname,
signal_ dest,
size_t  adr = 0 
)
int Ssscanf ( signal_ line,
std::string  format,
  ... 
)