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

#include <AliasStore.h>

Inheritance diagram for AliasStore:
Collaboration diagram for AliasStore:

Public Member Functions

 AliasStore ()
 
void AddAlias (const std::string &, const std::string &)
 
bool IsAliased (const std::string &)
 
std::string Alias (const std::string &)
 

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

Detailed Description

Definition at line 11 of file AliasStore.h.

Constructor & Destructor Documentation

◆ AliasStore()

AliasStore::AliasStore ( )
inline

Definition at line 13 of file AliasStore.h.

13 {}

Member Function Documentation

◆ AddAlias()

void AliasStore::AddAlias ( const std::string &  tag,
const std::string &  alias 
)

Definition at line 8 of file AliasStore.cxx.

9 {
10  if (this->find(tag)!=this->end())
11  {
12  std::cout<<"trying to set existing alias: old value kept"<<std::endl;
13  }
14  else
15  (*this)[tag]=alias;
16 }

◆ Alias()

std::string AliasStore::Alias ( const std::string &  tag)

Definition at line 18 of file AliasStore.cxx.

19 {
20  if (this->find(tag)!=this->end())
21  return (*this)[tag];
22  else
23  return tag;
24 }

◆ IsAliased()

bool AliasStore::IsAliased ( const std::string &  tag)

Definition at line 26 of file AliasStore.cxx.

27 {
28  if (this->find(tag)!=this->end())
29  return true;
30  return false;
31 }

Member Data Documentation

◆ elements

T std::map< K, T >::elements
inherited

STL member.

◆ keys

K std::map< K, T >::keys
inherited

STL member.


The documentation for this class was generated from the following files:
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
COOLRates.alias
alias
Definition: COOLRates.py:1172
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24