1 #ifndef ALIMPENCODEPAIR_H
2 #define ALIMPENCODEPAIR_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 // The functions for encodind the pair of integers to another integer,
10 // defined withing a namespace AliMp
11 // Author Laurent Aphecetche
18 typedef Int_t MpPair_t;
22 /// Encode the pair of integers to another integer.
23 MpPair_t Pair(Int_t first, Int_t second);
25 /// Decode the first integer from encoded pair
26 Int_t PairFirst(MpPair_t pair);
28 /// Decode the second integer from encoded pair
29 Int_t PairSecond(MpPair_t pair);
31 /// A special printing for encoded pair.
32 ostream& PairPut(ostream& s, MpPair_t pair);
35 #endif //ALIMPENCODEPAIR_H