Alexander Afanasyev | 042b4a7 | 2012-11-09 17:47:48 -0800 | [diff] [blame] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2012 University of California, Los Angeles |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation; |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | * |
| 18 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 19 | */ |
| 20 | |
| 21 | #include "per-fib-limits.h" |
| 22 | #include "per-out-face-limits.h" |
| 23 | |
| 24 | #include "ns3/ndn-l3-protocol.h" |
Alexander Afanasyev | bd9c18e | 2012-11-19 15:23:41 -0800 | [diff] [blame] | 25 | #include "ns3/ndn-interest.h" |
| 26 | #include "ns3/ndn-content-object.h" |
Alexander Afanasyev | 042b4a7 | 2012-11-09 17:47:48 -0800 | [diff] [blame] | 27 | |
| 28 | #include "best-route.h" |
| 29 | #include "flooding.h" |
| 30 | #include "smart-flooding.h" |
| 31 | |
| 32 | namespace ns3 { |
| 33 | namespace ndn { |
| 34 | namespace fw { |
| 35 | |
Alexander Afanasyev | ad2c54a | 2013-04-10 13:53:37 -0700 | [diff] [blame] | 36 | extern template class PerOutFaceLimits<BestRoute>; |
| 37 | extern template class PerOutFaceLimits<Flooding>; |
| 38 | extern template class PerOutFaceLimits<SmartFlooding>; |
| 39 | |
Alexander Afanasyev | 042b4a7 | 2012-11-09 17:47:48 -0800 | [diff] [blame] | 40 | template class PerFibLimits< PerOutFaceLimits<BestRoute> >; |
| 41 | typedef PerFibLimits< PerOutFaceLimits<BestRoute> > PerFibLimitsPerOutFaceLimitsBestRoute; |
| 42 | NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsBestRoute); |
| 43 | |
| 44 | template class PerFibLimits< PerOutFaceLimits<Flooding> >; |
| 45 | typedef PerFibLimits< PerOutFaceLimits<Flooding> > PerFibLimitsPerOutFaceLimitsFlooding; |
| 46 | NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsFlooding); |
| 47 | |
| 48 | template class PerFibLimits< PerOutFaceLimits<SmartFlooding> >; |
| 49 | typedef PerFibLimits< PerOutFaceLimits<SmartFlooding> > PerFibLimitsPerOutFaceLimitsSmartFlooding; |
| 50 | NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsSmartFlooding); |
| 51 | |
| 52 | #ifdef DOXYGEN |
| 53 | // /** |
| 54 | // * \brief Strategy implementing per-fib-per-out-face limits on top of BestRoute strategy |
| 55 | // */ |
| 56 | class BestRoute::PerOutFaceLimits::PerFibLimits : public ::ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits<BestRoute> > { }; |
| 57 | |
| 58 | /** |
| 59 | * \brief Strategy implementing per-fib-per-out-face limits on top of Flooding strategy |
| 60 | */ |
| 61 | class Flooding::PerOutFaceLimits::PerFibLimits : public ::ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits<Flooding> > { }; |
| 62 | |
| 63 | /** |
| 64 | * \brief Strategy implementing per-fib-per-out-face limits on top of SmartFlooding strategy |
| 65 | */ |
| 66 | class SmartFlooding::PerOutFaceLimits::PerFibLimits : public ::ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits<SmartFlooding> > { }; |
| 67 | |
| 68 | #endif |
| 69 | |
| 70 | } // namespace fw |
| 71 | } // namespace ndn |
| 72 | } // namespace ns3 |