NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
content-store-nocache.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
21 
22 #include "ns3/log.h"
23 #include "ns3/packet.h"
24 
25 NS_LOG_COMPONENT_DEFINE("ndn.cs.Nocache");
26 
27 namespace ns3 {
28 namespace ndn {
29 namespace cs {
30 
32 
33 TypeId
35 {
36  static TypeId tid = TypeId("ns3::ndn::cs::Nocache")
37  .SetGroupName("Ndn")
38  .SetParent<ContentStore>()
39  .AddConstructor<Nocache>();
40 
41  return tid;
42 }
43 
45 {
46 }
47 
49 {
50 }
51 
52 shared_ptr<Data>
53 Nocache::Lookup(shared_ptr<const Interest> interest)
54 {
55  this->m_cacheMissesTrace(interest);
56  return 0;
57 }
58 
59 bool
60 Nocache::Add(shared_ptr<const Data> data)
61 {
62  return false;
63 }
64 
65 void
66 Nocache::Print(std::ostream& os) const
67 {
68 }
69 
70 uint32_t
72 {
73  return 0;
74 }
75 
76 Ptr<cs::Entry>
78 {
79  return 0;
80 }
81 
82 Ptr<cs::Entry>
84 {
85  return 0;
86 }
87 
88 Ptr<cs::Entry> Nocache::Next(Ptr<cs::Entry>)
89 {
90  return 0;
91 }
92 
93 } // namespace cs
94 } // namespace ndn
95 } // namespace ns3
virtual bool Add(shared_ptr< const Data > data)
Add a new content to the content store.
Copyright (c) 2011-2015 Regents of the University of California.
NS_OBJECT_ENSURE_REGISTERED(Nocache)
virtual Ptr< cs::Entry > End()
Return item next after last (no order guaranteed)
virtual uint32_t GetSize() const
Get number of entries in content store.
virtual void Print(std::ostream &os) const
Print out content store entries.
TracedCallback< shared_ptr< const Interest > > m_cacheMissesTrace
trace of cache misses
ndn cs Nocache
Copyright (c) 2011-2015 Regents of the University of California.
virtual shared_ptr< Data > Lookup(shared_ptr< const Interest > interest)
Find corresponding CS entry for the given interest.
static TypeId GetTypeId()
Interface ID.
Nocache()
Default constructor.
Copyright (c) 2011-2015 Regents of the University of California.
virtual Ptr< cs::Entry > Begin()
Return first element of content store (no order guaranteed)
virtual ~Nocache()
Virtual destructor.
virtual Ptr< cs::Entry > Next(Ptr< cs::Entry >)
Base class for NDN content store.