From efa4847a61bb484cd544db95027f54ab60bf2fb3 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 13 Dec 2008 16:56:02 +0000 Subject: [PATCH] Added to_list method for read only STL list access to the observable_list --- src/common/observable-list.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/common/observable-list.hpp b/src/common/observable-list.hpp index ed7fec8d6..c672d2a1b 100644 --- a/src/common/observable-list.hpp +++ b/src/common/observable-list.hpp @@ -263,6 +263,19 @@ public: changed.emit(); } +public: + /* ===== Conversions ===== */ + + /** + * Returns a copy of this observable_list converted to an STL list + * object. + * @return Returns a copy of the STL list. + **/ + std::list to_list() const + { + return list; + } + public: /* ===== Signals ===== */