yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.7.2

Persistency reader from YODA text data format. More...

#include <ReaderYODA.h>

Inheritance diagram for YODA::ReaderYODA:
YODA::Reader

Public Member Functions

void read (std::istream &stream, std::vector< AnalysisObject *> &aos)
 Read in a collection of objects objs from output stream stream. More...
 
- Public Member Functions inherited from YODA::Reader
virtual ~Reader ()
 Virtual destructor. More...
 
template<typename CONT >
std::enable_if< YODA::Pushable< CONT, AnalysisObject * >::value >::type read (std::istream &stream, CONT &aos)
 Read in a collection of objects objs from output stream stream. More...
 
std::vector< AnalysisObject * > read (std::istream &stream)
 Read in a collection of objects from output stream stream. More...
 
template<typename CONT >
std::enable_if< YODA::Pushable< CONT, AnalysisObject * >::value >::type read (const std::string &filename, CONT &aos)
 Read in a collection of objects objs from file filename. More...
 
void read (const std::string &filename, std::vector< AnalysisObject *> &aos)
 Read in a collection of objects objs from file filename. More...
 
std::vector< AnalysisObject * > read (const std::string &filename)
 Read in a collection of objects from output stream stream. More...
 

Static Public Member Functions

static Readercreate ()
 Singleton creation function. More...
 
Reading multiple analysis objects into arbitrary collections.
template<typename CONT >
static std::enable_if< YODA::Pushable< CONT, AnalysisObject * >::value >::type read (std::istream &stream, CONT &aos)
 Read in a collection of objects objs from output stream stream. More...
 
static std::vector< AnalysisObject * > read (std::istream &stream)
 Read in a collection of objects from output stream stream. More...
 
template<typename CONT >
static std::enable_if< YODA::Pushable< CONT, AnalysisObject * >::value >::type read (const std::string &filename, CONT &aos)
 Read in a collection of objects objs from file filename. More...
 
static std::vector< AnalysisObject * > read (const std::string &filename)
 Read in a collection of objects from output stream stream. More...
 

Detailed Description

Persistency reader from YODA text data format.

Definition at line 16 of file ReaderYODA.h.

Member Function Documentation

◆ create()

static Reader& YODA::ReaderYODA::create ( )
static

Singleton creation function.

◆ read() [1/5]

void YODA::ReaderYODA::read ( std::istream &  stream,
std::vector< AnalysisObject *> &  aos 
)
virtual

Read in a collection of objects objs from output stream stream.

This version fills (actually, appends to) a supplied vector, avoiding copying, and is hence CPU efficient.

Implements YODA::Reader.

◆ read() [2/5]

template<typename CONT >
static std::enable_if<YODA::Pushable<CONT,AnalysisObject*>::value>::type YODA::ReaderYODA::read ( std::istream &  stream,
CONT &  aos 
)
inlinestatic

Read in a collection of objects objs from output stream stream.

This version fills (actually, appends to) a variable supplied container Note: SFINAE is used to check for a void push_back(const AnalysisObject*) method

Definition at line 30 of file ReaderYODA.h.

30  { }
31 
32  };

◆ read() [3/5]

static std::vector<AnalysisObject*> YODA::ReaderYODA::read ( std::istream &  stream)
inlinestatic

Read in a collection of objects from output stream stream.

This version returns a vector by value, involving copying, and is hence less CPU efficient than the alternative version where a vector is filled by reference.

Definition at line 47 of file ReaderYODA.h.

◆ read() [4/5]

template<typename CONT >
static std::enable_if<YODA::Pushable<CONT,AnalysisObject*>::value>::type YODA::ReaderYODA::read ( const std::string &  filename,
CONT &  aos 
)
inlinestatic

Read in a collection of objects objs from file filename.

This version fills (actually, appends to) a variable supplied container Note: SFINAE is used to check for a void push_back(const AnalysisObject*) method

Definition at line 59 of file ReaderYODA.h.

◆ read() [5/5]

static std::vector<AnalysisObject*> YODA::ReaderYODA::read ( const std::string &  filename)
inlinestatic

Read in a collection of objects from output stream stream.

This version returns a vector by value, involving copying, and is hence less CPU efficient than the alternative version where a vector is filled by reference.

Definition at line 76 of file ReaderYODA.h.


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