Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBpair.hxx

Go to the documentation of this file.
00001 #ifndef _CTBpair_HXX
00002 #define _CTBpair_HXX 1
00003 
00008 /*----------------------------------------------------------------------------*/
00009 /* C Tool Box: Designed and implemented by:                                   */
00010 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00011 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00012 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00013 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00014 /*------------------------------------------+---------------------------------*/
00015 
00016 template <class K, class V>
00017 class CTBpair {
00018   public:
00019                     CTBpair();
00020                     CTBpair(const K& key);
00021                     CTBpair(const K& key, const V& value);
00022 
00023     K&              Key();
00024     const K&        Key() const;
00025     V&              Value();
00026     const V&        Value() const;
00027 
00028   private:
00029 
00030     K               m_key;                  
00031     V               m_value;                
00032 };
00033 
00034 //
00035 // the implementation is fully inlined and always included here
00036 //
00037 #include "CTBpair.icc"
00038 
00039 #endif

Generated at Fri Oct 24 18:11:29 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001