Ingen  0.5.1
Public Member Functions | Friends | List of all members
Ingen::Client::GraphModel Class Reference

Client's model of a graph. More...

#include <GraphModel.hpp>

+ Inheritance diagram for Ingen::Client::GraphModel:
+ Collaboration diagram for Ingen::Client::GraphModel:

Public Member Functions

GraphType graph_type () const
 
SPtr< ArcModelget_arc (const Ingen::Node *tail, const Ingen::Node *head)
 
bool enabled () const
 
bool polyphonic () const
 
uint32_t internal_poly () const
 
 INGEN_SIGNAL (new_block, void, SPtr< BlockModel >)
 
 INGEN_SIGNAL (removed_block, void, SPtr< BlockModel >)
 
 INGEN_SIGNAL (new_arc, void, SPtr< ArcModel >)
 
 INGEN_SIGNAL (removed_arc, void, SPtr< ArcModel >)
 
- Public Member Functions inherited from Ingen::Client::BlockModel
 BlockModel (const BlockModel &copy)
 
SPtr< const PortModelget_port (const Raul::Symbol &symbol) const
 
SPtr< const PortModelget_port (uint32_t index) const
 
Nodeport (uint32_t index) const
 
const Raul::URI & plugin_uri () const
 
const Resourceplugin () const
 
Resourceplugin ()
 
SPtr< PluginModelplugin_model () const
 
uint32_t num_ports () const
 
const Ports & ports () const
 
void default_port_value_range (SPtr< const PortModel > port, float &min, float &max, uint32_t srate=1) const
 
void port_value_range (SPtr< const PortModel > port, float &min, float &max, uint32_t srate=1) const
 
std::string label () const
 
std::string port_label (SPtr< const PortModel > port) const
 
 INGEN_SIGNAL (new_port, void, SPtr< const PortModel >)
 
 INGEN_SIGNAL (removed_port, void, SPtr< const PortModel >)
 
- Public Member Functions inherited from Ingen::Client::ObjectModel
bool is_a (const URIs::Quark &type) const
 
const Atomget_property (const Raul::URI &key) const
 Get a single property value. More...
 
void on_property (const Raul::URI &uri, const Atom &value)
 Hook called whenever a property is added. More...
 
void on_property_removed (const Raul::URI &uri, const Atom &value)
 Hook called whenever a property value is removed. More...
 
const Raul::Path & path () const
 
const Raul::Symbol & symbol () const
 
SPtr< ObjectModelparent () const
 
bool polyphonic () const
 
Nodegraph_parent () const
 
 INGEN_SIGNAL (new_child, void, SPtr< ObjectModel >)
 
 INGEN_SIGNAL (removed_child, void, SPtr< ObjectModel >)
 
 INGEN_SIGNAL (property, void, const Raul::URI &, const Atom &)
 
 INGEN_SIGNAL (property_removed, void, const Raul::URI &, const Atom &)
 
 INGEN_SIGNAL (destroyed, void)
 
 INGEN_SIGNAL (moved, void)
 
- Public Member Functions inherited from Ingen::Node
Arcs & arcs ()
 
const Arcs & arcs () const
 
virtual LilvInstance * instance ()
 
virtual bool save_state (const std::string &dir) const
 
Raul::URI base_uri () const
 
- Public Member Functions inherited from Ingen::Resource
 Resource (const URIs &uris, const Raul::URI &uri)
 
Resourceoperator= (const Resource &rhs)
 
virtual const Atomset_property (const Raul::URI &uri, const Atom &value, Graph ctx=Graph::DEFAULT)
 Set (replace) a property value. More...
 
virtual const Atomset_property (const Raul::URI &uri, const URIs::Quark &value, Graph ctx=Graph::DEFAULT)
 Set (replace) a property value. More...
 
virtual bool add_property (const Raul::URI &uri, const Atom &value, Graph ctx=Graph::DEFAULT)
 Add a property value. More...
 
virtual void remove_property (const Raul::URI &uri, const Atom &value)
 Remove a property. More...
 
virtual void remove_property (const Raul::URI &uri, const URIs::Quark &value)
 Remove a property. More...
 
virtual bool has_property (const Raul::URI &uri, const Atom &value) const
 Return true iff a property is set with a specific value. More...
 
virtual bool has_property (const Raul::URI &uri, const URIs::Quark &value) const
 Return true iff a property is set with a specific value. More...
 
void set_properties (const Properties &p)
 Set (replace) several properties at once. More...
 
void add_properties (const Properties &p)
 Add several properties at once. More...
 
void remove_properties (const Properties &p)
 Remove several properties at once. More...
 
virtual void set_uri (const Raul::URI &uri)
 
Properties properties (Resource::Graph ctx) const
 Get all the properties with a given context. More...
 
const URIsuris () const
 
const Raul::URI & uri () const
 
const Propertiesproperties () const
 
Propertiesproperties ()
 

Friends

class ClientStore
 

Additional Inherited Members

- Public Types inherited from Ingen::Client::BlockModel
typedef std::vector< SPtr< const PortModel > > Ports
 
- Public Types inherited from Ingen::Node
enum  GraphType {
  GRAPH,
  BLOCK,
  PORT
}
 
typedef std::pair< const Node *, const Node * > ArcsKey
 
typedef std::map< ArcsKey, SPtr< Arc > > Arcs
 
- Public Types inherited from Ingen::Resource
enum  Graph {
  DEFAULT,
  EXTERNAL,
  INTERNAL
}
 
- Static Public Member Functions inherited from Ingen::Node
static Raul::URI main_uri ()
 
static bool uri_is_path (const Raul::URI &uri)
 
static Raul::Path uri_to_path (const Raul::URI &uri)
 
static Raul::URI path_to_uri (const Raul::Path &path)
 
- Static Public Member Functions inherited from Ingen::Resource
static Raul::URI graph_to_uri (Graph g)
 
static Graph uri_to_graph (const char *uri)
 
static bool type (const URIs &uris, const Properties &properties, bool &graph, bool &block, bool &port, bool &is_output)
 Get the ingen type from a set of Properties. More...
 
- Protected Member Functions inherited from Ingen::Client::BlockModel
 BlockModel (URIs &uris, const Raul::URI &plugin_uri, const Raul::Path &path)
 
 BlockModel (URIs &uris, SPtr< PluginModel > plugin, const Raul::Path &path)
 
 BlockModel (const Raul::Path &path)
 
void add_port (SPtr< PortModel > pm)
 
void remove_port (SPtr< PortModel > pm)
 
void remove_port (const Raul::Path &port_path)
 
void set (SPtr< ObjectModel > model)
 Merge the data of o with self, as much as possible. More...
 
- Protected Member Functions inherited from Ingen::Client::ObjectModel
 ObjectModel (URIs &uris, const Raul::Path &path)
 
 ObjectModel (const ObjectModel &copy)
 
virtual void set_path (const Raul::Path &p)
 
virtual void set_parent (SPtr< ObjectModel > p)
 
- Protected Member Functions inherited from Ingen::Node
 Node (const URIs &uris, const Raul::Path &path)
 
- Protected Member Functions inherited from Ingen::Resource
const Atomset_property (const Raul::URI &uri, const Atom &value) const
 
- Protected Attributes inherited from Ingen::Client::BlockModel
Ports _ports
 Vector of ports.
 
Raul::URI _plugin_uri
 Plugin URI (if PluginModel is unknown)
 
SPtr< PluginModel_plugin
 The plugin this block is an instance of.
 
- Protected Attributes inherited from Ingen::Client::ObjectModel
SPtr< ObjectModel_parent
 
- Protected Attributes inherited from Ingen::Node
Arcs _arcs
 Graphs only.
 
- Protected Attributes inherited from Ingen::Resource
const URIs_uris
 

Detailed Description

Client's model of a graph.


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