removed all dependence on NodeOutputs
If Nodes only have the one output, we don't need to do so much differentiation between them. Previous iteration used outputs as like a distinct function within a Node (e.g. length output would return one result, buffer output would produce a different result - each run different code to produce their results). Now in this iteration, it's more accurate to say a Node is just one function (which seems more appropriate for a node system anyway).
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@ class NodeValueTable
|
||||
public:
|
||||
NodeValueTable();
|
||||
|
||||
QVariant Get(const NodeParam::DataType& type, const QString& tag = QString());
|
||||
QVariant Get(const NodeParam::DataType& type, const QString& tag = QString()) const;
|
||||
QVariant Take(const NodeParam::DataType& type, const QString& tag = QString());
|
||||
void Push(const NodeValue& value);
|
||||
void Push(const NodeParam::DataType& type, const QVariant& data, const QString& tag = QString());
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
static NodeValueTable Merge(QList<NodeValueTable> tables);
|
||||
|
||||
private:
|
||||
QVariant GetInternal(const NodeParam::DataType& type, const QString& tag, bool remove);
|
||||
int GetInternal(const NodeParam::DataType& type, const QString& tag) const;
|
||||
|
||||
QList<NodeValue> values_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user