X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fmpl.hh;h=fb1b5664c36e900b4e817f626cd5dfec857e5b1f;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=761ebf45ebe6850ffa2a04cac0f7e07573b6d52e;hpb=ae06fe86f16fdabb7ffb219d255444d2eb4f4f79;p=senf.git diff --git a/Utils/mpl.hh b/Utils/mpl.hh index 761ebf4..fb1b566 100644 --- a/Utils/mpl.hh +++ b/Utils/mpl.hh @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -23,8 +23,8 @@ /** \file \brief mpl public header */ -#ifndef HH_mpl_ -#define HH_mpl_ 1 +#ifndef HH_SENF_Utils_mpl_ +#define HH_SENF_Utils_mpl_ 1 // Custom includes #include "../config.hh" @@ -36,7 +36,7 @@ namespace senf { namespace mpl { - /** \defgroup senfmpl Low-level template meta programming helpers + /** \defgroup senfmpl Template meta programming helpers */ /** \brief Marker class for empty default values etc. @@ -45,6 +45,7 @@ namespace mpl { to mark missing arguments \note Don't use this as an empty base class. We may add some informative members to this. + \ingroup senfmpl */ struct nil {}; @@ -105,8 +106,8 @@ namespace mpl { never called. This number is than forwarded as template argument to \c select which is specialized for - each case. Therefore, choice has a \c frobble() member whereas - choice has a \c dazzle() member. + each case. Therefore, choice\ has a \c frobble() member whereas + choice\ has a \c dazzle() member. \see \ref SENF_MPL_RV \ingroup senfmpl @@ -155,6 +156,8 @@ namespace mpl { */ template struct take_class {}; +#ifndef SENF_MPL_SLOT_NOEXPAND + /** \brief Define MPL slot The slot macros \ref SENF_MPL_SLOT_DEF(), \ref SENF_MPL_SLOT_SET() and \ref @@ -219,6 +222,8 @@ namespace mpl { # define SENF_MPL_SLOT_GET(name) \ SENF_MPL_SLOT_I_GET(name) +#endif + }} ///////////////////////////////hh.e////////////////////////////////////////