NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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::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
nfd::face::Face::getLocalUri
FaceUri getLocalUri() const
Definition:
face.hpp:253
face.hpp
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
nfd::face::Face
generalization of a network interface
Definition:
face.hpp:67
ndn::tlv::Interest
Definition:
tlv.hpp:64
ndn::make_unique
unique_ptr< T > make_unique(Args &&...args)
Definition:
backports.hpp:73
ndn::time
Definition:
time-custom-clock.hpp:28
ndn::tlv::KeyLocator
Definition:
tlv.hpp:89
Face
ndn Face
Definition:
face-impl.hpp:41
nfd::operator<<
std::ostream & operator<<(std::ostream &os, const Network &network)
Definition:
network.cpp:94
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:65
ndn::tlv::SignatureInfo
Definition:
tlv.hpp:83
ndn::lp
Definition:
cache-policy.cpp:28
ndn::tlv::Exclude
Definition:
tlv.hpp:77
ndn::security::v2::KeyChain
ndn security v2 KeyChain
Definition:
key-chain.cpp:76
ndn::name
Definition:
name-component.cpp:37
ndnSIM
model
ndn-common.hpp
Generated on Thu Nov 2 2017 03:30:28 for ndnSIM by
1.8.11