NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
empty-policy.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef EMPTY_POLICY_H_
21 #define EMPTY_POLICY_H_
22 
24 
25 namespace ns3 {
26 namespace ndn {
27 namespace ndnSIM {
28 
32 struct empty_policy_traits {
34  static std::string
35  GetName()
36  {
37  return "";
38  }
39 
40  typedef void* policy_hook_type;
41 
42  template<class Container>
43  struct container_hook {
44  typedef void* type;
45  };
46 
47  template<class Base, class Container, class Hook>
48  struct policy {
49  struct type {
50  inline type(Base& base)
51  {
52  }
53 
54  inline void update(typename Container::iterator)
55  {
56  }
57  inline bool insert(typename Container::iterator)
58  {
59  return true;
60  }
61  inline void
62  lookup(typename Container::iterator item)
63  {
64  }
65  inline void
66  erase(typename Container::iterator item)
67  {
68  }
69  inline void
70  clear()
71  {
72  }
73  };
74  };
75 };
76 
77 } // ndnSIM
78 } // ndn
79 } // ns3
80 
82 
83 #endif // EMPTY_POLICY_H_
Copyright (c) 2011-2015 Regents of the University of California.
Table::const_iterator iterator
Definition: cs-internal.hpp:41
Copyright (c) 2011-2015 Regents of the University of California.