Files
oak-editor/nodes/nodeedge.h
T
2019-05-08 00:41:44 +10:00

40 lines
684 B
C++

#ifndef NODEEDGE_H
#define NODEEDGE_H
#include <memory>
class NodeIO;
class NodeEdge;
using NodeEdgePtr = std::shared_ptr<NodeEdge>;
class NodeEdge
{
public:
/**
* @brief NodeEdge Constructor
*
* Creates a node edge and stores its two connections.
*
* This should not be used directly. Use the static function EffectRow::ConnectEdge instead.
*
* @param output
*
* Output/from EffectRow that this edge "starts" at
*
* @param input
*
* Input/to EffectRow that this edge "ends" at
*/
NodeEdge(NodeIO* output, NodeIO* input);
NodeIO* output();
NodeIO* input();
private:
NodeIO* output_;
NodeIO* input_;
};
#endif // NODEEDGE_H