138465Smsmith// -*- C++ -*- 238465Smsmith 338465Smsmith// Copyright (C) 2005, 2006 Free Software Foundation, Inc. 438465Smsmith// 538465Smsmith// This file is part of the GNU ISO C++ Library. This library is free 638465Smsmith// software; you can redistribute it and/or modify it under the terms 738465Smsmith// of the GNU General Public License as published by the Free Software 838465Smsmith// Foundation; either version 2, or (at your option) any later 938465Smsmith// version. 1038465Smsmith 1138465Smsmith// This library is distributed in the hope that it will be useful, but 1238465Smsmith// WITHOUT ANY WARRANTY; without even the implied warranty of 1338465Smsmith// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1438465Smsmith// General Public License for more details. 1538465Smsmith 1638465Smsmith// You should have received a copy of the GNU General Public License 1738465Smsmith// along with this library; see the file COPYING. If not, write to 1838465Smsmith// the Free Software Foundation, 59 Temple Place - Suite 330, Boston, 1938465Smsmith// MA 02111-1307, USA. 2038465Smsmith 2138465Smsmith// As a special exception, you may use this file as part of a free 2238465Smsmith// software library without restriction. Specifically, if other files 2338465Smsmith// instantiate templates or use macros or inline functions from this 2438465Smsmith// file, or you compile this file and link it with other files to 2538465Smsmith// produce an executable, this file does not by itself cause the 2650477Speter// resulting executable to be covered by the GNU General Public 2738465Smsmith// License. This exception does not however invalidate any other 2838465Smsmith// reasons why the executable file might be covered by the GNU General 2938465Smsmith// Public License. 3038465Smsmith 3167227Sobrien// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 3238465Smsmith 33106738Sjake// Permission to use, copy, modify, sell, and distribute this software 3438465Smsmith// is hereby granted without fee, provided that the above copyright 3538465Smsmith// notice appears in all copies, and that both that copyright notice 3638465Smsmith// and this permission notice appear in supporting documentation. None 3738465Smsmith// of the above authors, nor IBM Haifa Research Laboratories, make any 3838465Smsmith// representation about the suitability of this software for any 3938465Smsmith// purpose. It is provided "as is" without express or implied 4038465Smsmith// warranty. 4167227Sobrien 4238465Smsmith/** 4367227Sobrien * @file trace_fn_imps.hpp 4438465Smsmith * Contains an implementation class for a binary_heap. 45106738Sjake */ 4638465Smsmith 4738465Smsmith#ifdef PB_DS_BINARY_HEAP_TRACE_ 4838465Smsmith 4938465SmsmithPB_DS_CLASS_T_DEC 5038465Smsmithvoid 51106738SjakePB_DS_CLASS_C_DEC:: 5238465Smsmithtrace() const 5367227Sobrien{ 5438465Smsmith std::cerr << this << std::endl; 5538465Smsmith 5638465Smsmith std::cerr << m_a_entries << std::endl; 5738465Smsmith 5838465Smsmith for (size_type i = 0; i < m_size; ++i) 5938465Smsmith trace_entry(m_a_entries[i], s_no_throw_copies_ind); 6038465Smsmith 6138465Smsmith std::cerr << std::endl; 6267227Sobrien 6338465Smsmith std::cerr << "size = " << m_size << " " << "actual_size = " << m_actual_size << std::endl; 6438465Smsmith 6538465Smsmith resize_policy::trace(); 6638465Smsmith} 6738465Smsmith 6838465SmsmithPB_DS_CLASS_T_DEC 6938465Smsmithvoid 7038465SmsmithPB_DS_CLASS_C_DEC:: 7167227Sobrientrace_entry(const entry& r_e, false_type) const 7238465Smsmith{ 73106738Sjake std::cout << r_e << " " <<* r_e << std::endl; 7438465Smsmith} 75106738Sjake 76106738SjakePB_DS_CLASS_T_DEC 77106738Sjakevoid 78106738SjakePB_DS_CLASS_C_DEC:: 79106738Sjaketrace_entry(const entry& r_e, true_type) const 80106738Sjake{ 81106738Sjake std::cout << r_e << std::endl; 8238465Smsmith} 83106738Sjake 84106738Sjake#endif // #ifdef PB_DS_BINARY_HEAP_TRACE_ 85106738Sjake