ATLAS Offline Software
Loading...
Searching...
No Matches
CutBookkeepersLocalCache Struct Referencefinal

Helper in-memory structure. More...

#include <CutBookkeepersLocalCache.h>

Collaboration diagram for CutBookkeepersLocalCache:

Public Member Functions

bool empty () const
std::size_t size () const
xAOD::CutBookkeeperContainerat (std::size_t n) const
void clear ()

Static Public Member Functions

static void prepareContainers (CutBookkeepersLocalCache &target, size_t size, bool extend=false)

Public Attributes

std::vector< std::unique_ptr< xAOD::CutBookkeeperContainer > > cont
std::vector< std::unique_ptr< xAOD::CutBookkeeperAuxContainer > > aux

Detailed Description

Helper in-memory structure.

Author
Tadej Novak tadej.nosp@m.@cer.nosp@m.n.ch

Definition at line 14 of file CutBookkeepersLocalCache.h.

Member Function Documentation

◆ at()

xAOD::CutBookkeeperContainer * CutBookkeepersLocalCache::at ( std::size_t n) const
inline

Definition at line 21 of file CutBookkeepersLocalCache.h.

21{ return cont.at(n).get(); }
std::vector< std::unique_ptr< xAOD::CutBookkeeperContainer > > cont

◆ clear()

void CutBookkeepersLocalCache::clear ( )
inline

Definition at line 22 of file CutBookkeepersLocalCache.h.

22{ cont.clear(); aux.clear(); }
std::vector< std::unique_ptr< xAOD::CutBookkeeperAuxContainer > > aux

◆ empty()

bool CutBookkeepersLocalCache::empty ( ) const
inline

Definition at line 19 of file CutBookkeepersLocalCache.h.

19{ return cont.empty(); }

◆ prepareContainers()

void CutBookkeepersLocalCache::prepareContainers ( CutBookkeepersLocalCache & target,
size_t size,
bool extend = false )
inlinestatic

Definition at line 25 of file CutBookkeepersLocalCache.h.

28 {
29 if (!target.empty() && !extend) {
30 return;
31 }
32
33 size_t toAdd = size - target.size();
34 for (std::size_t i = 0; i < toAdd; ++i) {
35 auto container = std::make_unique<xAOD::CutBookkeeperContainer>();
36 auto auxContainer = std::make_unique<xAOD::CutBookkeeperAuxContainer>();
37 container->setStore(auxContainer.get());
38 target.cont.push_back(std::move(container));
39 target.aux.push_back(std::move(auxContainer));
40 }
41 }

◆ size()

std::size_t CutBookkeepersLocalCache::size ( ) const
inline

Definition at line 20 of file CutBookkeepersLocalCache.h.

20{ return cont.size(); }

Member Data Documentation

◆ aux

std::vector<std::unique_ptr<xAOD::CutBookkeeperAuxContainer> > CutBookkeepersLocalCache::aux

Definition at line 17 of file CutBookkeepersLocalCache.h.

◆ cont

std::vector<std::unique_ptr<xAOD::CutBookkeeperContainer> > CutBookkeepersLocalCache::cont

Definition at line 16 of file CutBookkeepersLocalCache.h.


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