NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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>
31 #include <ndn-cxx/name.hpp>
32 #include <ndn-cxx/data.hpp>
34 
35 #include <ndn-cxx/util/time.hpp>
36 
37 #include "NFD/daemon/face/face.hpp"
38 
39 namespace nfd {
40 }
41 
42 namespace ns3 {
43 namespace ndn {
44 
46 namespace name = ::ndn::name;
47 
48 ATTRIBUTE_HELPER_HEADER(Name);
49 
50 namespace time {
51 using namespace ::ndn::time;
52 }
53 
54 namespace lp {
55 using namespace ::ndn::lp;
56 }
57 
58 using std::shared_ptr;
59 using std::make_shared;
60 
65 using ::ndn::Block;
67 
69 using ::ndn::FaceUri;
70 
71 #ifndef DOXYGEN
72 // For python bindings
73 namespace nfd = ::nfd;
74 #endif // DOXYGEN
75 
76 using ::ndn::make_unique;
77 
78 } // namespace ndn
79 } // namespace ns3
80 
81 namespace nfd {
82 namespace face {
83 
84 inline std::ostream&
85 operator<<(std::ostream& os, const Face& face)
86 {
87  os << face.getLocalUri();
88  return os;
89 }
90 
91 } // namespace face
92 } // namespace nfd
93 
94 #endif // NDNSIM_NDN_COMMON_H
Copyright (c) 2011-2015 Regents of the University of California.
ndn security KeyChain
Definition: key-chain.cpp:70
ndn Face
Definition: face-impl.hpp:42
std::ostream & operator<<(std::ostream &os, const Network &network)
Definition: network.cpp:79
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:39
Copyright (c) 2011-2015 Regents of the University of California.