1193323Sed// -*- C++ -*- 2193323Sed 3193323Sed// Copyright (C) 2005, 2006 Free Software Foundation, Inc. 4193323Sed// 5193323Sed// This file is part of the GNU ISO C++ Library. This library is free 6193323Sed// software; you can redistribute it and/or modify it under the terms 7193323Sed// of the GNU General Public License as published by the Free Software 8193323Sed// Foundation; either version 2, or (at your option) any later 9193323Sed// version. 10243830Sdim 11243830Sdim// This library is distributed in the hope that it will be useful, but 12243830Sdim// WITHOUT ANY WARRANTY; without even the implied warranty of 13193323Sed// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14263508Sdim// General Public License for more details. 15263508Sdim 16263508Sdim// You should have received a copy of the GNU General Public License 17263508Sdim// along with this library; see the file COPYING. If not, write to 18263508Sdim// the Free Software Foundation, 59 Temple Place - Suite 330, Boston, 19263508Sdim// MA 02111-1307, USA. 20193323Sed 21193323Sed// As a special exception, you may use this file as part of a free 22193323Sed// software library without restriction. Specifically, if other files 23249423Sdim// instantiate templates or use macros or inline functions from this 24263508Sdim// file, or you compile this file and link it with other files to 25249423Sdim// produce an executable, this file does not by itself cause the 26193323Sed// resulting executable to be covered by the GNU General Public 27249423Sdim// License. This exception does not however invalidate any other 28193323Sed// reasons why the executable file might be covered by the GNU General 29193323Sed// Public License. 30193323Sed 31198090Srdivacky// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 32263508Sdim 33263508Sdim// Permission to use, copy, modify, sell, and distribute this software 34193323Sed// is hereby granted without fee, provided that the above copyright 35193323Sed// notice appears in all copies, and that both that copyright notice 36193323Sed// and this permission notice appear in supporting documentation. None 37193323Sed// of the above authors, nor IBM Haifa Research Laboratories, make any 38193323Sed// representation about the suitability of this software for any 39193323Sed// purpose. It is provided "as is" without express or implied 40193323Sed// warranty. 41193323Sed 42193323Sed/** 43193323Sed * @file iterator_fn_imps.hpp 44193323Sed * Contains implementations of gp_ht_map_'s iterators related functions, e.g., 45193323Sed * begin(). 46193323Sed */ 47193323Sed 48193323SedPB_DS_CLASS_T_DEC 49193323Sedtypename PB_DS_CLASS_C_DEC::iterator 50193323SedPB_DS_CLASS_C_DEC::s_end_it; 51193323Sed 52193323SedPB_DS_CLASS_T_DEC 53193323Sedtypename PB_DS_CLASS_C_DEC::const_iterator 54193323SedPB_DS_CLASS_C_DEC::s_const_end_it; 55198892Srdivacky 56193323SedPB_DS_CLASS_T_DEC 57193323Sedinline typename PB_DS_CLASS_C_DEC::iterator 58193323SedPB_DS_CLASS_C_DEC:: 59243830Sdimbegin() 60263508Sdim{ 61193323Sed pointer_ p_value; 62193323Sed size_type pos; 63193323Sed get_start_it_state(p_value, pos); 64193323Sed return iterator(p_value, pos, this); 65193323Sed} 66193323Sed 67193323SedPB_DS_CLASS_T_DEC 68193323Sedinline typename PB_DS_CLASS_C_DEC::iterator 69193323SedPB_DS_CLASS_C_DEC:: 70193323Sedend() 71193323Sed{ return s_end_it; } 72212904Sdim 73218893SdimPB_DS_CLASS_T_DEC 74193323Sedinline typename PB_DS_CLASS_C_DEC::const_iterator 75243830SdimPB_DS_CLASS_C_DEC:: 76243830Sdimbegin() const 77218893Sdim{ 78193323Sed const_pointer_ p_value; 79193323Sed size_type pos; 80263508Sdim get_start_it_state(p_value, pos); 81193323Sed return const_iterator(p_value, pos, this); 82193323Sed} 83263508Sdim 84243830SdimPB_DS_CLASS_T_DEC 85218893Sdiminline typename PB_DS_CLASS_C_DEC::const_iterator 86263508SdimPB_DS_CLASS_C_DEC:: 87263508Sdimend() const 88193323Sed{ return s_const_end_it; } 89193323Sed 90193323Sed