ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TPCnvTokenList_p1 Class Reference

#include <TPCnvTokenList_p1.h>

Inheritance diagram for TPCnvTokenList_p1:
Collaboration diagram for TPCnvTokenList_p1:

Public Member Functions

void addToken (unsigned short cnvID, const std::string &token)
 Stores a new reference to an extending object. More...
 
const std::string & findToken (unsigned short id)
 Retrieves token of the extending object given the converter ID. More...
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

vector of TPCnvToken_p1 Each top-level persistent object that has extentions needs a data member of this type.

Definition at line 53 of file TPCnvTokenList_p1.h.

Member Function Documentation

◆ addToken()

void TPCnvTokenList_p1::addToken ( unsigned short  cnvID,
const std::string &  token 
)
inline

Stores a new reference to an extending object.

Parameters
[in]cnvIDID of the TP converter for the object
[in]tokentoken referencing the extending object

Definition at line 61 of file TPCnvTokenList_p1.h.

61  {
62  push_back( TPCnvToken_p1(cnvID, token) );
63  }

◆ findToken()

const std::string& TPCnvTokenList_p1::findToken ( unsigned short  id)
inline

Retrieves token of the extending object given the converter ID.

Parameters
[in]idthe ID of the extending converter
Returns
token to the extending persistent object

Definition at line 69 of file TPCnvTokenList_p1.h.

69  {
70  for( const_iterator it = begin(); it != end(); ++it ) {
71  if( it->converterID() == id )
72  return it->token();
73  }
74  std::ostringstream error;
75  error << "TPCnvTokenList_p1::findToken(): could not find a token for converter ID=" << id << std::ends;
76  throw std::runtime_error( error.str() );
77  }

Member Data Documentation

◆ elements

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

STL member.


The documentation for this class was generated from the following file:
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
skel.it
it
Definition: skel.GENtoEVGEN.py:423
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
TPCnvToken_p1
Definition: TPCnvTokenList_p1.h:24
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
get_generator_info.error
error
Definition: get_generator_info.py:40
error
Definition: IImpactPoint3dEstimator.h:70