AliRoot Core  edcc906 (edcc906)
AliMpEncodePair.h
Go to the documentation of this file.
1 #ifndef ALIMPENCODEPAIR_H
2 #define ALIMPENCODEPAIR_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
9 // The functions for encodind the pair of integers to another integer,
10 // defined withing a namespace AliMp
11 // Author Laurent Aphecetche
12 
13 #include <Rtypes.h>
14 #include <iosfwd>
15 
16 using std::ostream;
17 
18 typedef Int_t MpPair_t;
19 
20 namespace AliMp
21 {
23  MpPair_t Pair(Int_t first, Int_t second);
24 
26  Int_t PairFirst(MpPair_t pair);
27 
29  Int_t PairSecond(MpPair_t pair);
30 
32  ostream& PairPut(ostream& s, MpPair_t pair);
33 }
34 
35 #endif //ALIMPENCODEPAIR_H
MpPair_t Pair(Int_t first, Int_t second)
Encode the pair of integers to another integer.
Int_t MpPair_t
Int_t PairFirst(MpPair_t pair)
Decode the first integer from encoded pair.
Int_t PairSecond(MpPair_t pair)
Decode the second integer from encoded pair.
ostream & PairPut(ostream &s, MpPair_t pair)
A special printing for encoded pair.
The namespace for mapping enums and related functions.