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

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

#include <ReaderYODA.h>

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

Public Member Functions

 ReaderYODA (const ReaderYODA &)=delete
 Disable copy and move constructors.
 
 ReaderYODA (ReaderYODA &&)=delete
 
void operator= (const ReaderYODA &)=delete
 Disable copy and move assignments.
 
void operator= (ReaderYODA &&)=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 text data format.

Definition at line 15 of file ReaderYODA.h.

Constructor & Destructor Documentation

◆ ReaderYODA() [1/2]

YODA::ReaderYODA::ReaderYODA ( const ReaderYODA )
delete

Disable copy and move constructors.

◆ ReaderYODA() [2/2]

YODA::ReaderYODA::ReaderYODA ( ReaderYODA &&  )
delete

Member Function Documentation

◆ create()

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

Singleton creation function.

Referenced by YODA::mkReader().

◆ operator=() [1/2]

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

Disable copy and move assignments.

◆ operator=() [2/2]

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

◆ read()

void YODA::ReaderYODA::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: