X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSetup.cti;h=509bbb112a8ea0099932262f9426841e68bc2044;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=fa119e68a43ab0ee7fa3e3135f5aa7e6155959f0;hpb=9e64a6d6a4840325f74502ba959ebd56fbb8441c;p=senf.git diff --git a/PPI/Setup.cti b/PPI/Setup.cti index fa119e6..509bbb1 100644 --- a/PPI/Setup.cti +++ b/PPI/Setup.cti @@ -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 @@ -26,37 +26,46 @@ //#include "Setup.ih" // Custom includes +#include "Jack.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// -template -prefix_ void -senf::ppi::connect(M & source, C & target, - typename boost::enable_if< boost::is_base_of >::type *, - typename boost::enable_if< boost::is_base_of >::type *) +#ifndef DOXYGEN + +template +prefix_ void senf::ppi:: +connect(T & source, C & target, + typename boost::disable_if< boost::is_base_of >::type *, + typename boost::enable_if< boost::is_base_of >::type *, + typename boost::disable_if< boost::is_base_of >::type *) { connect(source.output, target); } -template -prefix_ void -senf::ppi::connect(C & source, M & target, - typename boost::enable_if< boost::is_base_of >::type *, - typename boost::enable_if< boost::is_base_of >::type *) +template +prefix_ void senf::ppi:: +connect(C & source, T & target, + typename boost::enable_if< boost::is_base_of >::type *, + typename boost::disable_if< boost::is_base_of >::type *, + typename boost::disable_if< boost::is_base_of >::type *) { connect(source, target.input); } -template -prefix_ void -senf::ppi::connect(M1 & source, M2 & target, - typename boost::enable_if< boost::is_base_of >::type *, - typename boost::enable_if< boost::is_base_of >::type *) +template +prefix_ void senf::ppi:: +connect(T1 & source, T2 & target, + typename boost::disable_if< boost::is_base_of >::type *, + typename boost::disable_if< boost::is_base_of >::type *, + typename boost::disable_if< boost::is_base_of >::type *, + typename boost::disable_if< boost::is_base_of >::type *) { connect(source.output, target.input); } +#endif + ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_