diff options
Diffstat (limited to 'src/server/NodeImpl.hpp')
-rw-r--r-- | src/server/NodeImpl.hpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/server/NodeImpl.hpp b/src/server/NodeImpl.hpp index 20ed324f..8e3795d3 100644 --- a/src/server/NodeImpl.hpp +++ b/src/server/NodeImpl.hpp @@ -34,6 +34,7 @@ namespace Shared { class URIs; } namespace Server { +class BlockImpl; class BufferFactory; class GraphImpl; class RunContext; @@ -52,8 +53,8 @@ public: virtual ~NodeImpl() {} const Raul::Symbol& symbol() const { return _symbol; } - const NodeImpl* parent() const { return _parent; } - NodeImpl* parent() { return _parent; } + const BlockImpl* parent() const { return _parent; } + BlockImpl* parent() { return _parent; } /** Rename */ virtual void set_path(const Raul::Path& new_path) { @@ -86,20 +87,12 @@ public: */ virtual bool apply_poly(RunContext& context, uint32_t poly) = 0; - /** Return true iff this is main (the top level Node). - * - * This is sometimes called "the root graph", but the term "main" is used - * to avoid ambiguity with the root path, since main does not have the path - * "/", but usually "/main" to leave namespace for non-node things. - */ - bool is_main() const { return !_parent; } - protected: NodeImpl(const Ingen::URIs& uris, - NodeImpl* parent, + BlockImpl* parent, const Raul::Symbol& symbol); - NodeImpl* _parent; + BlockImpl* _parent; Raul::Path _path; Raul::Symbol _symbol; }; |