![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Substitutes map <string, int> which ALICE does not allow to use. More...
#include <AliMUONStringIntMap.h>
Public Member Functions | |
AliMUONStringIntMap () | |
virtual | ~AliMUONStringIntMap () |
Bool_t | Add (const TString &first, Int_t second) |
Bool_t | Set (const TString &first, Int_t second) |
Int_t | Contains (const TString &first) const |
Int_t | Get (const TString &first) const |
Int_t | GetNofItems () const |
virtual void | Clear (Option_t *="") |
virtual void | Print (const char *="") const |
void | Print (const TString &key, ofstream &out) const |
Bool_t | Next (TString &first, Int_t &second) |
void | ResetItr () |
Protected Member Functions | |
AliMUONStringIntMap (const AliMUONStringIntMap &rhs) | |
Not implemented. More... | |
AliMUONStringIntMap & | operator= (const AliMUONStringIntMap &rhs) |
Not implemented. More... | |
Private Attributes | |
Int_t | fNofItems |
number of items More... | |
TObjArray | fFirstArray |
first item array More... | |
TArrayI | fSecondArray |
second item array More... | |
Int_t | fCurrentIndex |
current index More... | |
Substitutes map <string, int> which ALICE does not allow to use.
Definition at line 21 of file AliMUONStringIntMap.h.
AliMUONStringIntMap::AliMUONStringIntMap | ( | ) |
Standard constructor
Definition at line 40 of file AliMUONStringIntMap.cxx.
|
virtual |
Destructor
Definition at line 53 of file AliMUONStringIntMap.cxx.
|
protected |
Not implemented.
Bool_t AliMUONStringIntMap::Add | ( | const TString & | first, |
Int_t | second | ||
) |
Add map element if first not yet present
Definition at line 65 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONGeometry::FillData3(), AliMUONVGeometryBuilder::MapSV(), and Set().
|
virtual |
Delete the elements
Definition at line 140 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONLogger::Clear(), AliMUONLogger::Log(), and AliMUONVGeometryBuilder::RebuildSVMaps().
Int_t AliMUONStringIntMap::Contains | ( | const TString & | first | ) | const |
Whether this map contains the string 'first' or not
Definition at line 103 of file AliMUONStringIntMap.cxx.
Referenced by Set().
Int_t AliMUONStringIntMap::Get | ( | const TString & | first | ) | const |
Find the element with specified key (first)
Definition at line 119 of file AliMUONStringIntMap.cxx.
Referenced by Add(), AliMUONGeometryModule::FindBySensitiveVolume(), AliMUONLogger::Log(), and AliMUONVGeometryBuilder::MapSV().
Int_t AliMUONStringIntMap::GetNofItems | ( | ) | const |
Return the number of elements
Definition at line 132 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONLogger::Log(), AliMUONLogger::NumberOfEntries(), and AliMUONLogger::Print().
Bool_t AliMUONStringIntMap::Next | ( | TString & | first, |
Int_t & | second | ||
) |
Iterator: next method. Returns false if the iterator reached the end.
Definition at line 181 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONLogger::Next().
|
protected |
Not implemented.
|
virtual |
Print the map elements
Definition at line 150 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONLogger::Print(), and AliMUONGeometry::WriteData3().
void AliMUONStringIntMap::Print | ( | const TString & | key, |
ofstream & | out | ||
) | const |
Print the map elements preceded by a key word
Definition at line 166 of file AliMUONStringIntMap.cxx.
void AliMUONStringIntMap::ResetItr | ( | ) |
Reset iterator
Definition at line 200 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONLogger::ResetItr().
Bool_t AliMUONStringIntMap::Set | ( | const TString & | first, |
Int_t | second | ||
) |
Set map element
Definition at line 86 of file AliMUONStringIntMap.cxx.
Referenced by AliMUONLogger::Log().
|
private |
current index
Definition at line 53 of file AliMUONStringIntMap.h.
Referenced by Next(), and ResetItr().
|
private |
first item array
Definition at line 51 of file AliMUONStringIntMap.h.
Referenced by Add(), Clear(), Contains(), Get(), Next(), Print(), and ~AliMUONStringIntMap().
|
private |
number of items
Definition at line 50 of file AliMUONStringIntMap.h.
Referenced by Add(), Clear(), Contains(), Get(), GetNofItems(), Next(), and Print().
|
private |