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 gp_hash_assoc_cntnr()
00049 { }
00050 
00051 PB_ASSOC_CLASS_T_DEC
00052 PB_ASSOC_CLASS_C_DEC::
00053 gp_hash_assoc_cntnr(const Hash_Fn& r_hash_fn) :
00054   PB_ASSOC_BASE_C_DEC(r_hash_fn)
00055 { }
00056 
00057 PB_ASSOC_CLASS_T_DEC
00058 PB_ASSOC_CLASS_C_DEC::
00059 gp_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn) :
00060   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn)
00061 { }
00062 
00063 PB_ASSOC_CLASS_T_DEC
00064 PB_ASSOC_CLASS_C_DEC::
00065 gp_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Probe_Fn& r_comb_hash_fn) :
00066   PB_ASSOC_BASE_C_DEC(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 gp_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Probe_Fn& r_comb_hash_fn, const Probe_Fn& r_probe_fn) :
00072   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn, r_comb_hash_fn, r_probe_fn)
00073 { }
00074 
00075 PB_ASSOC_CLASS_T_DEC
00076 PB_ASSOC_CLASS_C_DEC::
00077 gp_hash_assoc_cntnr(const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Probe_Fn& r_comb_hash_fn, const Probe_Fn& r_probe_fn, const Resize_Policy& r_resize_policy) :
00078   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn, r_comb_hash_fn, r_probe_fn, r_resize_policy)
00079 { }
00080 
00081 PB_ASSOC_CLASS_T_DEC
00082 template<class It>
00083 PB_ASSOC_CLASS_C_DEC::
00084 gp_hash_assoc_cntnr(It first_it, It last_it)
00085 {
00086   my_base::copy_from_range(first_it, last_it);
00087 }
00088 
00089 PB_ASSOC_CLASS_T_DEC
00090 template<class It>
00091 PB_ASSOC_CLASS_C_DEC::
00092 gp_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn) :
00093   PB_ASSOC_BASE_C_DEC(r_hash_fn)
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 gp_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn) :
00102   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn)
00103 {
00104   my_base::copy_from_range(first_it, last_it);
00105 }
00106 
00107 PB_ASSOC_CLASS_T_DEC
00108 template<class It>
00109 PB_ASSOC_CLASS_C_DEC::
00110 gp_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Probe_Fn& r_comb_hash_fn) :
00111   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn, r_comb_hash_fn)
00112 {
00113   my_base::copy_from_range(first_it, last_it);
00114 }
00115 
00116 PB_ASSOC_CLASS_T_DEC
00117 template<class It>
00118 PB_ASSOC_CLASS_C_DEC::
00119 gp_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Probe_Fn& r_comb_hash_fn, const Probe_Fn& r_probe_fn) :
00120   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn, r_comb_hash_fn, r_probe_fn)
00121 {
00122   my_base::copy_from_range(first_it, last_it);
00123 }
00124 
00125 PB_ASSOC_CLASS_T_DEC
00126 template<class It>
00127 PB_ASSOC_CLASS_C_DEC::
00128 gp_hash_assoc_cntnr(It first_it, It last_it, const Hash_Fn& r_hash_fn, const Eq_Fn& r_eq_fn, const Comb_Probe_Fn& r_comb_hash_fn, const Probe_Fn& r_probe_fn, const Resize_Policy& r_resize_policy) :
00129   PB_ASSOC_BASE_C_DEC(r_hash_fn, r_eq_fn, r_comb_hash_fn, r_probe_fn, r_resize_policy)
00130 {
00131   my_base::copy_from_range(first_it, last_it);
00132 }
00133 
00134 PB_ASSOC_CLASS_T_DEC
00135 PB_ASSOC_CLASS_C_DEC::
00136 gp_hash_assoc_cntnr(const PB_ASSOC_CLASS_C_DEC& r_other) :
00137   PB_ASSOC_BASE_C_DEC((const PB_ASSOC_BASE_C_DEC& )(r_other))
00138 { }
00139 
00140 PB_ASSOC_CLASS_T_DEC
00141 PB_ASSOC_CLASS_C_DEC& 
00142 PB_ASSOC_CLASS_C_DEC::
00143 operator=(const PB_ASSOC_CLASS_C_DEC& r_other)
00144 {
00145   if (this !=& r_other)
00146     {
00147       PB_ASSOC_CLASS_C_DEC tmp(r_other);
00148 
00149       swap(tmp);
00150     }
00151 
00152   return (*this);
00153 }
00154 
00155 PB_ASSOC_CLASS_T_DEC
00156 PB_ASSOC_CLASS_C_DEC::
00157 ~gp_hash_assoc_cntnr()
00158 { }
00159 
00160 PB_ASSOC_CLASS_T_DEC
00161 void
00162 PB_ASSOC_CLASS_C_DEC::
00163 swap(PB_ASSOC_CLASS_C_DEC& r_other)
00164 {
00165   my_base::swap(r_other);
00166 }

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