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 lu_assoc_cntnr()
00049 { }
00050 
00051 PB_ASSOC_CLASS_T_DEC
00052 PB_ASSOC_CLASS_C_DEC::
00053 lu_assoc_cntnr(const Eq_Fn& r_eq_fn) :
00054   my_base(r_eq_fn)
00055 { }
00056 
00057 PB_ASSOC_CLASS_T_DEC
00058 PB_ASSOC_CLASS_C_DEC::
00059 lu_assoc_cntnr(const Eq_Fn& r_eq_fn, const Update_Policy& r_update_policy) :
00060   my_base(r_eq_fn, r_update_policy)
00061 { }
00062 
00063 PB_ASSOC_CLASS_T_DEC
00064 template<class It>
00065 PB_ASSOC_CLASS_C_DEC::
00066 lu_assoc_cntnr(It first_it, It last_it)
00067 {
00068   my_base::copy_from_range(first_it, last_it);
00069 }
00070 
00071 PB_ASSOC_CLASS_T_DEC
00072 template<class It>
00073 PB_ASSOC_CLASS_C_DEC::
00074 lu_assoc_cntnr(It first_it, It last_it, const Eq_Fn& r_eq_fn) :
00075   my_base(r_eq_fn)
00076 {
00077   my_base::copy_from_range(first_it, last_it);
00078 }
00079 
00080 PB_ASSOC_CLASS_T_DEC
00081 template<class It>
00082 PB_ASSOC_CLASS_C_DEC::
00083 lu_assoc_cntnr(It first_it, It last_it, const Eq_Fn& r_eq_fn, const Update_Policy& r_update_policy) :
00084   my_base(r_eq_fn, r_update_policy)
00085 {
00086   my_base::copy_from_range(first_it, last_it);
00087 }
00088 
00089 PB_ASSOC_CLASS_T_DEC
00090 PB_ASSOC_CLASS_C_DEC::
00091 lu_assoc_cntnr(const PB_ASSOC_CLASS_C_DEC& r_other) :
00092   my_base((const my_base& )(r_other))
00093 { }
00094 
00095 PB_ASSOC_CLASS_T_DEC
00096 PB_ASSOC_CLASS_C_DEC::
00097 ~lu_assoc_cntnr()
00098 { }
00099 
00100 PB_ASSOC_CLASS_T_DEC
00101 PB_ASSOC_CLASS_C_DEC& 
00102 PB_ASSOC_CLASS_C_DEC::
00103 operator=(const PB_ASSOC_CLASS_C_DEC& r_other)
00104 {
00105   if (this !=& r_other)
00106     {
00107       PB_ASSOC_CLASS_C_DEC tmp(r_other);
00108 
00109       swap(tmp);
00110     }
00111 
00112   return (*this);
00113 }
00114 
00115 PB_ASSOC_CLASS_T_DEC
00116 void
00117 PB_ASSOC_CLASS_C_DEC::
00118 swap(PB_ASSOC_CLASS_C_DEC& r_other)
00119 {
00120   my_base::swap(r_other);
00121 }

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