Guillaume Pothier wrote:
Dunno haven't see it, you forgot the attachment ;-)
ha! that's one of my favorites!
Here is the attachment corresponding to my first mail.
Got it but next time, if the patch is not very big please don't compress
it. It's easier for review.
Index: src/bufferlist.C
===================================================================
--- src/bufferlist.C (revision 15262)
+++ src/bufferlist.C (working copy)
@@ -222,6 +222,10 @@
return nvec;
}
+vector<Buffer *> const BufferList::getBuffers() const
+{
+ return bstore;
+}
Buffer * BufferList::first()
{
Index: src/bufferlist.h
===================================================================
--- src/bufferlist.h (revision 15262)
+++ src/bufferlist.h (working copy)
@@ -42,6 +42,9 @@
/// returns a vector with all the buffers filenames
std::vector<std::string> const getFileNames() const;
+
+ /// returns a vector with all the buffers
+ std::vector<Buffer *> const getBuffers() const;
Be careful here because you are returning a copy of the inner vector.
Should have been:
+ std::vector<Buffer *> const & getBuffers() const;
Abdel.