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

#include <CollectionBuffers.h>

Public Member Functions

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}
 

Detailed Description

Simple helper struct that bundles all the potentially necessary buffers that are necessary to represent a collection for I/O purposes.

Definition at line 26 of file CollectionBuffers.h.

Member Function Documentation

◆ asVector()

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

Definition at line 37 of file CollectionBuffers.h.

37 {
38 // Are we at a beach? I can almost smell the C...
39 return *static_cast<std::vector<T>**>(raw);
40 }

◆ dataAsVector()

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

Definition at line 32 of file CollectionBuffers.h.

32 {
33 return asVector<DataT>(data);
34 }

Member Data Documentation

◆ data

void* podio::CollectionWriteBuffers::data {nullptr}

Definition at line 27 of file CollectionBuffers.h.

Referenced by dataAsVector().

◆ references

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

Definition at line 28 of file CollectionBuffers.h.

◆ vectorMembers

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

Definition at line 29 of file CollectionBuffers.h.


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