ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::Object< Spec > Class Template Reference

#include <Object.h>

Inheritance diagram for GlobalSim::Object< Spec >:
Collaboration diagram for GlobalSim::Object< Spec >:

Public Member Functions

 Object (const SG::AuxElement &obj)
 Object ()
Spec::bitset_type bits () const
void operator= (const Spec::bitset_type &bits)
const SG::AuxElementobjectPtr () const
void dump () const

Static Public Attributes

static constexpr Spec spec {}

Detailed Description

template<typename Spec>
class GlobalSim::Object< Spec >

Definition at line 14 of file Object.h.

Constructor & Destructor Documentation

◆ Object() [1/2]

template<typename Spec>
GlobalSim::Object< Spec >::Object ( const SG::AuxElement & obj)
inlineexplicit

Definition at line 19 of file Object.h.

20
21 }

◆ Object() [2/2]

template<typename Spec>
GlobalSim::Object< Spec >::Object ( )
inlineexplicit

Definition at line 23 of file Object.h.

23 : Object([]() -> const SG::AuxElement & {
24 auto out = (new SG::AuxElement);
25 out->makePrivateStore();
26 return *out;
27 }()) {
28 // should remove this constructor in time ...
29 }

Member Function Documentation

◆ bits()

template<typename Spec>
Spec::bitset_type GlobalSim::Object< Spec >::bits ( ) const
inline

Definition at line 35 of file Object.h.

◆ dump()

template<typename Spec>
void GlobalSim::Object< Spec >::dump ( ) const
inline

Definition at line 51 of file Object.h.

51 {
53 }
const SG::AuxElement * objectPtr() const
Definition Object.h:47
void dump(const SG::AuxElement &obj)
Helper function for dumping xAOD objects on the screen in PyROOT.

◆ objectPtr()

template<typename Spec>
const SG::AuxElement * GlobalSim::Object< Spec >::objectPtr ( ) const
inline

Definition at line 47 of file Object.h.

47 {
48 return &this->Spec::ObjectAcc::m_obj;
49 }

◆ operator=()

template<typename Spec>
void GlobalSim::Object< Spec >::operator= ( const Spec::bitset_type & bits)
inline

Definition at line 39 of file Object.h.

39 {
40 std::apply([&](const auto *... field) {
41 (field->decodeAndAssignFrom(bits, const_cast<SG::AuxElement &>(Spec::ObjectAcc::m_obj)), ...);
42 },
44 }
Spec::bitset_type bits() const
Definition Object.h:35

Member Data Documentation

◆ spec

template<typename Spec>
Spec GlobalSim::Object< Spec >::spec {}
staticconstexpr

Definition at line 16 of file Object.h.

16{}; // allows access to the BitSpec with obj.spec. syntax

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