ATLAS Offline Software
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 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 61 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 68 of file StoreGate/StoreGate/VarHandleKeyArray.h.

68 : 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 74 of file StoreGate/StoreGate/VarHandleKeyArray.h.

74  :
75  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 82 of file StoreGate/StoreGate/VarHandleKeyArray.h.

82  :
83  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 91 of file StoreGate/StoreGate/VarHandleKeyArray.h.

91  {
92  for (auto &e : l) {
93  this->push_back( Base{e} );
94  }
95  }

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 135 of file StoreGate/StoreGate/VarHandleKeyArray.h.

135 { return m_owner; }

◆ owner() [2/2]

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

Implements SG::VarHandleKeyArray.

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

136 { return m_owner; }

◆ 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 125 of file StoreGate/StoreGate/VarHandleKeyArray.h.

125 { m_isRenounced = true; }

◆ renounced()

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

query renounced state

Implements SG::VarHandleKeyArray.

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

130 { return m_isRenounced; }

◆ setOwner()

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

Implements SG::VarHandleKeyArray.

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

134 { 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 140 of file StoreGate/StoreGate/VarHandleKeyArray.h.

◆ m_owner

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

Definition at line 141 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:140
SG::VarHandleKeyArrayCommon::m_owner
IDataHandleHolder * m_owner
Definition: StoreGate/StoreGate/VarHandleKeyArray.h:141
python.PyAthena.v
v
Definition: PyAthena.py:154