b927a3a5c6
This commit also update CS interface (find should return shared_ptr<Data>, CS entry is internal to CS, the design diagrams are corrected too). Change-Id: Ib6377b6d9b8478640ac35d3cfb6c9180cc57c4fe
35 lines
476 B
C++
35 lines
476 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.
|
|
*/
|
|
|
|
// XXX This is a fake CS that does not cache anything.
|
|
|
|
#include "cs.hpp"
|
|
|
|
namespace ndn {
|
|
|
|
Cs::Cs()
|
|
{
|
|
}
|
|
|
|
Cs::~Cs()
|
|
{
|
|
}
|
|
|
|
bool
|
|
Cs::insert(shared_ptr<Data> data)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
shared_ptr<Data>
|
|
Cs::find(const Interest& interest)
|
|
{
|
|
return shared_ptr<Data>();
|
|
}
|
|
|
|
|
|
} //namespace ndn
|