From 032d526710d174b30e0c9f33ff9f7e60e99fb172 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 20 Jun 2006 21:56:12 +0000 Subject: Renamed OmObject GraphObject; Merged Port::prepare_buffers and Node::run into GraphObject::process. git-svn-id: http://svn.drobilla.net/lad/grauph@69 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ObjectStore.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/libs/engine/ObjectStore.cpp') diff --git a/src/libs/engine/ObjectStore.cpp b/src/libs/engine/ObjectStore.cpp index b35737b0..5154e276 100644 --- a/src/libs/engine/ObjectStore.cpp +++ b/src/libs/engine/ObjectStore.cpp @@ -32,7 +32,7 @@ namespace Om { Patch* ObjectStore::find_patch(const Path& path) { - OmObject* const object = find(path); + GraphObject* const object = find(path); return dynamic_cast(object); } @@ -42,7 +42,7 @@ ObjectStore::find_patch(const Path& path) Node* ObjectStore::find_node(const Path& path) { - OmObject* const object = find(path); + GraphObject* const object = find(path); return dynamic_cast(object); } @@ -52,14 +52,14 @@ ObjectStore::find_node(const Path& path) Port* ObjectStore::find_port(const Path& path) { - OmObject* const object = find(path); + GraphObject* const object = find(path); return dynamic_cast(object); } /** Find the Object at the given path. */ -OmObject* +GraphObject* ObjectStore::find(const Path& path) { return m_objects.find(path); @@ -69,17 +69,17 @@ ObjectStore::find(const Path& path) /** Add an object to the store. Not realtime safe. */ void -ObjectStore::add(OmObject* o) +ObjectStore::add(GraphObject* o) { //cerr << "[ObjectStore] Adding " << o->path() << endl; - m_objects.insert(new TreeNode(o->path(), o)); + m_objects.insert(new TreeNode(o->path(), o)); } /** Add an object to the store. Not realtime safe. */ void -ObjectStore::add(TreeNode* tn) +ObjectStore::add(TreeNode* tn) { //cerr << "[ObjectStore] Adding " << tn->key() << endl; m_objects.insert(tn); @@ -92,10 +92,10 @@ ObjectStore::add(TreeNode* tn) * * @returns TreeNode containing object removed on success, NULL if not found. */ -TreeNode* +TreeNode* ObjectStore::remove(const string& path) { - TreeNode* const removed = m_objects.remove(path); + TreeNode* const removed = m_objects.remove(path); if (removed == NULL) cerr << "[ObjectStore] WARNING: Removing " << path << " failed." << endl; -- cgit v1.2.1