34ed82706a56c94993efa2b679ff1520e5db5bb7 |
|
07-Jul-2009 |
Andy McFadden <fadden@android.com> |
Fix sim build. Looks like older gcc (4.1.x) doesn't properly handle templated fanciness. Apparently that's what we have on the build server.
/system/core/include/utils/List.h
|
0077a0dd692e38ee7d90725727f311f0f9c24d04 |
|
28-Apr-2009 |
Mathias Agopian <mathias@google.com> |
improvements (I hope) to to List.h implementation: - 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
/system/core/include/utils/List.h
|
ebd9dd5521acddb8017380b1483732b2f25e1ccd |
|
28-Apr-2009 |
Mathias Agopian <mathias@google.com> |
small fix to List.h, the post-increment iterators should return "const" objects to disallow constructs such as i++++
/system/core/include/utils/List.h
|
cbb1011c95e0c25c29e40e203a6a31bccd029da3 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/system/core/include/utils/List.h
|
cf59fa8dc7ddca5a172860223b06afed5d4ec0e0 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/system/core/include/utils/List.h
|
d245d1d09731d6a19e8a25559d3907f54441ac3d |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/system/core/include/utils/List.h
|