Junxiao Shi
7f35843d58
table: NameTree::lookup return Entry& instead of shared_ptr
...
refs #3687
Change-Id: Ie86057337dd36ff2bc6ef3ea0c73fd4ffc4b13d0
2016-08-11 17:06:33 +00:00
Junxiao Shi
f2420fc7a3
table: ensure NameTree::lookup(tableEntry) does not return nullptr
...
NameTree::lookup(tableEntry) is always equivalent to NameTree::lookup(Name).
NameTree::getEntry(tableEntry) should be used when inserting new name tree entry is undesired.
refs #3687
Change-Id: I0b17cd07dde83341976cfe66c85855dfb2fa6e89
2016-08-11 13:18:21 +00:00
Junxiao Shi
811c010098
table: NameTree findExactMatch, findLongestPrefixMatch return Entry*
...
refs #3687
Change-Id: I32752fd711b9641228fbb7f356e72144780cf9ec
2016-08-10 04:12:45 +00:00
Junxiao Shi
e3cf285ee7
table: delete deprecated functions in NameTree
...
NameTree::eraseEntryIfEmpty is renamed to eraseIfEmpty;
the deprecated overload that accepts shared_ptr<name_tree::Entry> is deleted.
name_tree::Entry::getPrefix is deleted in favor of getName.
This commit also improves Doxygen in NameTree class.
refs #3687
Change-Id: Ia98ca676ce6d3bc7b2e97328adccac911c8167d7
2016-08-09 03:50:56 +00:00
Junxiao Shi
b660b4c9c0
table: refactor NameTree hashtable
...
refs #3687
Change-Id: I908c1d7e67da861fc86a756fc0bc69b99ee696f7
2016-08-06 20:47:44 +00:00
Junxiao Shi
80f9fcdaa1
table: don't use shared_ptr in Measurements
...
refs #3164
Change-Id: I7705d00ac155b15b5db69809610b68e96360a0ae
2016-07-24 22:52:28 -07:00
Junxiao Shi
b184e5324d
table: NameTree::getEntry
...
NameTree::get is renamed to NameTree::lookup.
NameTree::getEntry is introduced to return the NameTreeEntry on which a table entry is attached.
tableEntry::m_nameTreeEntry is changed to weak_ptr to avoid circular shared_ptr reference.
refs #3608 , #3619
Change-Id: I425b6a2eb5fe3024bbaff4ff766eb6739be54b02
2016-05-26 18:09:57 +00:00
Junxiao Shi
8c0500fd97
table: fix Measurements::get(Fib::s_emptyEntry) crash
...
refs #3275
Change-Id: Ie630111a3421f470756412896154f8a51f60d23d
2015-11-11 08:30:16 -07:00
Junxiao Shi
35353963db
table: MeasurementsAccessor findLongestPrefixMatch & findExactMatch
...
This commit also improves unit testing of MeasurementsAccessor,
and changes signature of MeasurementsAccessor constructor.
refs #2314
Change-Id: Ie0494628c6d3faac0473bc4cfb21998f89270aaf
2015-01-09 14:04:43 -08:00
Junxiao Shi
767cb33632
table: Measurements::findLongestPrefixMatch(pit::Entry)
...
refs #2314
Change-Id: Iebe80240760b22b573da1e6d23b43273ff3efbeb
2015-01-08 09:35:49 -07:00
Junxiao Shi
b30c7b0596
table: accept predicate in Measurements::findLongestPrefixMatch
...
This commit also deletes unused Measurements::s_defaultLifetime constant.
refs #2314
Change-Id: I6ffce7dee828f1f9aa47099777df6ee0615ce4f1
2015-01-07 23:52:58 -08:00
Junxiao Shi
e368d999a1
table: simplify Measurements with C++11 features
...
This commit also changes TableMeasurements test suite to use UnitTestTimeFixture.
refs #2100
Change-Id: I6af9fbae435fb50d26f6ec54abc7219680c8ade8
2014-12-07 19:56:27 -07:00
Junxiao Shi
ee5a444344
table: erase NameTree entry when FIB/Measurements/StrategyChoice entry is erased
...
This commit also optimizes Measurements table to make use of NameTree shortcuts.
refs #1803
Change-Id: Ib0e465750ed5e8ff9ed129a926a7bc852db4e9e1
2014-07-27 17:13:43 -07:00
Junxiao Shi
1983804963
table: set initial lifetime for Measurements entry
...
refs #1665
Change-Id: Idc83d158616c7a1833d2dbb33e25c35ec1e47f32
2014-06-22 23:36:17 -07:00
Alexander Afanasyev
9bcbc7c130
docs: Update of copyright and license statement in all .hpp and .cpp files
...
Change-Id: I4082db67f2390482615a780d91a513f09d57a9a4
Refs: #1266
2014-04-07 09:18:25 -07:00
Alexander Afanasyev
eb3197fa35
all: Update code to compile with latest time-related changes in ndn-cpp-dev library
...
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
2014-03-18 17:34:12 -07:00
HangZhang
cb4fc83bff
table: shortcuts between FIB, PIT, Measurements, StrategyChoice
...
refs #1202
Change-Id: Ie63ab792e840de7e0889d385d3e8ea8a112cb7e5
2014-03-11 16:31:09 -07:00
Junxiao Shi
4063184af0
table: NameTree::findLongestPrefixMatch predicate
...
refs #1313
Change-Id: I759c8ddf9bc0fe5b970c979f69131a98b1ef32e4
2014-03-03 09:27:13 -07:00
HangZhang
c85a23c457
table: Measurements on NameTree
...
Change-Id: I17bab4a7a085c529b04b35b7fe47e02dd9d6ff00
refs #1200
refs #1201
2014-03-01 16:08:56 +08:00
Junxiao Shi
0b5fbbb4ff
fw: NccStrategy
...
refs #1242
Change-Id: I21f870728b7b361547adbde9d64357c93aeb1ed9
2014-02-26 23:53:53 -08:00
Junxiao Shi
c041ca36ed
core: global io_service and scheduler
...
Scheduler and time are imported from ndn-cpp-dev.
Forwarder is using the new scheduler API.
Face system is not transitioned yet.
refs #1290
Change-Id: I5679cb50bbf9890a105f663b038f13951403c2b6
2014-02-26 12:40:22 -07:00
Junxiao Shi
dbe7173db1
table: MeasurementsAccessor for strategy
...
refs #1276
Change-Id: Idec8f615c726f51612236a55a7532fabeb81a32d
2014-02-24 23:32:48 -07:00
Junxiao Shi
65d0072aa1
table: mock Measurements table
...
refs #1259 , #1197
Change-Id: Ie7cd2ff6fbbb413a77539eb9f1c5354405252cec
2014-02-17 20:09:58 -07:00