FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TriviallyCopyableDataSaver< TPayload > Class Template Reference

#include <TriviallyCopyableDataSaver.h>

Public Member Functions

 TriviallyCopyableDataSaver ()
 
virtual ~TriviallyCopyableDataSaver ()
 
virtual void InitOutputFile ()
 
void Write (std::ofstream &outfile, TPayload *ObjArr, long sizeArr=1)
 
void Write (std::ofstream &outfile, FairMQMessage *msg)
 
std::vector< std::vector
< TPayload > > 
Read (std::ifstream &infile)
 
void ReadArr (std::ifstream &infile, std::vector< std::vector< TPayload >> &DataContainer)
 
template<typename T >
void ReadArr (std::ifstream &infile, T *ObjArr, long posArr=0)
 
template<typename T >
void write_pod (std::ofstream &out, T &t)
 
template<typename T >
void read_pod (std::ifstream &in, T &t)
 
template<typename T >
void write_pod_vector (std::ofstream &out, std::vector< T > &vect)
 
template<typename T >
void read_pod_vector (std::ifstream &in, std::vector< T > &vect)
 
template<typename T >
void write_pod_array (std::ofstream &out, T *objarr, long size)
 
template<typename T >
int count_podObj_inFile (std::ifstream &in)
 
template<typename T >
long read_pod_array (std::ifstream &in, T *objarr, long posArr=0)
 

Detailed Description

template<typename TPayload>
class TriviallyCopyableDataSaver< TPayload >

Definition at line 14 of file TriviallyCopyableDataSaver.h.

Constructor & Destructor Documentation

template<typename TPayload >
TriviallyCopyableDataSaver< TPayload >::TriviallyCopyableDataSaver ( )
inline

Definition at line 17 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
virtual TriviallyCopyableDataSaver< TPayload >::~TriviallyCopyableDataSaver ( )
inlinevirtual

Definition at line 18 of file TriviallyCopyableDataSaver.h.

Member Function Documentation

template<typename TPayload >
template<typename T >
int TriviallyCopyableDataSaver< TPayload >::count_podObj_inFile ( std::ifstream &  in)
inline

Definition at line 137 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
virtual void TriviallyCopyableDataSaver< TPayload >::InitOutputFile ( )
inlinevirtual

Definition at line 20 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
std::vector<std::vector<TPayload> > TriviallyCopyableDataSaver< TPayload >::Read ( std::ifstream &  infile)
inline

Definition at line 46 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
void TriviallyCopyableDataSaver< TPayload >::read_pod ( std::ifstream &  in,
T &  t 
)
inline

Definition at line 107 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
long TriviallyCopyableDataSaver< TPayload >::read_pod_array ( std::ifstream &  in,
T *  objarr,
long  posArr = 0 
)
inline

Definition at line 159 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
void TriviallyCopyableDataSaver< TPayload >::read_pod_vector ( std::ifstream &  in,
std::vector< T > &  vect 
)
inline

Definition at line 121 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
void TriviallyCopyableDataSaver< TPayload >::ReadArr ( std::ifstream &  infile,
std::vector< std::vector< TPayload >> &  DataContainer 
)
inline

Definition at line 53 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
void TriviallyCopyableDataSaver< TPayload >::ReadArr ( std::ifstream &  infile,
T *  ObjArr,
long  posArr = 0 
)
inline

Definition at line 80 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
void TriviallyCopyableDataSaver< TPayload >::Write ( std::ofstream &  outfile,
TPayload *  ObjArr,
long  sizeArr = 1 
)
inline

Definition at line 22 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
void TriviallyCopyableDataSaver< TPayload >::Write ( std::ofstream &  outfile,
FairMQMessage *  msg 
)
inline

Definition at line 31 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
void TriviallyCopyableDataSaver< TPayload >::write_pod ( std::ofstream &  out,
T &  t 
)
inline

Definition at line 101 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
void TriviallyCopyableDataSaver< TPayload >::write_pod_array ( std::ofstream &  out,
T *  objarr,
long  size 
)
inline

Definition at line 130 of file TriviallyCopyableDataSaver.h.

template<typename TPayload >
template<typename T >
void TriviallyCopyableDataSaver< TPayload >::write_pod_vector ( std::ofstream &  out,
std::vector< T > &  vect 
)
inline

Definition at line 113 of file TriviallyCopyableDataSaver.h.


The documentation for this class was generated from the following file: