[Ns-bugs] [Bug 1352] New: Map container reimplementation for attribute system

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Mon Jan 30 10:44:16 PST 2012


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1352

           Summary: Map container reimplementation for attribute system
           Product: ns-3
           Version: ns-3-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: mathieu.lacage at gmail.com
        ReportedBy: jaume.nin at cttc.cat
                CC: ns-bugs at isi.edu
   Estimated Hours: 0.0


Created attachment 1317
  --> https://www.nsnam.org/bugzilla/attachment.cgi?id=1317
Patch that enables maps into the attribute system

In the context of LENA project, we submitted some time ago in [1] a code
extension to enable usage of maps instead of vectors in the attribute system. 

A simpler and more elegant solution was proposed and finally accepted,
accepting a integer map as an attribute but storing it in a vector. The
workaround seemed fine at the moment but it turned out that it is not, since
the map keys (non consecutive) were replaced by the vector index. 

Since the current implementation does not fit our needs, we are submitting
again a patch that enables this feature (attached to the report)

The patch affects core and config-store components.

Any feedback or suggestion on how to improve the proposed solution will be more
than welcomed.

BR,
Jaume Nin

[1] http://codereview.appspot.com/4644042/

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list