blob: 6b10df1a624a2196e57529015739acaa2dba35ae [file] [log] [blame]
Alexander Afanasyev60a7b622014-12-20 17:04:07 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2011-2015 Regents of the University of California.
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -07004 *
Alexander Afanasyev60a7b622014-12-20 17:04:07 -08005 * This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
6 * contributors.
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -07007 *
Alexander Afanasyev60a7b622014-12-20 17:04:07 -08008 * ndnSIM is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070011 *
Alexander Afanasyev60a7b622014-12-20 17:04:07 -080012 * ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070015 *
Alexander Afanasyev60a7b622014-12-20 17:04:07 -080016 * You should have received a copy of the GNU General Public License along with
17 * ndnSIM, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 **/
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070019
Alexander Afanasyev0c395372014-12-20 15:54:02 -080020#include "content-store-nocache.hpp"
21
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070022#include "ns3/log.h"
23#include "ns3/packet.h"
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070024
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080025NS_LOG_COMPONENT_DEFINE("ndn.cs.Nocache");
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070026
27namespace ns3 {
28namespace ndn {
29namespace cs {
30
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080031NS_OBJECT_ENSURE_REGISTERED(Nocache);
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070032
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080033TypeId
34Nocache::GetTypeId(void)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070035{
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080036 static TypeId tid = TypeId("ns3::ndn::cs::Nocache")
37 .SetGroupName("Ndn")
38 .SetParent<ContentStore>()
39 .AddConstructor<Nocache>();
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070040
41 return tid;
42}
43
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080044Nocache::Nocache()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070045{
46}
47
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080048Nocache::~Nocache()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070049{
50}
51
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070052shared_ptr<Data>
53Nocache::Lookup(shared_ptr<const Interest> interest)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070054{
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080055 this->m_cacheMissesTrace(interest);
Alexander Afanasyevb989b122013-07-10 17:15:46 -070056 return 0;
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070057}
58
59bool
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070060Nocache::Add(shared_ptr<const Data> data)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070061{
62 return false;
63}
64
65void
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080066Nocache::Print(std::ostream& os) const
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070067{
68}
69
70uint32_t
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080071Nocache::GetSize() const
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070072{
73 return 0;
74}
75
76Ptr<cs::Entry>
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080077Nocache::Begin()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070078{
79 return 0;
80}
81
82Ptr<cs::Entry>
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080083Nocache::End()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070084{
85 return 0;
86}
87
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080088Ptr<cs::Entry> Nocache::Next(Ptr<cs::Entry>)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070089{
90 return 0;
91}
92
93} // namespace cs
94} // namespace ndn
95} // namespace ns3