include/wipal/tool/microseconds_stamp.hxx

00001 /*
00002  * WiPal - A library and a set of tools to manipulate wireless traces.
00003  * Copyright (C) 2007  Universite Pierre et Marie Curie - Paris 6
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00018  * MA  02110-1301  USA
00019  *
00020  * Author: Thomas Claveirole <thomas.claveirole@lip6.fr>
00021  */
00022 #ifndef TOOL_MICROSECONDS_STAMP_HXX_
00023 # define TOOL_MICROSECONDS_STAMP_HXX_
00024 
00025 # include "microseconds_stamp.hh"
00026 
00027 namespace tool
00028 {
00029 
00030   template <class T>
00031   microseconds_stamp<T>::
00032   microseconds_stamp(const tool::microseconds&  microseconds,
00033                      const T&                   super):
00034     T (super),
00035     microseconds_ (microseconds)
00036   {
00037   }
00038 
00039   template <class T>
00040   const tool::microseconds&
00041   microseconds_stamp<T>::microseconds() const
00042   {
00043     return microseconds_;
00044   }
00045 
00046   template <class T>
00047   tool::microseconds&
00048   microseconds_stamp<T>::microseconds()
00049   {
00050     return microseconds_;
00051   }
00052 
00053   template <class T>
00054   bool
00055   microseconds_stamp<T>::operator == (const microseconds_stamp& rhs) const
00056   {
00057     return T::operator == (rhs);
00058   }
00059 
00060   template <class T>
00061   bool
00062   microseconds_stamp<T>::operator != (const microseconds_stamp& rhs) const
00063   {
00064     return T::operator != (rhs);
00065   }
00066 
00067 } // End of namespace tool.
00068 
00069 HASH_NAMESPACE_BEGIN
00070 
00071   template <class T>
00072   size_t
00073   hash< tool::microseconds_stamp<T> >::
00074   operator () (const tool::microseconds_stamp<T>& s) const
00075   {
00076     return hash<T>::operator () (s);
00077   }
00078 
00079 HASH_NAMESPACE_END
00080 
00081 #endif // TOOL_MICROSECONDS_STAMP_HXX_

Generated on Tue Jan 15 19:32:31 2008 for wipal by  doxygen 1.5.4