summaryrefslogtreecommitdiffstats
path: root/src/server/GraphObjectImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-19 02:57:26 +0000
committerDavid Robillard <d@drobilla.net>2012-08-19 02:57:26 +0000
commitba1f169967f64b9657074fba2de803b29829345c (patch)
treeb46baed3c4d96f2129cb58686b09b2b86d86d05e /src/server/GraphObjectImpl.hpp
parent800c329a0b77f9044923885abe0728028eca8350 (diff)
downloadingen-ba1f169967f64b9657074fba2de803b29829345c.tar.gz
ingen-ba1f169967f64b9657074fba2de803b29829345c.tar.bz2
ingen-ba1f169967f64b9657074fba2de803b29829345c.zip
GraphObject => Node
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4722 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/GraphObjectImpl.hpp')
-rw-r--r--src/server/GraphObjectImpl.hpp108
1 files changed, 0 insertions, 108 deletions
diff --git a/src/server/GraphObjectImpl.hpp b/src/server/GraphObjectImpl.hpp
deleted file mode 100644
index 07a59727..00000000
--- a/src/server/GraphObjectImpl.hpp
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- This file is part of Ingen.
- Copyright 2007-2012 David Robillard <http://drobilla.net/>
-
- Ingen is free software: you can redistribute it and/or modify it under the
- terms of the GNU Affero General Public License as published by the Free
- Software Foundation, either version 3 of the License, or any later version.
-
- Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU Affero General Public License for details.
-
- You should have received a copy of the GNU Affero General Public License
- along with Ingen. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef INGEN_ENGINE_GRAPHOBJECTIMPL_HPP
-#define INGEN_ENGINE_GRAPHOBJECTIMPL_HPP
-
-#include <cassert>
-#include <cstddef>
-#include <map>
-
-#include "ingen/GraphObject.hpp"
-#include "ingen/Resource.hpp"
-#include "raul/Deletable.hpp"
-#include "raul/Path.hpp"
-#include "raul/SharedPtr.hpp"
-
-namespace Raul { class Maid; }
-
-namespace Ingen {
-
-namespace Shared { class URIs; }
-
-namespace Server {
-
-class BufferFactory;
-class Context;
-class GraphImpl;
-class ProcessContext;
-
-/** An object on the audio graph (a Graph, Block, or Port).
- *
- * Each of these is a Raul::Deletable and so can be deleted in a realtime safe
- * way from anywhere, and they all have a map of variable for clients to store
- * arbitrary values in (which the engine puts no significance to whatsoever).
- *
- * \ingroup engine
- */
-class GraphObjectImpl : public GraphObject
-{
-public:
- virtual ~GraphObjectImpl() {}
-
- const Raul::Symbol& symbol() const { return _symbol; }
-
- GraphObject* graph_parent() const { return _parent; }
- GraphObjectImpl* parent() const { return _parent; }
-
- /** Rename */
- virtual void set_path(const Raul::Path& new_path) {
- _path = new_path;
- const char* const new_sym = new_path.symbol();
- if (new_sym[0] != '\0') {
- _symbol = Raul::Symbol(new_sym);
- }
- set_uri(GraphObject::path_to_uri(new_path));
- }
-
- const Raul::Atom& get_property(const Raul::URI& key) const;
-
- /** The Graph this object is a child of. */
- virtual GraphImpl* parent_graph() const;
-
- const Raul::Path& path() const { return _path; }
-
- /** Prepare for a new (external) polyphony value.
- *
- * Preprocessor thread, poly is actually applied by apply_poly.
- * \return true on success.
- */
- virtual bool prepare_poly(BufferFactory& bufs, uint32_t poly) = 0;
-
- /** Apply a new (external) polyphony value.
- *
- * Audio thread.
- *
- * \param poly Must be <= the most recent value passed to prepare_poly.
- * \param maid Any objects no longer needed will be pushed to this
- */
- virtual bool apply_poly(
- ProcessContext& context, Raul::Maid& maid, uint32_t poly) = 0;
-
-protected:
- GraphObjectImpl(Ingen::URIs& uris,
- GraphObjectImpl* parent,
- const Raul::Symbol& symbol);
-
- GraphObjectImpl* _parent;
- Raul::Path _path;
- Raul::Symbol _symbol;
-};
-
-} // namespace Server
-} // namespace Ingen
-
-#endif // INGEN_ENGINE_GRAPHOBJECTIMPL_HPP