PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <UserDataCollection.h>
Public Member Functions | |
UserDataCollection ()=default | |
UserDataCollection (std::vector< BasicType > &&vec) | |
Constructor from an existing vector (wich will be moved from!) | |
UserDataCollection (const UserDataCollection &)=delete | |
UserDataCollection & | operator= (const UserDataCollection &)=delete |
UserDataCollection (UserDataCollection &&)=default | |
UserDataCollection & | operator= (UserDataCollection &&)=default |
~UserDataCollection ()=default | |
void | prepareForWrite () const override |
prepare buffers for serialization | |
void | prepareAfterRead () override |
re-create collection from buffers after read | |
bool | setReferences (const ICollectionProvider *) override |
initialize references after read | |
void | setID (unsigned id) override |
set collection ID | |
unsigned | getID () const override |
get collection ID | |
podio::CollectionWriteBuffers | getBuffers () override |
Get the collection buffers for this collection. | |
podio::CollectionReadBuffers | createBuffers () final |
Create (empty) collection buffers from which a collection can be constructed. | |
bool | isValid () const override |
check for validity of the container after read | |
size_t | size () const override |
number of elements in the collection | |
std::string | getTypeName () const override |
fully qualified type name | |
std::string | getValueTypeName () const override |
fully qualified type name of elements - with namespace | |
std::string | getDataTypeName () const override |
fully qualified type name of stored POD elements - with namespace | |
void | clear () override |
clear the collection and all internal states | |
bool | isSubsetCollection () const override |
check if this collection is a subset collection - no subset possible | |
void | setSubsetCollection (bool) override |
declare this collection to be a subset collectionv - no effect | |
void | print (std::ostream &os=std::cout, bool flush=true) const override |
Print this collection to the passed stream. | |
size_t | getDatamodelRegistryIndex () const override |
Get the index in the DatatypeRegistry of the EDM this collection belongs to. | |
std::vector< BasicType >::iterator | begin () |
std::vector< BasicType >::iterator | end () |
std::vector< BasicType >::const_iterator | begin () const |
std::vector< BasicType >::const_iterator | end () const |
std::vector< BasicType >::reference | operator[] (size_t idx) |
std::vector< BasicType >::const_reference | operator[] (size_t idx) const |
void | resize (size_t count) |
void | push_back (const BasicType &value) |
std::vector< BasicType > & | vec () |
access to the actual data vector | |
const std::vector< BasicType > & | vec () const |
const access to the actual data vector | |
Public Member Functions inherited from podio::CollectionBase | |
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. | |
Additional Inherited Members | |
Protected Member Functions inherited from podio::CollectionBase | |
CollectionBase ()=default | |
default constructor | |
CollectionBase (CollectionBase &&)=default | |
Move constructor. | |
CollectionBase & | operator= (CollectionBase &&)=default |
Move assignment. | |
Collection of basic types for additional user data not defined in the EDM. The data is stored in an std::vector<basic_type>. Supported are all basic types supported in PODIO, i.e. float, double and 8-64 bit fixed size signed and unsigned integers -
Definition at line 59 of file UserDataCollection.h.
|
default |
|
inline |
Constructor from an existing vector (wich will be moved from!)
Definition at line 74 of file UserDataCollection.h.
|
delete |
|
default |
|
default |
|
inline |
Definition at line 182 of file UserDataCollection.h.
|
inline |
Definition at line 188 of file UserDataCollection.h.
|
inlineoverridevirtual |
clear the collection and all internal states
Implements podio::CollectionBase.
Definition at line 147 of file UserDataCollection.h.
|
inlinefinalvirtual |
Create (empty) collection buffers from which a collection can be constructed.
Implements podio::CollectionBase.
Definition at line 111 of file UserDataCollection.h.
|
inline |
Definition at line 185 of file UserDataCollection.h.
|
inline |
Definition at line 191 of file UserDataCollection.h.
|
inlineoverridevirtual |
Get the collection buffers for this collection.
Implements podio::CollectionBase.
Definition at line 106 of file UserDataCollection.h.
|
inlineoverridevirtual |
Get the index in the DatatypeRegistry of the EDM this collection belongs to.
Implements podio::CollectionBase.
Definition at line 176 of file UserDataCollection.h.
|
inlineoverridevirtual |
fully qualified type name of stored POD elements - with namespace
Implements podio::CollectionBase.
Definition at line 142 of file UserDataCollection.h.
|
inlineoverridevirtual |
get collection ID
Implements podio::CollectionBase.
Definition at line 101 of file UserDataCollection.h.
|
inlineoverridevirtual |
fully qualified type name
Implements podio::CollectionBase.
Definition at line 132 of file UserDataCollection.h.
|
inlineoverridevirtual |
fully qualified type name of elements - with namespace
Implements podio::CollectionBase.
Definition at line 137 of file UserDataCollection.h.
|
inlineoverridevirtual |
check if this collection is a subset collection - no subset possible
Implements podio::CollectionBase.
Definition at line 152 of file UserDataCollection.h.
|
inlineoverridevirtual |
check for validity of the container after read
Implements podio::CollectionBase.
Definition at line 122 of file UserDataCollection.h.
|
delete |
|
default |
|
inline |
Definition at line 195 of file UserDataCollection.h.
|
inline |
Definition at line 198 of file UserDataCollection.h.
|
inlineoverridevirtual |
re-create collection from buffers after read
Implements podio::CollectionBase.
Definition at line 87 of file UserDataCollection.h.
|
inlineoverridevirtual |
prepare buffers for serialization
Implements podio::CollectionBase.
Definition at line 83 of file UserDataCollection.h.
|
inlineoverridevirtual |
Print this collection to the passed stream.
Implements podio::CollectionBase.
Definition at line 161 of file UserDataCollection.h.
Referenced by podio::operator<<().
|
inline |
Definition at line 205 of file UserDataCollection.h.
Referenced by TEST_CASE().
|
inline |
Definition at line 202 of file UserDataCollection.h.
Referenced by createUserDataCollections(), and write().
|
inlineoverridevirtual |
set collection ID
Implements podio::CollectionBase.
Definition at line 96 of file UserDataCollection.h.
|
inlineoverridevirtual |
initialize references after read
Implements podio::CollectionBase.
Definition at line 91 of file UserDataCollection.h.
|
inlineoverridevirtual |
declare this collection to be a subset collectionv - no effect
Implements podio::CollectionBase.
Definition at line 157 of file UserDataCollection.h.
|
inlineoverridevirtual |
number of elements in the collection
Implements podio::CollectionBase.
Definition at line 127 of file UserDataCollection.h.
Referenced by checkCollections().
|
inline |
access to the actual data vector
Definition at line 210 of file UserDataCollection.h.
|
inline |
const access to the actual data vector
Definition at line 215 of file UserDataCollection.h.