From a8312be2d849b73ff0acc80a226095bcfee3556c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Aug 2012 14:36:51 +0000 Subject: Saner/faster Store interface for finding children. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4694 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/Store.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ingen') diff --git a/ingen/Store.hpp b/ingen/Store.hpp index ded18608..f35c8368 100644 --- a/ingen/Store.hpp +++ b/ingen/Store.hpp @@ -39,11 +39,10 @@ public: typedef Raul::Table< Raul::Path, SharedPtr > Objects; - const_iterator children_begin(SharedPtr o) const; - const_iterator children_end(SharedPtr o) const; + typedef std::pair const_range; - SharedPtr find_child(SharedPtr parent, - const Raul::Symbol& symbol) const; + const_range + children_range(SharedPtr o) const; unsigned child_name_offset(const Raul::Path& parent, const Raul::Symbol& symbol, -- cgit v1.2.1