Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

card_pairs.h

Go to the documentation of this file.
00001 
00013 #ifndef _CARD_PAIRS_H_
00014 #define _CARD_PAIRS_H_
00015 
00016 #include <map>
00017 #include <vector>
00018 #include <string>
00019 
00020 #include <TObject.h>
00021 
00022 #include "card_pair.h"
00023 
00024 using std::map;
00025 using std::vector;
00026 using std::string;
00027 
00028 class card_pairs : public TObject
00029 {
00030 public:
00031 
00032   friend ostream & operator << (ostream & stream, const card_pairs & pairs);
00033 
00034   card_pairs();
00035   card_pairs(const card_pairs * pairs);
00036   ~card_pairs();
00037 
00038   void                   add_card_pair     (string name, card_pair * pair);
00039   void                   merge             (const card_pairs * pairs);
00040   void                   erase             (string name);
00041   const vector<string> * get_list_of_names (void)        const;
00042   card_pair *            get_card_pair     (string name) const;
00043   unsigned int           get_n_pairs       (void)        const;
00044   bool                   exists            (string name) const;
00045 
00046 private:
00047 
00048   map<string, card_pair *> _card_pairs_map;
00049 
00050   ClassDef(card_pairs, 1)
00051 };
00052 
00053 #endif

Generated on Mon Feb 15 11:06:30 2010 for loon by  doxygen 1.3.9.1