began node hashing for improved cache

This commit is contained in:
itsmattkc
2019-09-02 12:06:24 +10:00
parent f2972651af
commit b563b9e783
7 changed files with 106 additions and 24 deletions
+6
View File
@@ -21,6 +21,7 @@
#ifndef NODE_H
#define NODE_H
#include <QCryptographicHash>
#include <QMutex>
#include <QObject>
@@ -147,6 +148,11 @@ public:
*/
bool OutputsTo(Node* n);
/**
* @brief Add's unique information about this Node at the given time to a QCryptographicHash
*/
virtual void Hash(QCryptographicHash* hash, NodeOutput *from, const rational& time);
/**
* @brief Convert a pointer to a value that can be sent between NodeParams
*/