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

#include <Object.h>

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

Public Types

using BaseObject

Public Member Functions

 Object (const SG::AuxElement &obj)
 Object ()
NoBase::bitset_type bits () const
void operator= (const NoBase::bitset_type &bits)
const SG::AuxElement * objectPtr () const
void dump () const

Static Public Attributes

static constexpr NoBase spec

Protected Member Functions

const SG::AuxElement & auxRef () const

Private Attributes

std::shared_ptr< SG::AuxElement > m_owned
const SG::AuxElement & m_ref

Detailed Description

Definition at line 24 of file Object.h.

Member Typedef Documentation

◆ BaseObject

using GlobalSim::Object< NoBase >::BaseObject

Definition at line 41 of file Object.h.

Constructor & Destructor Documentation

◆ Object() [1/2]

GlobalSim::Object< NoBase >::Object ( const SG::AuxElement & obj)
inlineexplicit

Definition at line 26 of file Object.h.

26: m_ref(obj) {}
const SG::AuxElement & m_ref
Definition Object.h:35

◆ Object() [2/2]

GlobalSim::Object< NoBase >::Object ( )
inline

Definition at line 28 of file Object.h.

29 m_owned->makePrivateStore();
30 }
std::shared_ptr< SG::AuxElement > m_owned
Definition Object.h:34

Member Function Documentation

◆ auxRef()

const SG::AuxElement & GlobalSim::Object< NoBase >::auxRef ( ) const
inlineprotected

Definition at line 32 of file Object.h.

32{ return m_ref; }

◆ bits()

NoBase::bitset_type GlobalSim::Object< NoBase >::bits ( ) const
inline

Definition at line 57 of file Object.h.

◆ dump()

void GlobalSim::Object< NoBase >::dump ( ) const
inline

Definition at line 73 of file Object.h.

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

◆ objectPtr()

const SG::AuxElement * GlobalSim::Object< NoBase >::objectPtr ( ) const
inline

Definition at line 69 of file Object.h.

69 {
70 return &this->Spec::ObjectAcc::m_obj;
71 }

◆ operator=()

void GlobalSim::Object< NoBase >::operator= ( const NoBase::bitset_type & bits)
inline

Definition at line 61 of file Object.h.

61 {
62 std::apply([&](const auto *... field) {
63 (field->decodeAndAssignFrom(bits, const_cast<SG::AuxElement &>(Spec::ObjectAcc::m_obj)), ...);
64 },
66 }
NoBase::bitset_type bits() const
Definition Object.h:57

Member Data Documentation

◆ m_owned

std::shared_ptr<SG::AuxElement> GlobalSim::Object< NoBase >::m_owned
private

Definition at line 34 of file Object.h.

◆ m_ref

Definition at line 35 of file Object.h.

◆ spec

NoBase GlobalSim::Object< NoBase >::spec
staticconstexpr

Definition at line 43 of file Object.h.

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

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