Implement IndexedList::iterator

It is dangerous to expose internal iterator to the outside, which is
easily misused.
This commit is contained in:
Tatsuhiro Tsujikawa 2013-03-01 23:13:24 +09:00
parent 421ae13d40
commit d4ba562710
11 changed files with 583 additions and 133 deletions

View file

@ -165,7 +165,7 @@ void RpcMethodTest::testAddUri()
e_->getRequestGroupMan()->getReservedGroups();
CPPUNIT_ASSERT_EQUAL((size_t)1, rgs.size());
CPPUNIT_ASSERT_EQUAL(std::string("http://localhost/"),
(*rgs.begin()).second->getDownloadContext()->
(*rgs.begin())->getDownloadContext()->
getFirstFileEntry()->getRemainingUris().front());
}
// with options