| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| * Copyright (C) 2014 Named Data Networking Project |
| * See COPYING for copyright and distribution information. |
| #ifndef NFD_TABLE_STRATEGY_CHOICE_ENTRY_HPP |
| #define NFD_TABLE_STRATEGY_CHOICE_ENTRY_HPP |
| namespace strategy_choice { |
| /** \brief represents a Strategy Choice entry |
| class Entry : noncopyable |
| Entry(const Name& prefix); |
| setStrategy(shared_ptr<fw::Strategy> strategy); |
| shared_ptr<fw::Strategy> m_strategy; |
| shared_ptr<name_tree::Entry> m_nameTreeEntry; |
| friend class nfd::NameTree; |
| friend class nfd::name_tree::Entry; |
| Entry::getStrategy() const |
| BOOST_ASSERT(static_cast<bool>(m_strategy)); |
| } // namespace strategy_choice |
| #endif // NFD_TABLE_STRATEGY_CHOICE_ENTRY_HPP |