[Ns-developers] ns-3-names changes

craigdo@ee.washington.edu craigdo at ee.washington.edu
Tue Feb 10 11:31:53 PST 2009


Hi All,

Based on some input from Gustavo, I've changed the names of some of the
methods and parameters in ns-3-names.  I spent some time, well, talking to
myself and explaining this; and I did indeed find it made more sense to
refer to paths and names (but to leave object pointers called contexts).
The current methods and parameters are now:

  Names::Add (std::string name, Ptr<Object> obj);
  Names::Add (std::string path, std::string name, Ptr<Object> object);
  Names::Add (Ptr<Object> context, std::string name, Ptr<Object> object);

  Names::Rename (std::string oldpath, std::string newname);
  Names::Rename (std::string path, std::string oldname, std::string
newname);
  Names::Rename (Ptr<Object> context, std::string oldname, std::string
newname);

  Names::FindName (Ptr<Object> object);
  Names::FindPath (Ptr<Object> object);

  Names::Find (std::string path);
  Names::Find (std::string path, std::string name);
  Names::Find (Ptr<Object> context, std::string name);

There is additional documentation and some reordering of methods for clarity
as well.

-- Craig




More information about the Ns-developers mailing list