Alexander Afanasyev | 8ade0be | 2013-06-04 10:06:06 -0700 | [diff] [blame] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2011,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 | * Ilya Moiseenko <iliamo@cs.ucla.edu> |
| 20 | * |
| 21 | */ |
| 22 | |
Alexander Afanasyev | 0c39537 | 2014-12-20 15:54:02 -0800 | [diff] [blame^] | 23 | #include "content-store-nocache.hpp" |
| 24 | |
Alexander Afanasyev | 8ade0be | 2013-06-04 10:06:06 -0700 | [diff] [blame] | 25 | #include "ns3/log.h" |
| 26 | #include "ns3/packet.h" |
Alexander Afanasyev | 8ade0be | 2013-06-04 10:06:06 -0700 | [diff] [blame] | 27 | |
| 28 | NS_LOG_COMPONENT_DEFINE ("ndn.cs.Nocache"); |
| 29 | |
| 30 | namespace ns3 { |
| 31 | namespace ndn { |
| 32 | namespace cs { |
| 33 | |
| 34 | NS_OBJECT_ENSURE_REGISTERED (Nocache); |
| 35 | |
| 36 | TypeId |
| 37 | Nocache::GetTypeId (void) |
| 38 | { |
| 39 | static TypeId tid = TypeId ("ns3::ndn::cs::Nocache") |
| 40 | .SetGroupName ("Ndn") |
| 41 | .SetParent<ContentStore> () |
| 42 | .AddConstructor< Nocache > () |
| 43 | ; |
| 44 | |
| 45 | return tid; |
| 46 | } |
| 47 | |
| 48 | Nocache::Nocache () |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | Nocache::~Nocache () |
| 53 | { |
| 54 | } |
| 55 | |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame] | 56 | Ptr<Data> |
Alexander Afanasyev | 8ade0be | 2013-06-04 10:06:06 -0700 | [diff] [blame] | 57 | Nocache::Lookup (Ptr<const Interest> interest) |
| 58 | { |
| 59 | this->m_cacheMissesTrace (interest); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 60 | return 0; |
Alexander Afanasyev | 8ade0be | 2013-06-04 10:06:06 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | bool |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame] | 64 | Nocache::Add (Ptr<const Data> data) |
Alexander Afanasyev | 8ade0be | 2013-06-04 10:06:06 -0700 | [diff] [blame] | 65 | { |
| 66 | return false; |
| 67 | } |
| 68 | |
| 69 | void |
| 70 | Nocache::Print (std::ostream &os) const |
| 71 | { |
| 72 | } |
| 73 | |
| 74 | uint32_t |
| 75 | Nocache::GetSize () const |
| 76 | { |
| 77 | return 0; |
| 78 | } |
| 79 | |
| 80 | Ptr<cs::Entry> |
| 81 | Nocache::Begin () |
| 82 | { |
| 83 | return 0; |
| 84 | } |
| 85 | |
| 86 | Ptr<cs::Entry> |
| 87 | Nocache::End () |
| 88 | { |
| 89 | return 0; |
| 90 | } |
| 91 | |
| 92 | Ptr<cs::Entry> |
| 93 | Nocache::Next (Ptr<cs::Entry>) |
| 94 | { |
| 95 | return 0; |
| 96 | } |
| 97 | |
| 98 | } // namespace cs |
| 99 | } // namespace ndn |
| 100 | } // namespace ns3 |