Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_core
Commits
2c7b1a89
Commit
2c7b1a89
authored
4 months ago
by
Octave Perrin
Browse files
Options
Downloads
Patches
Plain Diff
back to todo
parent
c0230ae6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/aidge/graph/GraphView.hpp
+13
-10
13 additions, 10 deletions
include/aidge/graph/GraphView.hpp
with
13 additions
and
10 deletions
include/aidge/graph/GraphView.hpp
+
13
−
10
View file @
2c7b1a89
...
...
@@ -42,7 +42,7 @@ enum class DataType;
* - mName: The name of the GraphView
* - mRootNode: The root of the GraphView, an arbitrary Node of 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
* - mOutputNodes: GraphView outputs IOIndex_t designates the input number
*/
...
...
@@ -98,9 +98,11 @@ public:
///////////////////////////////////////////////////////
// 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
);
///////////////////////////////////////////////////////
...
...
@@ -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.
* @return std::shared_ptr<GraphView>
*/
//@todo here i am
inline
std
::
shared_ptr
<
GraphView
>
cloneSharedOperators
()
const
{
return
cloneCallback
(
&
Node
::
cloneSharedOperators
);
}
...
...
@@ -596,7 +597,7 @@ public:
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
* 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
...
...
@@ -616,8 +617,8 @@ public:
/**
* @brief Force update of GraphView inputs/outputs.
* It may be necessary to force the update of GraphView inputs/outputs when
* connections are added or removed inside the GraphView **after** the nodes
* It may be necessary to force the update of GraphView inputs/outputs when
Nodes
*
and
connections are added or removed inside the GraphView **after** the nodes
* were added.
*/
void
updateInputsOutputs
();
...
...
@@ -646,11 +647,13 @@ private:
* inputs/outputs after adding this node.
* @param nodePtr
*/
//@todo 100+ lines =(
void
updateInputsOutputsNew
(
NodePtr
newNode
);
//@todo 100+ lines =(
/**
* @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 child
s
become new inputs/outputs
* it this Node was an input/output for the graph and if this node
's
child
ren
become new inputs/outputs
* for the graph.
* @param nodePtr
*/
...
...
@@ -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.
* @return GraphView GraphView containing all nodes with a path to node.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment