Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
SG::VarHandleKeyArrayCommon< Base > Class Template Referenceabstract

#include <VarHandleKeyArray.h>

Inheritance diagram for SG::VarHandleKeyArrayCommon< Base >:
Collaboration diagram for SG::VarHandleKeyArrayCommon< Base >:

Public Member Functions

 VarHandleKeyArrayCommon ()
 default base Constructor of mixin More...
 
 VarHandleKeyArrayCommon (const std::vector< Base > &v)
 base Constructor from a VarHandleKeyArray that takes a vector More...
 
 VarHandleKeyArrayCommon (std::initializer_list< Base > l)
 base Constructor from a VarHandleKeyArray that takes an initializer list of VarHandleKeys More...
 
 VarHandleKeyArrayCommon (std::initializer_list< std::string > l)
 base Constructor from a VarHandleKeyArray that takes an initializer list of std::strings. More...
 
StatusCode initialize (bool used=true)
 forward the initialization to the member VarHandleKeys More...
 
virtual StatusCode assign (const std::vector< std::string > &vs) override
 Set the contents of the VarHandleKeyArray from a vector of std::strings. More...
 
virtual void push_back (const std::string &key) override
 Add a new key to the VarHandleKeyArray. More...
 
virtual std::string toString () const override
 string representation of the VarHandleKeyArray More...
 
virtual std::vector< SG::VarHandleKey * > keys () const override
 create array of all base VarHandleKeys in the Array More...
 
virtual void renounce () override
 if called, handles will not be declared in the algorithm I/O More...
 
virtual bool renounced () const override
 query renounced state More...
 
virtual void declare (IDataHandleHolder *) override
 
virtual void setOwner (IDataHandleHolder *o) override
 
virtual const IDataHandleHolder * owner () const override
 
virtual IDataHandleHolder * owner () override
 
virtual Gaudi::DataHandle::Mode mode () const =0
 

Public Attributes

elements
 STL member. More...
 

Private Attributes

bool m_isRenounced { false }
 
IDataHandleHolder * m_owner { nullptr }
 

Detailed Description

template<class Base>
class SG::VarHandleKeyArrayCommon< Base >

Definition at line 62 of file StoreGate/StoreGate/VarHandleKeyArray.h.

Constructor & Destructor Documentation

◆ VarHandleKeyArrayCommon() [1/4]

template<class Base >
SG::VarHandleKeyArrayCommon< Base >::VarHandleKeyArrayCommon ( )
inline

default base Constructor of mixin

Definition at line 69 of file StoreGate/StoreGate/VarHandleKeyArray.h.

69 : std::vector<Base>() {};

◆ VarHandleKeyArrayCommon() [2/4]

template<class Base >
SG::VarHandleKeyArrayCommon< Base >::VarHandleKeyArrayCommon ( const std::vector< Base > &  v)
inline

base Constructor from a VarHandleKeyArray that takes a vector

Parameters
vvector of Read/Write/UpdateHandleKey

Definition at line 75 of file StoreGate/StoreGate/VarHandleKeyArray.h.

75  :
76  std::vector<Base>(v) {};

◆ VarHandleKeyArrayCommon() [3/4]

template<class Base >
SG::VarHandleKeyArrayCommon< Base >::VarHandleKeyArrayCommon ( std::initializer_list< Base l)
inline

base Constructor from a VarHandleKeyArray that takes an initializer list of VarHandleKeys

Parameters
linitializer list of Read/Write/UpdateHandleKey

Definition at line 83 of file StoreGate/StoreGate/VarHandleKeyArray.h.

83  :
84  std::vector<Base>{l} {};

◆ VarHandleKeyArrayCommon() [4/4]

template<class Base >
SG::VarHandleKeyArrayCommon< Base >::VarHandleKeyArrayCommon ( std::initializer_list< std::string >  l)
inline

base Constructor from a VarHandleKeyArray that takes an initializer list of std::strings.

Parameters
linitializer list of std::strings used to create the VarHandleKeys

Definition at line 92 of file StoreGate/StoreGate/VarHandleKeyArray.h.

92  {
93  for (auto &e : l) {
94  std::vector<Base>::push_back( Base{e} );
95  }
96  }

Member Function Documentation

◆ assign()

template<class Base >
virtual StatusCode SG::VarHandleKeyArrayCommon< Base >::assign ( const std::vector< std::string > &  vs)
overridevirtual

Set the contents of the VarHandleKeyArray from a vector of std::strings.

Parameters
vsvector of initializer strings

Implements SG::VarHandleKeyArray.

◆ declare()

template<class Base >
virtual void SG::VarHandleKeyArrayCommon< Base >::declare ( IDataHandleHolder *  )
overridevirtual

Implements SG::VarHandleKeyArray.

◆ initialize()

template<class Base >
StatusCode SG::VarHandleKeyArrayCommon< Base >::initialize ( bool  used = true)

forward the initialization to the member VarHandleKeys

Parameters
usedIf false, then this handle is not to be used. Instead of normal initialization, the key will be cleared.

◆ keys()

template<class Base >
virtual std::vector<SG::VarHandleKey*> SG::VarHandleKeyArrayCommon< Base >::keys ( ) const
overridevirtual

create array of all base VarHandleKeys in the Array

Implements SG::VarHandleKeyArray.

◆ mode()

virtual Gaudi::DataHandle::Mode SG::VarHandleKeyArray::mode ( ) const
pure virtualinherited

◆ owner() [1/2]

template<class Base >
virtual const IDataHandleHolder* SG::VarHandleKeyArrayCommon< Base >::owner ( ) const
inlineoverridevirtual

Implements SG::VarHandleKeyArray.

Definition at line 144 of file StoreGate/StoreGate/VarHandleKeyArray.h.

144 { return m_owner; }

◆ owner() [2/2]

template<class Base >
virtual IDataHandleHolder* SG::VarHandleKeyArrayCommon< Base >::owner ( )
inlineoverridevirtual

Implements SG::VarHandleKeyArray.

Definition at line 145 of file StoreGate/StoreGate/VarHandleKeyArray.h.

145 { return m_owner; }

◆ push_back()

template<class Base >
virtual void SG::VarHandleKeyArrayCommon< Base >::push_back ( const std::string &  key)
inlineoverridevirtual

Add a new key to the VarHandleKeyArray.

Parameters
keyname of the key

Implements SG::VarHandleKeyArray.

Definition at line 116 of file StoreGate/StoreGate/VarHandleKeyArray.h.

116  {
117  std::vector<Base>::push_back( Base(key) );
118  }

◆ renounce()

template<class Base >
virtual void SG::VarHandleKeyArrayCommon< Base >::renounce ( )
inlineoverridevirtual

if called, handles will not be declared in the algorithm I/O

Implements SG::VarHandleKeyArray.

Definition at line 134 of file StoreGate/StoreGate/VarHandleKeyArray.h.

134 { m_isRenounced = true; }

◆ renounced()

template<class Base >
virtual bool SG::VarHandleKeyArrayCommon< Base >::renounced ( ) const
inlineoverridevirtual

query renounced state

Implements SG::VarHandleKeyArray.

Definition at line 139 of file StoreGate/StoreGate/VarHandleKeyArray.h.

139 { return m_isRenounced; }

◆ setOwner()

template<class Base >
virtual void SG::VarHandleKeyArrayCommon< Base >::setOwner ( IDataHandleHolder *  o)
inlineoverridevirtual

Implements SG::VarHandleKeyArray.

Definition at line 143 of file StoreGate/StoreGate/VarHandleKeyArray.h.

143 { m_owner = o; }

◆ toString()

template<class Base >
virtual std::string SG::VarHandleKeyArrayCommon< Base >::toString ( ) const
overridevirtual

string representation of the VarHandleKeyArray

Implements SG::VarHandleKeyArray.

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_isRenounced

template<class Base >
bool SG::VarHandleKeyArrayCommon< Base >::m_isRenounced { false }
private

Definition at line 149 of file StoreGate/StoreGate/VarHandleKeyArray.h.

◆ m_owner

template<class Base >
IDataHandleHolder* SG::VarHandleKeyArrayCommon< Base >::m_owner { nullptr }
private

Definition at line 150 of file StoreGate/StoreGate/VarHandleKeyArray.h.


The documentation for this class was generated from the following file:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
Base
SG::VarHandleKeyArrayCommon::m_isRenounced
bool m_isRenounced
Definition: StoreGate/StoreGate/VarHandleKeyArray.h:149
SG::VarHandleKeyArrayCommon::m_owner
IDataHandleHolder * m_owner
Definition: StoreGate/StoreGate/VarHandleKeyArray.h:150
python.PyAthena.v
v
Definition: PyAthena.py:154
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37