00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */ 00002 00003 /* 00004 * Copyright (c) 2007, 2008 Ciaran McCreesh 00005 * 00006 * This file is part of the Paludis package manager. Paludis is free software; 00007 * you can redistribute it and/or modify it under the terms of the GNU General 00008 * Public License version 2, as published by the Free Software Foundation. 00009 * 00010 * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY 00011 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00013 * details. 00014 * 00015 * You should have received a copy of the GNU General Public License along with 00016 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00017 * Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 #ifndef PALUDIS_GUARD_PALUDIS_PACKAGE_ID_FWD_HH 00021 #define PALUDIS_GUARD_PALUDIS_PACKAGE_ID_FWD_HH 1 00022 00023 #include <iosfwd> 00024 #include <paludis/util/attributes.hh> 00025 #include <paludis/util/set-fwd.hh> 00026 #include <paludis/util/sequence-fwd.hh> 00027 #include <tr1/memory> 00028 00029 /** \file 00030 * Forward declarations for paludis/package_id.hh . 00031 * 00032 * \ingroup g_package_id 00033 */ 00034 00035 namespace paludis 00036 { 00037 class PackageID; 00038 class PackageIDSetComparator; 00039 class PackageIDComparator; 00040 00041 /** 00042 * A PackageIDSequence holds a collection of PackageID instances that may 00043 * or may not have been ordered in a meaningful way. 00044 * 00045 * \ingroup g_package_id 00046 * \since 0.26 00047 */ 00048 typedef Sequence<std::tr1::shared_ptr<const PackageID> > PackageIDSequence; 00049 00050 /** 00051 * A PackageIDSet holds a collection of PackageID instances that have no 00052 * meaningful ordering. 00053 * 00054 * \ingroup g_package_id 00055 * \since 0.26 00056 */ 00057 typedef Set<std::tr1::shared_ptr<const PackageID>, PackageIDSetComparator> PackageIDSet; 00058 00059 #include <paludis/package_id-se.hh> 00060 00061 /** 00062 * A PackageID can be written to a stream. 00063 * 00064 * \ingroup g_package_id 00065 * \since 0.26 00066 */ 00067 std::ostream & operator<< (std::ostream &, const PackageID &) PALUDIS_VISIBLE; 00068 } 00069 00070 #endif