NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
content-store-nocache.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef NDN_CONTENT_STORE_NOCACHE_H
21 #define NDN_CONTENT_STORE_NOCACHE_H
22 
23 #include "ns3/ndnSIM/model/ndn-common.hpp"
24 
25 #include "ns3/ndnSIM/model/cs/ndn-content-store.hpp"
26 
27 namespace ns3 {
28 namespace ndn {
29 namespace cs {
30 
35 class Nocache : public ContentStore {
36 public:
42  static TypeId
43  GetTypeId();
44 
48  Nocache();
49 
53  virtual ~Nocache();
54 
55  virtual shared_ptr<Data>
56  Lookup(shared_ptr<const Interest> interest);
57 
58  virtual bool
59  Add(shared_ptr<const Data> data);
60 
61  virtual void
62  Print(std::ostream& os) const;
63 
64  virtual uint32_t
65  GetSize() const;
66 
67  virtual Ptr<cs::Entry>
68  Begin();
69 
70  virtual Ptr<cs::Entry>
71  End();
72 
73  virtual Ptr<cs::Entry> Next(Ptr<cs::Entry>);
74 };
75 
76 } // namespace cs
77 } // namespace ndn
78 } // namespace ns3
79 
80 #endif // NDN_CONTENT_STORE_NOCACHE_H
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.
virtual Ptr< cs::Entry > End()
Return item next after last (no order guaranteed)
Implementation of ContentStore that completely disables caching.
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 void Print(std::ostream &os) const
Print out content store entries.
virtual ~Nocache()
Virtual destructor.
virtual Ptr< cs::Entry > Next(Ptr< cs::Entry >)
virtual uint32_t GetSize() const
Get number of entries in content store.
Base class for NDN content store.