npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::NtupleReference< Ntuple > Class Template Reference

#include <NtupleReference.hh>

Inheritance diagram for npstat::NtupleReference< Ntuple >:

Public Member Functions

 NtupleReference (gs::AbsArchive &ar, const unsigned long long itemId)
 
 NtupleReference (gs::AbsArchive &ar, const char *name, const char *category)
 
 NtupleReference (gs::AbsArchive &ar, const gs::SearchSpecifier &namePattern, const gs::SearchSpecifier &categPattern)
 
CPP11_auto_ptr< Ntuple > get (const unsigned long index) const
 
CPP11_shared_ptr< Ntuple > getShared (const unsigned long index) const
 

Detailed Description

template<typename Ntuple>
class npstat::NtupleReference< Ntuple >

Reference for finding objects of class ArchivedNtuple in the binary archives. Interface is similar to the standard utility class Reference in Reference.hh, but there is no "restore" method. "restore" would not make sense here as we can not put the complete archive onto the heap.

Constructor & Destructor Documentation

◆ NtupleReference() [1/3]

template<typename Ntuple >
npstat::NtupleReference< Ntuple >::NtupleReference ( gs::AbsArchive &  ar,
const unsigned long long  itemId 
)
inline

Find item by its unique id in the archive

◆ NtupleReference() [2/3]

template<typename Ntuple >
npstat::NtupleReference< Ntuple >::NtupleReference ( gs::AbsArchive &  ar,
const char *  name,
const char *  category 
)
inline

Find (possibly more than one) item by its name and category

◆ NtupleReference() [3/3]

template<typename Ntuple >
npstat::NtupleReference< Ntuple >::NtupleReference ( gs::AbsArchive &  ar,
const gs::SearchSpecifier &  namePattern,
const gs::SearchSpecifier &  categPattern 
)
inline

Search for items of ArchivedNtuple type

Member Function Documentation

◆ get()

template<typename Ntuple >
CPP11_auto_ptr<Ntuple> npstat::NtupleReference< Ntuple >::get ( const unsigned long  index) const
inline

Retrieve ArchivedNtuple header record and build the ntuple

◆ getShared()

template<typename Ntuple >
CPP11_shared_ptr<Ntuple> npstat::NtupleReference< Ntuple >::getShared ( const unsigned long  index) const
inline

Retrieve ArchivedNtuple header record and build the ntuple


The documentation for this class was generated from the following files: