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

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

#include <ReaderFLAT.h>

Inheritance diagram for YODA::ReaderFLAT:
YODA::Reader

Public Member Functions

 ReaderFLAT (const ReaderFLAT &)=delete
 Disable copy and move constructors.
 
 ReaderFLAT (ReaderFLAT &&)=delete
 
void operator= (const ReaderFLAT &)=delete
 Disable copy and move assignments.
 
void operator= (ReaderFLAT &&)=delete
 
void read (std::istream &stream, std::vector< AnalysisObject * > &aos, const std::string &match="", const std::string &unmatch="")
 Read in a collection of objects objs from output stream stream.
 
- Public Member Functions inherited from YODA::Reader
virtual ~Reader ()
 Virtual destructor.
 
template<typename CONT >
std::enable_if_t< YODA::Pushable< CONT, AnalysisObject * >::value > read (std::istream &stream, CONT &aos, const std::string &match="", const std::string &unmatch="")
 Read in a collection of objects objs from output stream stream.
 
std::vector< AnalysisObject * > read (std::istream &stream, const std::string &match="", const std::string &unmatch="")
 Read in a collection of objects from output stream stream.
 
template<typename CONT >
std::enable_if_t< YODA::Pushable< CONT, AnalysisObject * >::value > read (const std::string &filename, CONT &aos, const std::string &match="", const std::string &unmatch="")
 Read in a collection of objects objs from file filename.
 
void read (const std::string &filename, std::vector< AnalysisObject * > &aos, const std::string &match="", const std::string &unmatch="")
 Read in a collection of objects objs from file filename.
 
std::vector< AnalysisObject * > read (const std::string &filename, const std::string &match="", const std::string &unmatch="")
 Read in a collection of objects from output stream stream.
 
template<typename T >
void registerType ()
 AO type registration.
 
bool patternCheck (const std::string &path, const std::vector< std::regex > &patterns, const std::vector< std::regex > &unpatterns)
 Check if a string matches any of the given patterns, and that it doesn't match any unpatterns (for path filtering)
 

Static Public Member Functions

static Readercreate ()
 Singleton creation function.
 

Additional Inherited Members

- Public Types inherited from YODA::Reader
using TypeRegisterItr = typename std::unordered_map< std::string, std::unique_ptr< AOReaderBase > >::const_iterator
 Convenience alias for AO Reader.
 

Detailed Description

Persistency reader from YODA flat text data format.

Definition at line 15 of file ReaderFLAT.h.

Constructor & Destructor Documentation

◆ ReaderFLAT() [1/2]

YODA::ReaderFLAT::ReaderFLAT ( const ReaderFLAT )
delete

Disable copy and move constructors.

◆ ReaderFLAT() [2/2]

YODA::ReaderFLAT::ReaderFLAT ( ReaderFLAT &&  )
delete

Member Function Documentation

◆ create()

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

Singleton creation function.

Referenced by YODA::mkReader().

◆ operator=() [1/2]

void YODA::ReaderFLAT::operator= ( const ReaderFLAT )
delete

Disable copy and move assignments.

◆ operator=() [2/2]

void YODA::ReaderFLAT::operator= ( ReaderFLAT &&  )
delete

◆ read()

void YODA::ReaderFLAT::read ( std::istream &  stream,
std::vector< AnalysisObject * > &  aos,
const std::string &  match = "",
const std::string &  unmatch = "" 
)
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.


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