summaryrefslogtreecommitdiffstats
path: root/include/utils/List.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix sim build.Andy McFadden2009-07-071-1/+1
| | | | | Looks like older gcc (4.1.x) doesn't properly handle templated fanciness. Apparently that's what we have on the build server.
* improvements (I hope) to to List.h implementation:Mathias Agopian2009-04-281-110/+162
| | | | | | | | | | | | | - made the helper Node and Iterator classes protected inner classes of List so they don't pollute the android namespace. - use "int foo()" instead of "int foo(void)" which is more C++ stylish - made distance() a template function, this way we write it once and it will work with combinations of iterator and const_iterator - added the inline keyword on some function to make it clear to the compiler and the programmer that we want/intend these to be small inline functions - added templated comparison operators to Iterator so it can compare iterator and const_iterator - use size_t instead of "unsigned int" at places - distance() should return a ptrdiff_t (it's kind of mening less here because it won't really work if the distance is < 0) - made sure we handle conversions from iterator to const_iterator, but but fail at compile time in the other direction - added operator->() on iterator and const_iterator - made a bunch of private constructors explicit to avoid unwanted conversions
* small fix to List.h, the post-increment iterators should return "const" ↵Mathias Agopian2009-04-271-2/+2
| | | | objects to disallow constructs such as i++++
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+280
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-280/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+280