PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <CollectionBase.h>
Public Member Functions | |
CollectionBase (const CollectionBase &)=delete | |
No copy c'tor because collections are move-only. | |
CollectionBase & | operator= (const CollectionBase &)=delete |
No copy assignment because collections are move-only. | |
virtual void | prepareForWrite () const =0 |
prepare buffers for serialization | |
virtual void | prepareAfterRead ()=0 |
re-create collection from buffers after read | |
virtual bool | setReferences (const ICollectionProvider *collectionProvider)=0 |
initialize references after read | |
virtual void | setID (unsigned id)=0 |
set collection ID | |
virtual unsigned | getID () const =0 |
get collection ID | |
virtual podio::CollectionWriteBuffers | getBuffers ()=0 |
Get the collection buffers for this collection. | |
virtual podio::CollectionReadBuffers | createBuffers ()=0 |
Create (empty) collection buffers from which a collection can be constructed. | |
virtual bool | isValid () const =0 |
check for validity of the container after read | |
virtual size_t | size () const =0 |
number of elements in the collection | |
virtual std::string | getTypeName () const =0 |
fully qualified type name | |
virtual std::string | getValueTypeName () const =0 |
fully qualified type name of elements - with namespace | |
virtual std::string | getDataTypeName () const =0 |
fully qualified type name of stored POD elements - with namespace | |
virtual | ~CollectionBase ()=default |
destructor | |
virtual void | clear ()=0 |
clear the collection and all internal states | |
virtual bool | isSubsetCollection () const =0 |
check if this collection is a subset collection | |
virtual void | setSubsetCollection (bool setSubset=true)=0 |
declare this collection to be a subset collection | |
virtual void | print (std::ostream &os=std::cout, bool flush=true) const =0 |
print this collection to the passed stream | |
virtual size_t | getDatamodelRegistryIndex () const =0 |
Get the index in the DatatypeRegistry of the EDM this collection belongs to. | |
Protected Member Functions | |
CollectionBase ()=default | |
default constructor | |
CollectionBase (CollectionBase &&)=default | |
Move constructor. | |
CollectionBase & | operator= (CollectionBase &&)=default |
Move assignment. | |
Definition at line 16 of file CollectionBase.h.
|
protecteddefault |
default constructor
|
protecteddefault |
Move constructor.
|
delete |
No copy c'tor because collections are move-only.
|
virtualdefault |
destructor
|
pure virtual |
clear the collection and all internal states
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
Create (empty) collection buffers from which a collection can be constructed.
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
Get the collection buffers for this collection.
Implemented in podio::UserDataCollection< BasicType, typename >.
Referenced by podio::SIOBlock::setCollection().
|
pure virtual |
Get the index in the DatatypeRegistry of the EDM this collection belongs to.
Implemented in podio::UserDataCollection< BasicType, typename >.
Referenced by podio::DatamodelDefinitionCollector::registerDatamodelDefinition().
|
pure virtual |
fully qualified type name of stored POD elements - with namespace
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
get collection ID
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
fully qualified type name
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
fully qualified type name of elements - with namespace
Implemented in podio::UserDataCollection< BasicType, typename >.
Referenced by podio::SIOBlockFactory::createBlock(), podio::SIOWriter::registerForWrite(), and podio::SIOCollectionIDTableBlock::SIOCollectionIDTableBlock().
|
pure virtual |
check if this collection is a subset collection
Implemented in podio::UserDataCollection< BasicType, typename >.
Referenced by podio::SIOBlock::setCollection(), and podio::SIOCollectionIDTableBlock::SIOCollectionIDTableBlock().
|
pure virtual |
check for validity of the container after read
Implemented in podio::UserDataCollection< BasicType, typename >.
|
protecteddefault |
Move assignment.
|
delete |
No copy assignment because collections are move-only.
|
pure virtual |
re-create collection from buffers after read
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
prepare buffers for serialization
Implemented in podio::UserDataCollection< BasicType, typename >.
Referenced by podio::Frame::getCollectionForWrite().
|
pure virtual |
print this collection to the passed stream
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
set collection ID
Implemented in podio::UserDataCollection< BasicType, typename >.
Referenced by podio::EventStore::registerCollection().
|
pure virtual |
initialize references after read
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
declare this collection to be a subset collection
Implemented in podio::UserDataCollection< BasicType, typename >.
|
pure virtual |
number of elements in the collection
Implemented in podio::UserDataCollection< BasicType, typename >.