CMS 3D CMS Logo

Namespaces | Functions
emulator_io.h File Reference
#include <fstream>
#include <vector>
#include "DataFormats/L1TParticleFlow/interface/datatypes.h"

Go to the source code of this file.

Namespaces

 l1ct
 

Functions

template<typename T >
bool l1ct::readAP (std::fstream &from, T &to)
 
template<typename T >
bool l1ct::readMany (std::fstream &from, std::vector< T > &objs)
 
template<int NB>
bool l1ct::readMany (std::fstream &from, std::vector< ap_uint< NB >> &objs)
 
template<typename T >
bool l1ct::readObj (std::fstream &from, T &obj)
 
template<typename T >
bool l1ct::readVar (std::fstream &from, T &to)
 
template<typename T >
bool l1ct::writeAP (const T &src, std::fstream &to)
 
template<typename T >
bool l1ct::writeMany (const std::vector< T > &objs, std::fstream &to)
 
template<int NB>
bool l1ct::writeMany (const std::vector< ap_uint< NB >> &objs, std::fstream &to)
 
template<typename T >
bool l1ct::writeObj (const T &obj, std::fstream &to)
 
template<typename T >
bool l1ct::writeVar (const T &src, std::fstream &to)