blob: 9d3f218e32b8f3efa763cf8a68fd42e9aab5743a [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "strategy-choice-entry.hpp"
namespace nfd {
namespace strategy_choice {
Entry::Entry(const Name& prefix)
: m_prefix(prefix)
{
}
void
Entry::setStrategy(shared_ptr<fw::Strategy> strategy)
{
BOOST_ASSERT(static_cast<bool>(strategy));
m_strategy = strategy;
}
} // namespace strategy_choice
} // namespace nfd