NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
route-flags-traits.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_MGMT_NFD_RIB_FLAGS_HPP
23 #define NDN_MGMT_NFD_RIB_FLAGS_HPP
24 
25 #include "../../encoding/nfd-constants.hpp"
26 
27 namespace ndn {
28 namespace nfd {
29 
37 template<typename T>
39 {
40 public:
41  bool
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 protected:
54  RouteFlagsTraits() = default;
55 };
56 
57 } // namespace nfd
58 } // namespace ndn
59 
60 #endif // NDN_MGMT_NFD_RIB_FLAGS_HPP
Copyright (c) 2011-2015 Regents of the University of California.
defines getters for each route inheritance flag
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40