blob: 0fe43f833abc6b81f4ee35676e848b76ca8dddb9 [file] [log] [blame]
Alexander Afanasyev71ed2382012-07-06 11:37:41 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2011 University of California, Los Angeles
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
19 */
20
21#ifndef EMPTY_POLICY_H_
22#define EMPTY_POLICY_H_
23
24namespace ndnSIM
25{
26
27struct empty_policy_traits
28{
29 typedef void policy_hook_type;
30
31 template<class Container> struct container_hook { typedef void type; }
32
33 template<class Base,
34 class Container,
35 class Hook>
36 struct policy
37 {
38 class type
39 {
40 inline void update (typename parent_trie::iterator) { }
41 inline bool insert (typename parent_trie::iterator) { return true; }
42 inline void lookup (typename parent_trie::iterator item) { }
43 inline void erase (typename parent_trie::iterator item) { }
44 };
45 };
46};
47
48}
49
50#endif // EMPTY_POLICY_H_