PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
podio::ROOTFrameData Class Reference

#include <ROOTFrameData.h>

Public Types

using BufferMap = std::unordered_map< std::string, podio::CollectionReadBuffers >
 

Public Member Functions

 ROOTFrameData ()=delete
 
 ~ROOTFrameData ()=default
 
 ROOTFrameData (ROOTFrameData &&)=default
 
ROOTFrameDataoperator= (ROOTFrameData &&)=default
 
 ROOTFrameData (const ROOTFrameData &)=delete
 
ROOTFrameDataoperator= (const ROOTFrameData &)=delete
 
 ROOTFrameData (BufferMap &&buffers, CollIDPtr &&idTable, podio::GenericParameters &&params)
 
std::optional< podio::CollectionReadBuffersgetCollectionBuffers (const std::string &name)
 
podio::CollectionIDTable getIDTable () const
 
std::unique_ptr< podio::GenericParametersgetParameters ()
 
std::vector< std::string > getAvailableCollections () const
 

Detailed Description

Definition at line 15 of file ROOTFrameData.h.

Member Typedef Documentation

◆ BufferMap

using podio::ROOTFrameData::BufferMap = std::unordered_map<std::string, podio::CollectionReadBuffers>

Definition at line 19 of file ROOTFrameData.h.

Constructor & Destructor Documentation

◆ ROOTFrameData() [1/4]

podio::ROOTFrameData::ROOTFrameData ( )
delete

◆ ~ROOTFrameData()

podio::ROOTFrameData::~ROOTFrameData ( )
default

◆ ROOTFrameData() [2/4]

podio::ROOTFrameData::ROOTFrameData ( ROOTFrameData &&  )
default

◆ ROOTFrameData() [3/4]

podio::ROOTFrameData::ROOTFrameData ( const ROOTFrameData )
delete

◆ ROOTFrameData() [4/4]

podio::ROOTFrameData::ROOTFrameData ( BufferMap &&  buffers,
CollIDPtr &&  idTable,
podio::GenericParameters &&  params 
)
inline

Definition at line 28 of file ROOTFrameData.h.

28 :
29 m_buffers(std::move(buffers)), m_idTable(idTable), m_parameters(std::move(params)) {
30 }

Member Function Documentation

◆ getAvailableCollections()

std::vector< std::string > podio::ROOTFrameData::getAvailableCollections ( ) const
inline

Definition at line 50 of file ROOTFrameData.h.

50 {
51 std::vector<std::string> collections;
52 collections.reserve(m_buffers.size());
53 for (const auto& [name, _] : m_buffers) {
54 collections.push_back(name);
55 }
56
57 return collections;
58 }

◆ getCollectionBuffers()

std::optional< podio::CollectionReadBuffers > podio::ROOTFrameData::getCollectionBuffers ( const std::string &  name)
inline

Definition at line 32 of file ROOTFrameData.h.

32 {
33 const auto bufferHandle = m_buffers.extract(name);
34 if (bufferHandle.empty()) {
35 return std::nullopt;
36 }
37
38 return {bufferHandle.mapped()};
39 }

◆ getIDTable()

podio::CollectionIDTable podio::ROOTFrameData::getIDTable ( ) const
inline

Definition at line 41 of file ROOTFrameData.h.

41 {
42 // Construct a copy of the internal table
43 return {m_idTable->ids(), m_idTable->names()};
44 }

◆ getParameters()

std::unique_ptr< podio::GenericParameters > podio::ROOTFrameData::getParameters ( )
inline

Definition at line 46 of file ROOTFrameData.h.

46 {
47 return std::make_unique<podio::GenericParameters>(std::move(m_parameters));
48 }

◆ operator=() [1/2]

ROOTFrameData & podio::ROOTFrameData::operator= ( const ROOTFrameData )
delete

◆ operator=() [2/2]

ROOTFrameData & podio::ROOTFrameData::operator= ( ROOTFrameData &&  )
default

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