Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
65e0ed50
Commit
65e0ed50
authored
Aug 31, 2012
by
BRAMAS Berenger
Browse files
Add a equals fonction to test equality without creating a FTreeCoordinate object
parent
95626445
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Containers/FTreeCoordinate.hpp
View file @
65e0ed50
...
...
@@ -208,6 +208,14 @@ public:
return
data
[
0
]
==
other
.
data
[
0
]
&&
data
[
1
]
==
other
.
data
[
1
]
&&
data
[
2
]
==
other
.
data
[
2
];
}
/** Test equal operator
* @param other the coordinate to compare
* @return true if other & current object have same position
*/
bool
equals
(
const
int
inX
,
const
int
inY
,
const
int
inZ
)
const
{
return
data
[
0
]
==
inX
&&
data
[
1
]
==
inY
&&
data
[
2
]
==
inZ
;
}
/** To test difference
*
*/
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment