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

Base class for sio::block handlers used with PODIO. More...

#include <SIOBlock.h>

+ Inheritance diagram for podio::SIOBlock:

Public Member Functions

 SIOBlock (const std::string &nam, sio::version_type vers)
 
 SIOBlock ()=delete
 
 SIOBlock (const SIOBlock &)=delete
 
SIOBlockoperator= (const SIOBlock &)=delete
 
podio::CollectionBasegetCollection ()
 
podio::CollectionReadBuffers getBuffers () const
 
std::string name ()
 
void setCollection (podio::CollectionBase *col)
 
virtual SIOBlockcreate (const std::string &name) const =0
 
virtual void createBuffers (const bool subsetCollection=false)=0
 

Protected Attributes

bool m_subsetColl {false}
 
podio::CollectionReadBuffers m_buffers {}
 

Detailed Description

Base class for sio::block handlers used with PODIO.

Definition at line 60 of file SIOBlock.h.

Constructor & Destructor Documentation

◆ SIOBlock() [1/3]

podio::SIOBlock::SIOBlock ( const std::string &  nam,
sio::version_type  vers 
)
inline

Definition at line 63 of file SIOBlock.h.

63 : sio::block(nam, vers) {
64 }

◆ SIOBlock() [2/3]

podio::SIOBlock::SIOBlock ( )
delete

◆ SIOBlock() [3/3]

podio::SIOBlock::SIOBlock ( const SIOBlock )
delete

Member Function Documentation

◆ create()

virtual SIOBlock * podio::SIOBlock::create ( const std::string &  name) const
pure virtual

◆ createBuffers()

virtual void podio::SIOBlock::createBuffers ( const bool  subsetCollection = false)
pure virtual

◆ getBuffers()

podio::CollectionReadBuffers podio::SIOBlock::getBuffers ( ) const
inline

Definition at line 73 of file SIOBlock.h.

73 {
74 return m_buffers;
75 }
podio::CollectionReadBuffers m_buffers
Definition: SIOBlock.h:93

◆ getCollection()

podio::CollectionBase * podio::SIOBlock::getCollection ( )
inline

Definition at line 69 of file SIOBlock.h.

69 {
71 }
bool m_subsetColl
Definition: SIOBlock.h:92

◆ name()

std::string podio::SIOBlock::name ( )
inline

Definition at line 77 of file SIOBlock.h.

77 {
78 return sio::block::name();
79 }

Referenced by podio::SIOBlockUserData< BasicType, typename >::create().

◆ operator=()

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

◆ setCollection()

void podio::SIOBlock::setCollection ( podio::CollectionBase col)
inline

Definition at line 81 of file SIOBlock.h.

81 {
83 m_buffers = col->getBuffers();
84 }
virtual bool isSubsetCollection() const =0
check if this collection is a subset collection
virtual podio::CollectionWriteBuffers getBuffers()=0
Get the collection buffers for this collection.

Member Data Documentation

◆ m_buffers

◆ m_subsetColl

bool podio::SIOBlock::m_subsetColl {false}
protected

Definition at line 92 of file SIOBlock.h.

Referenced by getCollection(), and setCollection().


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