commit | 62a8e40aa255712d3476d1120810789b2c8a5c88 | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Sat Feb 08 12:00:27 2014 -0600 |
committer | akmhoque <akmhoque@gmail.com> | Sat Feb 08 12:00:27 2014 -0600 |
tree | f556d8eca42ac37e3003b5bce9604127613adc32 | |
parent | f7c2c7ca81b3c98e543a90bd8e124afa66783901 [diff] [blame] |
FIB manipaulation done
diff --git a/nlsr_npl.cpp b/nlsr_npl.cpp index 251c647..b278699 100644 --- a/nlsr_npl.cpp +++ b/nlsr_npl.cpp
@@ -33,6 +33,26 @@ } +int +Npl::removeFromNpl(string& name) +{ + std::list<string >::iterator it = std::find_if( nameList.begin(), + nameList.end(), + bind(&nameCompare, _1 , name)); + + if( it != nameList.end() ){ + nameList.erase(it); + } + + return -1; +} + +void +Npl::sortNpl() +{ + nameList.sort(); +} + void Npl::printNpl(){ int i=1;