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
9b6683cf
Commit
9b6683cf
authored
5 months ago
by
Octave Perrin
Browse files
Options
Downloads
Patches
Plain Diff
continuation GraphView
parent
f3b83a6e
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
+25
-4
25 additions, 4 deletions
include/aidge/graph/GraphView.hpp
with
25 additions
and
4 deletions
include/aidge/graph/GraphView.hpp
+
25
−
4
View file @
9b6683cf
...
...
@@ -68,7 +68,8 @@ private:
public:
/**
* @todo
* @brief Constructs a GraphView object with a given name
* @params string name : name given to the GraphView
*/
GraphView
(
const
std
::
string
&
name
=
""
)
:
mName
(
name
)
...
...
@@ -77,19 +78,29 @@ public:
}
/**
* @todo
* @brief equality operator, tests if the current GraphView and the gv GraphView have the same Nodes
* @params GraphView &gv GraphView that shall be compared to the current one
* @returns bool True if both GraphView have the same set of Nodes
*/
bool
operator
==
(
const
GraphView
&
gv
)
const
{
return
mNodes
==
gv
.
mNodes
;
}
/**
* @brief Allows to find a Node in the GraphView using the Node's name
* @params string The name of the Node we are looking for
* @returns NodePtr Pointer of the Node that is found
* @details Returns nullptr if the Node isn't found
*/
const
NodePtr
operator
[](
const
std
::
string
&
nodeName
)
const
;
///////////////////////////////////////////////////////
// FUNCTIONAL DESCRIPTION
///////////////////////////////////////////////////////
/**
* @todo
*/
Connector
operator
()(
const
std
::
vector
<
Connector
>
ctors
);
///////////////////////////////////////////////////////
...
...
@@ -129,7 +140,7 @@ public:
/**
* Check that a node is in the current GraphView.
* @param nodePtr Node to check
* @return bool True i
s
nodePtr belongs to the GraphView.
* @return bool True i
f
nodePtr belongs to the GraphView.
*/
bool
inView
(
const
NodePtr
&
nodePtr
)
const
;
...
...
@@ -140,10 +151,18 @@ public:
*/
bool
inView
(
const
std
::
string
&
nodeName
)
const
;
/**
* Retruns the rootNode of the GraphView
* @return NodePtr of the rootNode
*/
inline
NodePtr
rootNode
()
const
noexcept
{
return
mRootNode
;
}
/**
* Changes the rootNode of the GraphView
* @param NodePtr of the new rootNode
*/
void
setRootNode
(
NodePtr
node
);
///////////////////////////////////////////////////////
...
...
@@ -162,6 +181,8 @@ public:
/** @brief Assess if the given Node is an output Node of the GraphView object. */
bool
isOutputNode
(
const
NodePtr
&
nodePtr
)
const
;
/** @todo here i am
*/
void
setOrderedInputs
(
const
std
::
vector
<
std
::
pair
<
NodePtr
,
IOIndex_t
>>&
inputs
);
void
setOrderedOutputs
(
const
std
::
vector
<
std
::
pair
<
NodePtr
,
IOIndex_t
>>&
outputs
);
...
...
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