Ingen
0.5.1
|
Store of objects in the graph hierarchy. More...
#include <Store.hpp>
Public Types | |
typedef std::pair< const_iterator, const_iterator > | const_range |
typedef std::map< Raul::Path, SPtr< Node > > | Objects |
Public Member Functions | |
void | add (Node *o) |
Node * | get (const Raul::Path &path) |
iterator | find_descendants_end (Store::iterator parent) |
const_iterator | find_descendants_end (Store::const_iterator parent) const |
const_range | children_range (SPtr< const Node > o) const |
void | remove (iterator top, Objects &removed) |
Remove the object at top and all its children from the store. More... | |
void | rename (iterator i, const Raul::Path &new_path) |
Rename (move) the object at top to new_path . More... | |
unsigned | child_name_offset (const Raul::Path &parent, const Raul::Symbol &symbol, bool allow_zero=true) const |
std::mutex & | mutex () |
Store of objects in the graph hierarchy.
void Ingen::Store::remove | ( | iterator | top, |
Objects & | removed | ||
) |
Remove the object at top
and all its children from the store.
top | Iterator to first (topmost parent) object to remove. |
removed | Filled with all the removed objects. Note this may be many objects since any children will be removed as well. |
void Ingen::Store::rename | ( | iterator | i, |
const Raul::Path & | new_path | ||
) |
Rename (move) the object at top
to new_path
.
Note this invalidates i
.