Ingen  0.5.1
Public Types | Public Member Functions | List of all members
Ingen::Store Class Reference

Store of objects in the graph hierarchy. More...

#include <Store.hpp>

+ Inheritance diagram for Ingen::Store:
+ Collaboration diagram for Ingen::Store:

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)
 
Nodeget (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 ()
 

Detailed Description

Store of objects in the graph hierarchy.

Member Function Documentation

§ remove()

void Ingen::Store::remove ( iterator  top,
Objects &  removed 
)

Remove the object at top and all its children from the store.

Parameters
topIterator to first (topmost parent) object to remove.
removedFilled with all the removed objects. Note this may be many objects since any children will be removed as well.

§ rename()

void Ingen::Store::rename ( iterator  i,
const Raul::Path &  new_path 
)

Rename (move) the object at top to new_path.

Note this invalidates i.


The documentation for this class was generated from the following files: