AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONStringIntMap Class Reference

Substitutes map <string, int> which ALICE does not allow to use. More...

#include <AliMUONStringIntMap.h>

Inheritance diagram for AliMUONStringIntMap:

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...
 
AliMUONStringIntMapoperator= (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...
 

Detailed Description

Substitutes map <string, int> which ALICE does not allow to use.

Author
Ivana Hrivnacova, IPN Orsay

Definition at line 21 of file AliMUONStringIntMap.h.

Constructor & Destructor Documentation

AliMUONStringIntMap::AliMUONStringIntMap ( )

Standard constructor

Definition at line 40 of file AliMUONStringIntMap.cxx.

AliMUONStringIntMap::~AliMUONStringIntMap ( )
virtual

Destructor

Definition at line 53 of file AliMUONStringIntMap.cxx.

AliMUONStringIntMap::AliMUONStringIntMap ( const AliMUONStringIntMap rhs)
protected

Not implemented.

Member Function Documentation

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().

void AliMUONStringIntMap::Clear ( Option_t *  = "")
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().

AliMUONStringIntMap& AliMUONStringIntMap::operator= ( const AliMUONStringIntMap rhs)
protected

Not implemented.

void AliMUONStringIntMap::Print ( const char *  = "") const
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().

Member Data Documentation

Int_t AliMUONStringIntMap::fCurrentIndex
private

current index

Definition at line 53 of file AliMUONStringIntMap.h.

Referenced by Next(), and ResetItr().

TObjArray AliMUONStringIntMap::fFirstArray
private

first item array

Definition at line 51 of file AliMUONStringIntMap.h.

Referenced by Add(), Clear(), Contains(), Get(), Next(), Print(), and ~AliMUONStringIntMap().

Int_t AliMUONStringIntMap::fNofItems
private

number of items

Definition at line 50 of file AliMUONStringIntMap.h.

Referenced by Add(), Clear(), Contains(), Get(), GetNofItems(), Next(), and Print().

TArrayI AliMUONStringIntMap::fSecondArray
private

second item array

Definition at line 52 of file AliMUONStringIntMap.h.

Referenced by Add(), Clear(), Get(), Next(), Print(), and Set().


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