| /* -*- 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_INFO_HOST_HPP |
| #define NFD_TABLE_STRATEGY_INFO_HOST_HPP |
| #include "fw/strategy-info.hpp" |
| /** \class StrategyInfoHost |
| * \brief base class for an entity onto which StrategyInfo may be placed |
| setStrategyInfo(shared_ptr<T> strategyInfo); |
| shared_ptr<fw::StrategyInfo> m_strategyInfo; |
| StrategyInfoHost::setStrategyInfo(shared_ptr<T> strategyInfo) |
| m_strategyInfo = strategyInfo; |
| StrategyInfoHost::getStrategyInfo() |
| return static_pointer_cast<T, fw::StrategyInfo>(m_strategyInfo); |
| #endif // NFD_TABLE_STRATEGY_INFO_HOST_HPP |