ATLAS Offline Software
Loading...
Searching...
No Matches
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.
elements
 STL member.

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}
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138

◆ 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: