[ndnSIM] About the objcect of nfd::cs::LruPolicy

Junxiao Shi shijunxiao at email.arizona.edu
Tue Apr 11 20:37:05 PDT 2017


Hi Xiaochun

1. In Cs class, implement a new method:

    Policy& getPolicy();

2. From Forwarder, you can invoke:

    auto& lru = dynamic_cast<LruPolicy&>(this->getCs().getPolicy());

Yours, Junxiao


On Apr 11, 2017 8:30 PM, "何晓春" <hexiaochun at bupt.edu.cn> wrote:

 Assigned the information to a class member variable in nfd::cs::LruPolicy.
And i want to use this variable in a class number function in
nfd::Forwarder .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170411/6fdb63be/attachment.html>


More information about the ndnSIM mailing list