NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-common.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDNSIM_NDN_COMMON_H
21
#define NDNSIM_NDN_COMMON_H
22
23
#include "ns3/nstime.h"
24
#include "ns3/simulator.h"
25
#include "ns3/attribute.h"
26
#include "ns3/attribute-helper.h"
27
28
#include <ndn-cxx/interest.hpp>
29
#include <ndn-cxx/encoding/block.hpp>
30
#include <ndn-cxx/signature.hpp>
31
#include <ndn-cxx/signature-info.hpp>
32
#include <ndn-cxx/name.hpp>
33
#include <ndn-cxx/data.hpp>
34
#include <ndn-cxx/security/key-chain.hpp>
35
36
#include <ndn-cxx/util/time.hpp>
37
38
#include "
NFD/daemon/face/face.hpp
"
39
40
namespace
nfd
{
41
}
42
43
namespace
ns3
{
44
namespace
ndn
{
45
46
using ::ndn::Name
;
47
namespace
name
= ::ndn::name;
48
49
ATTRIBUTE_HELPER_HEADER(
Name
);
50
51
namespace
time
{
52
using namespace
::
ndn::time
;
53
}
54
55
namespace
lp
{
56
using namespace
::
ndn::lp
;
57
}
58
59
using ::ndn::Exclude
;
60
61
using
std::shared_ptr;
62
using
std::make_shared;
63
64
using ::ndn::Interest
;
65
using ::ndn::Data
;
66
using ::ndn::KeyLocator
;
67
using ::ndn::Signature;
68
using ::ndn::SignatureInfo
;
69
using ::ndn::Block;
70
using ::ndn::KeyChain;
71
72
using ::nfd::Face;
73
using ::ndn::util::FaceUri;
74
75
#ifndef DOXYGEN
76
// For python bindings
77
namespace
nfd
= ::nfd;
78
#endif // DOXYGEN
79
80
using ::ndn::make_unique
;
81
82
}
// namespace ndn
83
}
// namespace ns3
84
85
namespace
nfd
{
86
namespace
face
{
87
88
inline
std::ostream&
89
operator<<
(std::ostream& os,
const
Face&
face
)
90
{
91
os << face.getLocalUri();
92
return
os;
93
}
94
95
}
// namespace face
96
}
// namespace nfd
97
98
#endif // NDNSIM_NDN_COMMON_H
face.hpp
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::tlv::Interest
Definition:
tlv.hpp:61
ndn::time
Definition:
time-custom-clock.hpp:28
ndn::tlv::KeyLocator
Definition:
tlv.hpp:85
nfd::operator<<
std::ostream & operator<<(std::ostream &os, const Network &network)
Definition:
network.cpp:58
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
face
ndn::tlv::Data
Definition:
tlv.hpp:62
ndn::tlv::SignatureInfo
Definition:
tlv.hpp:79
ndn::lp
Definition:
cache-policy.cpp:27
ndn::make_unique
unique_ptr< T > make_unique(Args &&... args)
Definition:
backports.hpp:44
ndn::tlv::Exclude
Definition:
tlv.hpp:73
ndn::name
Definition:
name-component.cpp:37
ndnSIM
model
ndn-common.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12