constructor_destructor_fn_imps.hpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // Copyright (C) 2005 Free Software Foundation, Inc.
00004 //
00005 // This file is part of the GNU ISO C++ Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the GNU General Public License as published by the
00008 // Free Software Foundation; either version 2, or (at your option)
00009 // any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 
00016 // You should have received a copy of the GNU General Public License along
00017 // with this library; see the file COPYING.  If not, write to the Free
00018 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00019 // USA.
00020 
00021 // As a special exception, you may use this file as part of a free software
00022 // library without restriction.  Specifically, if other files instantiate
00023 // templates or use macros or inline functions from this file, or you compile
00024 // this file and link it with other files to produce an executable, this
00025 // file does not by itself cause the resulting executable to be covered by
00026 // the GNU General Public License.  This exception does not however
00027 // invalidate any other reasons why the executable file might be covered by
00028 // the GNU General Public License.
00029 
00030 // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
00031 
00032 // Permission to use, copy, modify, sell, and distribute this software
00033 // is hereby granted without fee, provided that the above copyright
00034 // notice appears in all copies, and that both that copyright notice and
00035 // this permission notice appear in supporting documentation. None of
00036 // the above authors, nor IBM Haifa Research Laboratories, make any
00037 // representation about the suitability of this software for any
00038 // purpose. It is provided "as is" without express or implied warranty.
00039 
00046 PB_ASSOC_CLASS_T_DEC
00047 PB_ASSOC_CLASS_C_DEC::
00048 cc_hash_assoc_cntnr()
00049 { }
00050 
00051 PB_ASSOC_CLASS_T_DEC
00052 PB_ASSOC_CLASS_C_DEC::
00053 cc_hash_assoc_cntnr(const Hash_Fn& r_hash_fn) :
00054   my_base(r_hash_fn)
00055 { }
00056 
00057 PB_ASSOC_CLASS_T_DEC
00058 PB_ASSOC_CLASS_C_DEC::
00059 cc_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn) :
00060   my_base(r_hash_fn, r_eq_fn)
00061 { }
00062 
00063 PB_ASSOC_CLASS_T_DEC
00064 PB_ASSOC_CLASS_C_DEC::
00065 cc_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Hash_Fn& r_comb_hash_fn) :
00066   my_base(r_hash_fn, r_eq_fn, r_comb_hash_fn)
00067 { }
00068 
00069 PB_ASSOC_CLASS_T_DEC
00070 PB_ASSOC_CLASS_C_DEC::
00071 cc_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Hash_Fn& r_comb_hash_fn, const Resize_Policy& r_resize_policy) :
00072   my_base(r_hash_fn, r_eq_fn, r_comb_hash_fn, r_resize_policy)
00073 { }
00074 
00075 PB_ASSOC_CLASS_T_DEC
00076 PB_ASSOC_CLASS_C_DEC& 
00077 PB_ASSOC_CLASS_C_DEC::
00078 operator=(const PB_ASSOC_CLASS_C_DEC& r_other)
00079 {
00080   if (this !=& r_other)
00081     {
00082       PB_ASSOC_CLASS_C_DEC tmp(r_other);
00083 
00084       swap(tmp);
00085     }
00086 
00087   return (*this);
00088 }
00089 
00090 PB_ASSOC_CLASS_T_DEC
00091 template<class It>
00092 PB_ASSOC_CLASS_C_DEC::
00093 cc_hash_assoc_cntnr(It first_it, It last_it)
00094 {
00095   my_base::copy_from_range(first_it, last_it);
00096 }
00097 
00098 PB_ASSOC_CLASS_T_DEC
00099 template<class It>
00100 PB_ASSOC_CLASS_C_DEC::
00101 cc_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn) :
00102   my_base(r_hash_fn)
00103 {
00104   copy_from_range(first_it, last_it);
00105 }
00106 
00107 // Tmp Ami make all methods in assoc_cntnr.hpp inline
00108 
00109 PB_ASSOC_CLASS_T_DEC
00110 template<class It>
00111 PB_ASSOC_CLASS_C_DEC::
00112 cc_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn) :
00113   my_base(r_hash_fn, r_eq_fn)
00114 {
00115   copy_from_range(first_it, last_it);
00116 }
00117 
00118 PB_ASSOC_CLASS_T_DEC
00119 template<class It>
00120 PB_ASSOC_CLASS_C_DEC::
00121 cc_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Hash_Fn& r_comb_hash_fn) :
00122   my_base(r_hash_fn, r_eq_fn, r_comb_hash_fn)
00123 {
00124   copy_from_range(first_it, last_it);
00125 }
00126 
00127 PB_ASSOC_CLASS_T_DEC
00128 template<class It>
00129 PB_ASSOC_CLASS_C_DEC::
00130 cc_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Hash_Fn& r_comb_hash_fn, const Resize_Policy& r_resize_policy) :
00131   my_base(r_hash_fn, r_eq_fn, r_comb_hash_fn, r_resize_policy)
00132 {
00133   copy_from_range(first_it, last_it);
00134 }
00135 
00136 PB_ASSOC_CLASS_T_DEC
00137 PB_ASSOC_CLASS_C_DEC::
00138 cc_hash_assoc_cntnr(const PB_ASSOC_CLASS_C_DEC& r_other) :
00139   PB_ASSOC_BASE_C_DEC((const PB_ASSOC_BASE_C_DEC& )r_other)
00140 { }
00141 
00142 PB_ASSOC_CLASS_T_DEC
00143 PB_ASSOC_CLASS_C_DEC::
00144 ~cc_hash_assoc_cntnr()
00145 { }
00146 
00147 PB_ASSOC_CLASS_T_DEC
00148 void
00149 PB_ASSOC_CLASS_C_DEC::
00150 swap(PB_ASSOC_CLASS_C_DEC& r_other)
00151 {
00152   my_base::swap(r_other);
00153 }

Generated on Tue Feb 2 16:55:51 2010 for GNU C++ STL by  doxygen 1.4.7