NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-constants.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_ENCODING_NFD_CONSTANTS_HPP
23 #define NDN_ENCODING_NFD_CONSTANTS_HPP
24 
25 #include "../common.hpp"
26 
27 namespace ndn {
28 namespace nfd {
29 
30 static const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
31 
34 enum FaceScope : uint8_t {
35  FACE_SCOPE_NONE = std::numeric_limits<uint8_t>::max(),
42 };
43 
44 std::ostream&
45 operator<<(std::ostream& os, FaceScope faceScope);
46 
49 enum FacePersistency : uint8_t {
50  FACE_PERSISTENCY_NONE = std::numeric_limits<uint8_t>::max(),
60 };
61 
62 std::ostream&
63 operator<<(std::ostream& os, FacePersistency facePersistency);
64 
71 };
72 
75 enum LinkType : uint8_t {
76  LINK_TYPE_NONE = std::numeric_limits<uint8_t>::max(),
83 };
84 
85 std::ostream&
86 operator<<(std::ostream& os, LinkType linkType);
87 
90 enum RouteOrigin : uint16_t {
91  ROUTE_ORIGIN_NONE = std::numeric_limits<uint16_t>::max(),
98 };
99 
100 std::ostream&
101 operator<<(std::ostream& os, RouteOrigin routeOrigin);
102 
109 };
110 
111 std::ostream&
112 operator<<(std::ostream& os, RouteFlags routeFlags);
113 
114 } // namespace nfd
115 } // namespace ndn
116 
117 #endif // NDN_ENCODING_NFD_CONSTANTS_HPP
Copyright (c) 2011-2015 Regents of the University of California.
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bit that controls whether local fields are enabled on a face
static const uint64_t INVALID_FACE_ID