type_list-fwd.hh

00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */
00002 
00003 /*
00004  * Copyright (c) 2008, 2009 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_UTIL_TYPE_LIST_FWD_HH
00021 #define PALUDIS_GUARD_PALUDIS_UTIL_TYPE_LIST_FWD_HH 1
00022 
00023 namespace paludis
00024 {
00025     struct TypeListTail;
00026 
00027     template <typename Item_, typename Tail_>
00028     struct TypeListEntry;
00029 
00030 #ifdef PALUDIS_HAVE_VARIADIC_TEMPLATES
00031 
00032     template <typename...>
00033     struct MakeTypeList;
00034 
00035     template <>
00036     struct MakeTypeList<>;
00037 
00038     template <typename H_, typename... T_>
00039     struct MakeTypeList<H_, T_...>;
00040 
00041 #else
00042 
00043     template <typename Item_, typename Tail_>
00044     struct MakeTypeListEntry;
00045 
00046     template <
00047         typename T01_ = TypeListTail,
00048         typename T02_ = TypeListTail,
00049         typename T03_ = TypeListTail,
00050         typename T04_ = TypeListTail,
00051         typename T05_ = TypeListTail,
00052         typename T06_ = TypeListTail,
00053         typename T07_ = TypeListTail,
00054         typename T08_ = TypeListTail,
00055         typename T09_ = TypeListTail,
00056         typename T10_ = TypeListTail,
00057         typename T11_ = TypeListTail,
00058         typename T12_ = TypeListTail,
00059         typename T13_ = TypeListTail,
00060         typename T14_ = TypeListTail,
00061         typename T15_ = TypeListTail,
00062         typename T16_ = TypeListTail,
00063         typename T17_ = TypeListTail,
00064         typename T18_ = TypeListTail,
00065         typename T19_ = TypeListTail,
00066         typename T20_ = TypeListTail,
00067         typename T21_ = TypeListTail,
00068         typename T22_ = TypeListTail,
00069         typename T23_ = TypeListTail,
00070         typename T24_ = TypeListTail,
00071         typename T25_ = TypeListTail
00072         >
00073     struct MakeTypeList;
00074 
00075 #endif
00076 
00077     template <typename TypeList_>
00078     struct MakeTypeListConst;
00079 
00080     template <typename Item_>
00081     struct MakeTypeListConstEntry;
00082 
00083     template <typename TypeList_, typename Item_>
00084     struct TypeListContains;
00085 }
00086 
00087 #endif

Generated on Mon Sep 21 10:36:08 2009 for paludis by  doxygen 1.5.4