NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
nfd-constants.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
nfd-constants.hpp
"
23
#include <iostream>
24
25
namespace
ndn
{
26
namespace
nfd
{
27
28
std::ostream&
29
operator<<
(std::ostream& os,
FaceScope
faceScope)
30
{
31
switch
(faceScope) {
32
case
FACE_SCOPE_NON_LOCAL
:
33
os <<
"non-local"
;
34
break
;
35
case
FACE_SCOPE_LOCAL
:
36
os <<
"local"
;
37
break
;
38
default
:
39
os <<
"unknown"
;
40
break
;
41
}
42
return
os;
43
}
44
45
std::ostream&
46
operator<<
(std::ostream& os,
FacePersistency
facePersistency)
47
{
48
switch
(facePersistency) {
49
case
FACE_PERSISTENCY_PERSISTENT
:
50
os <<
"persistent"
;
51
break
;
52
case
FACE_PERSISTENCY_ON_DEMAND
:
53
os <<
"on-demand"
;
54
break
;
55
case
FACE_PERSISTENCY_PERMANENT
:
56
os <<
"permanent"
;
57
break
;
58
default
:
59
os <<
"unknown"
;
60
break
;
61
}
62
return
os;
63
}
64
65
std::ostream&
66
operator<<
(std::ostream& os,
LinkType
linkType)
67
{
68
switch
(linkType) {
69
case
LINK_TYPE_POINT_TO_POINT
:
70
os <<
"point-to-point"
;
71
break
;
72
case
LINK_TYPE_MULTI_ACCESS
:
73
os <<
"multi-access"
;
74
break
;
75
default
:
76
os <<
"unknown"
;
77
break
;
78
}
79
return
os;
80
}
81
82
}
// namespace nfd
83
}
// namespace ndn
ndn::nfd::FaceScope
FaceScope
Definition:
nfd-constants.hpp:34
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::LinkType
LinkType
Definition:
nfd-constants.hpp:65
ndn::nfd::FACE_SCOPE_NON_LOCAL
face is non-local
Definition:
nfd-constants.hpp:37
ndn::nfd::LINK_TYPE_MULTI_ACCESS
link is multi-access
Definition:
nfd-constants.hpp:71
ndn::nfd::FACE_PERSISTENCY_PERMANENT
face is permanent
Definition:
nfd-constants.hpp:57
ndn::nfd::FACE_SCOPE_LOCAL
face is local
Definition:
nfd-constants.hpp:40
nfd-constants.hpp
ndn::nfd::FACE_PERSISTENCY_ON_DEMAND
face is on-demand
Definition:
nfd-constants.hpp:54
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
ndn::nfd::LINK_TYPE_POINT_TO_POINT
link is point-to-point
Definition:
nfd-constants.hpp:68
ndn::nfd::operator<<
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Definition:
nfd-constants.cpp:29
ndn::nfd::FACE_PERSISTENCY_PERSISTENT
face is persistent
Definition:
nfd-constants.hpp:51
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:48
ndnSIM
ndn-cxx
src
encoding
nfd-constants.cpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11