Skip to content
Snippets Groups Projects
Commit 2c7b1a89 authored by Octave Perrin's avatar Octave Perrin
Browse files

back to todo

parent c0230ae6
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ enum class DataType; ...@@ -42,7 +42,7 @@ enum class DataType;
* - mName: The name of the GraphView * - mName: The name of the GraphView
* - mRootNode: The root of the GraphView, an arbitrary Node of the GraphView * - mRootNode: The root of the GraphView, an arbitrary Node of the GraphView
* - mNodes: The set of Nodes included in the GraphView * - mNodes: The set of Nodes included in the GraphView
* - mNodeRegistry: Set of nodes included in the graphview with names * - : Set of nodes included in the graphview with names
* - mInputNodes: GraphView inputs IOIndex_t designates the input number * - mInputNodes: GraphView inputs IOIndex_t designates the input number
* - mOutputNodes: GraphView outputs IOIndex_t designates the input number * - mOutputNodes: GraphView outputs IOIndex_t designates the input number
*/ */
...@@ -98,9 +98,11 @@ public: ...@@ -98,9 +98,11 @@ public:
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
// FUNCTIONAL DESCRIPTION // FUNCTIONAL DESCRIPTION
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
/** /**
* @todo * @brief Functional operator for user-friendly connection interface using an ordered set of Connectors.
*/ * @param ctors
* @return Connector
*/
Connector operator()(const std::vector<Connector> ctors); Connector operator()(const std::vector<Connector> ctors);
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
...@@ -575,7 +577,6 @@ public: ...@@ -575,7 +577,6 @@ public:
* @brief Clone the GraphView with shared Operators. It is a new GraphView, with cloned Nodes, but the new Nodes refer to the same Operators as the original ones. * @brief Clone the GraphView with shared Operators. It is a new GraphView, with cloned Nodes, but the new Nodes refer to the same Operators as the original ones.
* @return std::shared_ptr<GraphView> * @return std::shared_ptr<GraphView>
*/ */
//@todo here i am
inline std::shared_ptr<GraphView> cloneSharedOperators() const { inline std::shared_ptr<GraphView> cloneSharedOperators() const {
return cloneCallback(&Node::cloneSharedOperators); return cloneCallback(&Node::cloneSharedOperators);
} }
...@@ -596,7 +597,7 @@ public: ...@@ -596,7 +597,7 @@ public:
return cloneCallback(&Node::clone); return cloneCallback(&Node::clone);
} }
/** TODO: reformulate /** TODO: understand and reformulate (and see above clones)
* @brief Clone the current GraphView using a callback function for the Node cloning, allowing to specify how each * @brief Clone the current GraphView using a callback function for the Node cloning, allowing to specify how each
* Node should be cloned or replaced by another Node type, or removed (i.e. replaced by identity). * Node should be cloned or replaced by another Node type, or removed (i.e. replaced by identity).
* When a Node is removed, the clone() method automatically finds the next valid parent in line, going backward in * When a Node is removed, the clone() method automatically finds the next valid parent in line, going backward in
...@@ -616,8 +617,8 @@ public: ...@@ -616,8 +617,8 @@ public:
/** /**
* @brief Force update of GraphView inputs/outputs. * @brief Force update of GraphView inputs/outputs.
* It may be necessary to force the update of GraphView inputs/outputs when * It may be necessary to force the update of GraphView inputs/outputs when Nodes
* connections are added or removed inside the GraphView **after** the nodes * and connections are added or removed inside the GraphView **after** the nodes
* were added. * were added.
*/ */
void updateInputsOutputs(); void updateInputsOutputs();
...@@ -646,11 +647,13 @@ private: ...@@ -646,11 +647,13 @@ private:
* inputs/outputs after adding this node. * inputs/outputs after adding this node.
* @param nodePtr * @param nodePtr
*/ */
//@todo 100+ lines =(
void updateInputsOutputsNew(NodePtr newNode); void updateInputsOutputsNew(NodePtr newNode);
//@todo 100+ lines =(
/** /**
* @brief Automatically update GraphView inputs/outputs with a Node removed, checking if * @brief Automatically update GraphView inputs/outputs with a Node removed, checking if
* it this Node was an input/output for the graph and if this node childs become new inputs/outputs * it this Node was an input/output for the graph and if this node's children become new inputs/outputs
* for the graph. * for the graph.
* @param nodePtr * @param nodePtr
*/ */
...@@ -663,7 +666,7 @@ private: ...@@ -663,7 +666,7 @@ private:
}; };
/** /**
* Create a GraphView containing all nodes with a path to given argument. * Create a GraphView containing all nodes with a path to given Node.
* @param node Initial node to construct the graph. * @param node Initial node to construct the graph.
* @return GraphView GraphView containing all nodes with a path to node. * @return GraphView GraphView containing all nodes with a path to node.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment