Files
NFD/daemon/table/strategy-choice-entry.cpp
T
Junxiao Shi bb5105f218 table: Strategy Choice table
refs #1309

Change-Id: I6fd8efdfc98175a1cc39fdc3aa7175671596f470
2014-03-05 09:27:51 +00:00

26 lines
512 B
C++

/* -*- 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