ATLAS Offline Software
Macros
AuxAccessorMacro.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_API(__CL, __TYPE, __GETTER, __SETTER)
 

Macro Definition Documentation

◆ DEFINE_API

#define DEFINE_API (   __CL,
  __TYPE,
  __GETTER,
  __SETTER 
)
Value:
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(__CL, __TYPE, __GETTER, \
__SETTER) \
__TYPE* __CL::__GETTER##Ptr() { \
static const SG::AuxElement::Accessor<__TYPE> acc(#__GETTER); \
return &(acc(*this)); \
} \
const __TYPE* __CL::__GETTER##Ptr() const { \
static const SG::AuxElement::ConstAccessor<__TYPE> acc(#__GETTER); \
return &(acc(*this)); \
}

Definition at line 22 of file AuxAccessorMacro.h.

SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(xAOD::PixelCluster_v1, float, widthInEta, setWidthInEta) void xAOD
Definition: PixelCluster_v1.cxx:54