Struct podio::CollectionReadBuffers

struct CollectionReadBuffers

Public Types

using CreateFuncT = std::function<std::unique_ptr<podio::CollectionBase>(podio::CollectionReadBuffers, bool)>
using RecastFuncT = std::function<void(CollectionReadBuffers&)>
using DeleteFuncT = std::function<void(CollectionReadBuffers&)>

Public Functions

inline CollectionReadBuffers(void *d, CollRefCollection *ref, VectorMembersInfo *vec, SchemaVersionT version, std::string_view typ, CreateFuncT &&createFunc, RecastFuncT &&recastFunc, DeleteFuncT &&deleteFunc)
CollectionReadBuffers() = default
CollectionReadBuffers(const CollectionReadBuffers&) = default
CollectionReadBuffers &operator=(const CollectionReadBuffers&) = default
inline CollectionReadBuffers(CollectionWriteBuffers buffers)
template<typename DataT>
inline std::vector<DataT> *dataAsVector()

Public Members

void *data = {nullptr}
CollRefCollection *references = {nullptr}
VectorMembersInfo *vectorMembers = {nullptr}
SchemaVersionT schemaVersion = {0}
std::string_view type = {}
CreateFuncT createCollection = {}
RecastFuncT recast = {}
DeleteFuncT deleteBuffers = {}

Public Static Functions

template<typename T>
static inline std::vector<T> *asVector(void *raw)