77af30859da3429ae4a13ae5cea2face80c35fa7 |
|
08-Feb-2010 |
Nicolas Catania <niko@google.com> |
Added at() method to vector. We use a dummy static field as the returned reference when the index is out of bound.
/external/astl/tests/test_vector.cpp
|
808f34a8cab52569bfca26cec6fd96740aa2ea25 |
|
31-Jan-2010 |
Nicolas Catania <niko@google.com> |
Basic implementation of the std::list. Moved the class used in vector test to common.h to track memory leaks.
/external/astl/tests/test_vector.cpp
|
6943930994c640cbb24773ddb8df99de8a5d7e16 |
|
02-Feb-2010 |
Nicolas Catania <niko@google.com> |
Implementation of vector::erase. Added std::copy, needed to shift the element down during an erase call. Squashed commit of the following: commit e534509bd709350e585f722e525eb2b63ade5831 Author: Nicolas Catania <niko@google.com> Date: Mon Feb 1 10:38:21 2010 -0800 implementation of std::copy commit f94dad514c54c66da85d9492452610285b5ee446 Author: Nicolas Catania <niko@google.com> Date: Sun Jan 31 14:58:15 2010 -0800 Added support for erase. Erase element and erase range of elements.
/external/astl/tests/test_vector.cpp
|
2f8be091d59666a33e3fd11fca1ce71f0a90edbc |
|
29-Jan-2010 |
Nicolas Catania <niko@google.com> |
Added resize call to vector. Fixed a bug in the memory uninitialized_fill to work with iterators.
/external/astl/tests/test_vector.cpp
|
9bf9b2a29e7da59f45b86a800665ad72dafe3f72 |
|
25-Jan-2010 |
Nicolas Catania <niko@google.com> |
Added iterator based vector constructor. The new range based constructors degrades to one reserve and one memmove call for pod types referenced using random access iterators. There is an extra step to disambiguate between range and repeat initializers. Basically for some type combination, the range form can be called when the repeat form was the one targetted. We check if the type is an integer to find out which one was called.
/external/astl/tests/test_vector.cpp
|
b6e436eb559cdcf43e21f6617dc0a3d90c7b89b6 |
|
25-Jan-2010 |
Nicolas Catania <niko@google.com> |
Added std::distance.
/external/astl/tests/test_vector.cpp
|
6f85eabdea7560e8ff6202c264f30be7c6afe109 |
|
22-Jan-2010 |
Nicolas Catania <niko@google.com> |
Use copy constructor to push new non-pod element in the vector. In the push_back method: Previously we used the assignment operator for both pod and non pod types. This was broken for non pod since the memory at the end of the vector where we tried to assign to was not initialized (lhs cw not a valid instance). Instead we use placement new to copy the element to the new location. In the reserve method: Fix line length. Do not try to copy from the old memory area to the new one if the area is non existent (mBegin is NULL).
/external/astl/tests/test_vector.cpp
|
48d768f7d32790ee7f6691367dc543fda1f1181c |
|
21-Jan-2010 |
Nicolas Catania <niko@google.com> |
Added iterator support to the vector class. In iterator, implemented the iterator diff operator. Minor renaming of some parameters in the iterator functions. More tests to exercise the iterator arithmetic.
/external/astl/tests/test_vector.cpp
|
2a4077a9186d6f6dff104bbd1a73484aae6d5c01 |
|
23-May-2009 |
Nicolas Catania <niko@google.com> |
Basic implementation of vector. Uses malloc/realloc for pod type. For classes uses placement new to insert new copies of the data. In the test package, renamed macros.h to common.h New memory file with uninitialized_copy and uninitialized_fill. Disabled the host target since it is used only on linux to run the valgrind tool and that I don't want to spend time making it compile on mac, cygwin ....
/external/astl/tests/test_vector.cpp
|
8b5f35d0aa39e39119dc1e3e2fc4d283995faa2a |
|
12-Jun-2009 |
Nicolas Catania <niko@google.com> |
Revert "Basic implementation of vector." This reverts commit fd56a38d5dcb569b146634bb22c5d9cb1e138e3f.
/external/astl/tests/test_vector.cpp
|
fd56a38d5dcb569b146634bb22c5d9cb1e138e3f |
|
23-May-2009 |
Nicolas Catania <niko@google.com> |
Basic implementation of vector. Uses malloc/realloc for pod type. For classes uses placement new to insert new copies of the data. In the test package, renamed macros.h to common.h New memory file with uninitialized_copy and uninitialized_fill.
/external/astl/tests/test_vector.cpp
|