blob: 9aef87be5553099d2ec40a119b3a5dea760e2e37 [file] [log] [blame]
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -07001/* -*- 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>
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080020 *
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070021 */
22
Alexander Afanasyev0c395372014-12-20 15:54:02 -080023#include "content-store-nocache.hpp"
24
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070025#include "ns3/log.h"
26#include "ns3/packet.h"
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070027
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080028NS_LOG_COMPONENT_DEFINE("ndn.cs.Nocache");
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070029
30namespace ns3 {
31namespace ndn {
32namespace cs {
33
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080034NS_OBJECT_ENSURE_REGISTERED(Nocache);
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070035
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080036TypeId
37Nocache::GetTypeId(void)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070038{
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080039 static TypeId tid = TypeId("ns3::ndn::cs::Nocache")
40 .SetGroupName("Ndn")
41 .SetParent<ContentStore>()
42 .AddConstructor<Nocache>();
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070043
44 return tid;
45}
46
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080047Nocache::Nocache()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070048{
49}
50
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080051Nocache::~Nocache()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070052{
53}
54
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070055shared_ptr<Data>
56Nocache::Lookup(shared_ptr<const Interest> interest)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070057{
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080058 this->m_cacheMissesTrace(interest);
Alexander Afanasyevb989b122013-07-10 17:15:46 -070059 return 0;
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070060}
61
62bool
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070063Nocache::Add(shared_ptr<const Data> data)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070064{
65 return false;
66}
67
68void
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080069Nocache::Print(std::ostream& os) const
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070070{
71}
72
73uint32_t
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080074Nocache::GetSize() const
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070075{
76 return 0;
77}
78
79Ptr<cs::Entry>
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080080Nocache::Begin()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070081{
82 return 0;
83}
84
85Ptr<cs::Entry>
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080086Nocache::End()
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070087{
88 return 0;
89}
90
Alexander Afanasyevbe55cf62014-12-20 17:51:09 -080091Ptr<cs::Entry> Nocache::Next(Ptr<cs::Entry>)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070092{
93 return 0;
94}
95
96} // namespace cs
97} // namespace ndn
98} // namespace ns3