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-rib-flags.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_MANAGEMENT_NFD_RIB_FLAGS_HPP
23
#define NDN_MANAGEMENT_NFD_RIB_FLAGS_HPP
24
25
#include "../encoding/nfd-constants.hpp"
26
27
namespace
ndn
{
28
namespace
nfd
{
29
37
template
<
typename
T>
38
class
RibFlagsTraits
39
{
40
public
:
41
bool
42
isChildInherit
()
const
43
{
44
return
static_cast<
const
T*
>
(
this
)->getFlags() &
ROUTE_FLAG_CHILD_INHERIT
;
45
}
46
47
bool
48
isRibCapture
()
const
49
{
50
return
static_cast<
const
T*
>
(
this
)->getFlags() &
ROUTE_FLAG_CAPTURE
;
51
}
52
};
53
54
}
// namespace nfd
55
}
// namespace ndn
56
57
#endif // NDN_MANAGEMENT_NFD_RIB_FLAGS_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::RibFlagsTraits::isRibCapture
bool isRibCapture() const
Definition:
nfd-rib-flags.hpp:48
ndn::nfd::RibFlagsTraits
implements getters to each RIB flag
Definition:
nfd-rib-flags.hpp:38
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
ndn::nfd::ROUTE_FLAG_CAPTURE
Definition:
nfd-constants.hpp:92
ndn::nfd::RibFlagsTraits::isChildInherit
bool isChildInherit() const
Definition:
nfd-rib-flags.hpp:42
ndn::nfd::ROUTE_FLAG_CHILD_INHERIT
Definition:
nfd-constants.hpp:91
ndnSIM
ndn-cxx
src
management
nfd-rib-flags.hpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11