CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
GraphConnection.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Forward.hpp"
11
12#include "GraphSocket.hpp"
13
16
17namespace CeresEngine {
18
19 class GraphConnection : public RefCounted<GraphConnection> {
20 private:
23
24 public:
27
28 public:
29 explicit GraphConnection(GraphSocket& input, GraphSocket& output) : mInput(&input), mOutput(&output) {}
30
31 public:
32 void disconnect();
33
34 public:
37
40 };
41
42} // namespace CeresEngine
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition GraphConnection.hpp:19
Event< void()> onChange
Definition GraphConnection.hpp:25
Event< void()> onDisconnect
Definition GraphConnection.hpp:26
GraphSocketPtr mInput
Definition GraphConnection.hpp:21
const GraphSocketPtr & getInput() const noexcept
Definition GraphConnection.hpp:36
GraphSocketPtr mOutput
Definition GraphConnection.hpp:22
GraphConnection(GraphSocket &input, GraphSocket &output)
Definition GraphConnection.hpp:29
const GraphSocketPtr & getOutput() const noexcept
Definition GraphConnection.hpp:39
Definition GraphSocket.hpp:46
A simple reference counter base class.
Definition SmartPtr.hpp:438
Base template for the event class.
Definition Event.hpp:27
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25