diff options
author | David Robillard <d@drobilla.net> | 2012-08-14 14:36:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-14 14:36:51 +0000 |
commit | a8312be2d849b73ff0acc80a226095bcfee3556c (patch) | |
tree | bb5d7de6c3fd8b5ac121ec023e46a90ddc24abb0 /ingen | |
parent | 50f85edbd0f07135eb73201367bbd256792ee999 (diff) | |
download | ingen-a8312be2d849b73ff0acc80a226095bcfee3556c.tar.gz ingen-a8312be2d849b73ff0acc80a226095bcfee3556c.tar.bz2 ingen-a8312be2d849b73ff0acc80a226095bcfee3556c.zip |
Saner/faster Store interface for finding children.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4694 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/Store.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<GraphObject> > Objects; - const_iterator children_begin(SharedPtr<const GraphObject> o) const; - const_iterator children_end(SharedPtr<const GraphObject> o) const; + typedef std::pair<const_iterator, const_iterator> const_range; - SharedPtr<GraphObject> find_child(SharedPtr<const GraphObject> parent, - const Raul::Symbol& symbol) const; + const_range + children_range(SharedPtr<const GraphObject> o) const; unsigned child_name_offset(const Raul::Path& parent, const Raul::Symbol& symbol, |