[ndnSIM] Creating Custom Strategy that keeps state.
shijunxiao at email.arizona.edu
Fri Jun 23 14:49:58 PDT 2017
Strategy should not keep states on its own instance. All states must be
stored as StrategyInfo in a PIT or Measurements entry. Violating this rule
triggers undefined behavior. See NFD developer guide "strategy storage"
section for more information.
On Fri, Jun 23, 2017 at 2:43 PM, Olumide Akinwande <
jolumideakinwande at yahoo.com> wrote:
> Hi ndnSim friends,
> I am trying to create a custom strategy that keeps state and I need some
> Going through the access-strategy in the ndnSim package, I'm a bit
> confused about how some of the data structures declared in the
> access-strategy.hpp are initialized.
> For example an unordered_map is defined called "m_fit" that maps FaceId to
> FaceInfo (class defined in the .hpp file) but in the access-strategy.cpp
> file, only access actions are performed on "m_fit" (which is performed
> I'm confused on how this map was initialised or its values set.
> I think understanding the process is important for my programming and I
> will be glad for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM