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

#include <CollectionBuffers.h>

Public Types

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

Public Member Functions

 CollectionReadBuffers (void *d, CollRefCollection *ref, VectorMembersInfo *vec, CreateFuncT &&createFunc, RecastFuncT &&recastFunc)
 
 CollectionReadBuffers ()=default
 
 CollectionReadBuffers (const CollectionReadBuffers &)=default
 
CollectionReadBuffersoperator= (const CollectionReadBuffers &)=default
 
 CollectionReadBuffers (CollectionWriteBuffers buffers)
 
template<typename DataT >
std::vector< DataT > * dataAsVector ()
 

Static Public Member Functions

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

Public Attributes

void * data {nullptr}
 
CollRefCollectionreferences {nullptr}
 
VectorMembersInfovectorMembers {nullptr}
 
CreateFuncT createCollection {}
 
RecastFuncT recast {}
 

Detailed Description

Definition at line 43 of file CollectionBuffers.h.

Member Typedef Documentation

◆ CreateFuncT

Definition at line 48 of file CollectionBuffers.h.

◆ RecastFuncT

Definition at line 49 of file CollectionBuffers.h.

Constructor & Destructor Documentation

◆ CollectionReadBuffers() [1/4]

podio::CollectionReadBuffers::CollectionReadBuffers ( void *  d,
CollRefCollection ref,
VectorMembersInfo vec,
CreateFuncT &&  createFunc,
RecastFuncT &&  recastFunc 
)
inline

Definition at line 51 of file CollectionBuffers.h.

52 :
53 data(d),
54 references(ref),
55 vectorMembers(vec),
56 createCollection(std::move(createFunc)),
57 recast(std::move(recastFunc)) {
58 }
CollRefCollection * references
VectorMembersInfo * vectorMembers

◆ CollectionReadBuffers() [2/4]

podio::CollectionReadBuffers::CollectionReadBuffers ( )
default

◆ CollectionReadBuffers() [3/4]

podio::CollectionReadBuffers::CollectionReadBuffers ( const CollectionReadBuffers )
default

◆ CollectionReadBuffers() [4/4]

podio::CollectionReadBuffers::CollectionReadBuffers ( CollectionWriteBuffers  buffers)
inline

Definition at line 64 of file CollectionBuffers.h.

64 :
65 data(buffers.data), references(buffers.references), vectorMembers(buffers.vectorMembers) {
66 }

Member Function Documentation

◆ asVector()

template<typename T >
static std::vector< T > * podio::CollectionReadBuffers::asVector ( void *  raw)
inlinestatic

Definition at line 74 of file CollectionBuffers.h.

74 {
75 // Are we at a beach? I can almost smell the C...
76 return static_cast<std::vector<T>*>(raw);
77 }

◆ dataAsVector()

template<typename DataT >
std::vector< DataT > * podio::CollectionReadBuffers::dataAsVector ( )
inline

◆ operator=()

CollectionReadBuffers & podio::CollectionReadBuffers::operator= ( const CollectionReadBuffers )
default

Member Data Documentation

◆ createCollection

CreateFuncT podio::CollectionReadBuffers::createCollection {}

◆ data

◆ recast

RecastFuncT podio::CollectionReadBuffers::recast {}

Definition at line 100 of file CollectionBuffers.h.

◆ references

CollRefCollection* podio::CollectionReadBuffers::references {nullptr}

◆ vectorMembers

VectorMembersInfo* podio::CollectionReadBuffers::vectorMembers {nullptr}

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