blob: f2fed8672d139bc9ce6a0e0f9352dd6d085c5acb [file] [log] [blame]
Alexander Afanasyev042b4a72012-11-09 17:47:48 -08001/* -*- 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 Afanasyevbd9c18e2012-11-19 15:23:41 -080025#include "ns3/ndn-interest.h"
26#include "ns3/ndn-content-object.h"
Alexander Afanasyev042b4a72012-11-09 17:47:48 -080027
28#include "best-route.h"
29#include "flooding.h"
30#include "smart-flooding.h"
31
32namespace ns3 {
33namespace ndn {
34namespace fw {
35
Alexander Afanasyevad2c54a2013-04-10 13:53:37 -070036extern template class PerOutFaceLimits<BestRoute>;
37extern template class PerOutFaceLimits<Flooding>;
38extern template class PerOutFaceLimits<SmartFlooding>;
39
Alexander Afanasyev042b4a72012-11-09 17:47:48 -080040template class PerFibLimits< PerOutFaceLimits<BestRoute> >;
41typedef PerFibLimits< PerOutFaceLimits<BestRoute> > PerFibLimitsPerOutFaceLimitsBestRoute;
42NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsBestRoute);
43
44template class PerFibLimits< PerOutFaceLimits<Flooding> >;
45typedef PerFibLimits< PerOutFaceLimits<Flooding> > PerFibLimitsPerOutFaceLimitsFlooding;
46NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsFlooding);
47
48template class PerFibLimits< PerOutFaceLimits<SmartFlooding> >;
49typedef PerFibLimits< PerOutFaceLimits<SmartFlooding> > PerFibLimitsPerOutFaceLimitsSmartFlooding;
50NS_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// */
56class 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 */
61class 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 */
66class 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