Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
node.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Roc Streaming authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_node/node.h
10//! @brief Base class for nodes.
11
12#ifndef ROC_NODE_NODE_H_
13#define ROC_NODE_NODE_H_
14
16#include "roc_core/shared_ptr.h"
17#include "roc_node/context.h"
18
19namespace roc {
20namespace node {
21
22//! Base class for nodes.
23class Node : public core::NonCopyable<> {
24public:
25 //! Initialize.
27
28 //! Deinitialize.
29 virtual ~Node();
30
31 //! All nodes hold reference to context.
33
34private:
36};
37
38} // namespace node
39} // namespace roc
40
41#endif // ROC_NODE_NODE_H_
Base class for non-copyable objects.
Definition noncopyable.h:23
Shared ownership intrusive pointer.
Definition shared_ptr.h:32
Node context.
Definition context.h:44
Base class for nodes.
Definition node.h:23
Context & context()
All nodes hold reference to context.
Node(Context &context)
Initialize.
virtual ~Node()
Deinitialize.
Node context.
Root namespace.
Non-copyable object.
Shared ownership intrusive pointer.