NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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
ns3::ndn::cs::Nocache::Add
virtual bool Add(shared_ptr< const Data > data)
Add a new content to the content store.
Definition:
content-store-nocache.cpp:60
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::cs::Nocache::End
virtual Ptr< cs::Entry > End()
Return item next after last (no order guaranteed)
Definition:
content-store-nocache.cpp:83
ns3::ndn::cs::Nocache
Implementation of ContentStore that completely disables caching.
Definition:
content-store-nocache.hpp:35
ns3::ndn::cs::Nocache::Lookup
virtual shared_ptr< Data > Lookup(shared_ptr< const Interest > interest)
Find corresponding CS entry for the given interest.
Definition:
content-store-nocache.cpp:53
ns3::ndn::cs::Nocache::GetTypeId
static TypeId GetTypeId()
Interface ID.
Definition:
content-store-nocache.cpp:34
ns3::ndn::cs::Nocache::Nocache
Nocache()
Default constructor.
Definition:
content-store-nocache.cpp:44
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::cs::Nocache::Begin
virtual Ptr< cs::Entry > Begin()
Return first element of content store (no order guaranteed)
Definition:
content-store-nocache.cpp:77
ns3::ndn::cs::Nocache::Print
virtual void Print(std::ostream &os) const
Print out content store entries.
Definition:
content-store-nocache.cpp:66
ns3::ndn::cs::Nocache::~Nocache
virtual ~Nocache()
Virtual destructor.
Definition:
content-store-nocache.cpp:48
ns3::ndn::cs::Nocache::Next
virtual Ptr< cs::Entry > Next(Ptr< cs::Entry >)
Definition:
content-store-nocache.cpp:88
ns3::ndn::cs::Nocache::GetSize
virtual uint32_t GetSize() const
Get number of entries in content store.
Definition:
content-store-nocache.cpp:71
ns3::ndn::ContentStore
Base class for NDN content store.
Definition:
ndn-content-store.hpp:100
ndnSIM
model
cs
content-store-nocache.hpp
Generated on Sun Feb 24 2019 22:16:05 for ndnSIM by
1.8.15