blob: 9d3f218e32b8f3efa763cf8a68fd42e9aab5743a [file] [log] [blame]
Junxiao Shibb5105f2014-03-03 12:06:45 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "strategy-choice-entry.hpp"
8
9namespace nfd {
10namespace strategy_choice {
11
12Entry::Entry(const Name& prefix)
13 : m_prefix(prefix)
14{
15}
16
17void
18Entry::setStrategy(shared_ptr<fw::Strategy> strategy)
19{
20 BOOST_ASSERT(static_cast<bool>(strategy));
21 m_strategy = strategy;
22}
23
24} // namespace strategy_choice
25} // namespace nfd