ATLAS Offline Software
Loading...
Searching...
No Matches
TPCnvTokenList_p1 Class Reference

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

#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.
const std::string & findToken (unsigned short id)
 Retrieves token of the extending object given the converter ID.

Public Attributes

elements
 STL member.

Detailed Description

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

Definition at line 54 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 62 of file TPCnvTokenList_p1.h.

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

◆ 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 70 of file TPCnvTokenList_p1.h.

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

Member Data Documentation

◆ elements

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

STL member.


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