blob: 61515c1a98822b9d48b51d928617312b28c748de [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>
20 *
21 */
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
28NS_LOG_COMPONENT_DEFINE ("ndn.cs.Nocache");
29
30namespace ns3 {
31namespace ndn {
32namespace cs {
33
34NS_OBJECT_ENSURE_REGISTERED (Nocache);
35
36TypeId
37Nocache::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
48Nocache::Nocache ()
49{
50}
51
52Nocache::~Nocache ()
53{
54}
55
Alexander Afanasyev772f51b2013-08-01 18:53:25 -070056Ptr<Data>
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070057Nocache::Lookup (Ptr<const Interest> interest)
58{
59 this->m_cacheMissesTrace (interest);
Alexander Afanasyevb989b122013-07-10 17:15:46 -070060 return 0;
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070061}
62
63bool
Alexander Afanasyev772f51b2013-08-01 18:53:25 -070064Nocache::Add (Ptr<const Data> data)
Alexander Afanasyev8ade0be2013-06-04 10:06:06 -070065{
66 return false;
67}
68
69void
70Nocache::Print (std::ostream &os) const
71{
72}
73
74uint32_t
75Nocache::GetSize () const
76{
77 return 0;
78}
79
80Ptr<cs::Entry>
81Nocache::Begin ()
82{
83 return 0;
84}
85
86Ptr<cs::Entry>
87Nocache::End ()
88{
89 return 0;
90}
91
92Ptr<cs::Entry>
93Nocache::Next (Ptr<cs::Entry>)
94{
95 return 0;
96}
97
98} // namespace cs
99} // namespace ndn
100} // namespace ns3