OGS
GocadNode.cpp
Go to the documentation of this file.
1
10
#include "
GocadNode.h
"
11
12
namespace
FileIO
13
{
14
namespace
Gocad
15
{
16
bool
operator<=
(
GocadNode
const
& n0,
GocadNode
const
& n1)
17
{
18
for
(std::size_t k(0); k < 3; k++)
19
{
20
if
(n0[0] > n1[0])
21
{
22
return
false
;
23
}
24
if
(n0[0] < n1[0])
25
{
26
return
true
;
27
}
28
// => n0[k] == n1[k]
29
}
30
31
return
n0.
getLayerTransitionIndex
() <= n1.
getLayerTransitionIndex
();
32
}
33
34
}
// end namespace Gocad
35
}
// end namespace FileIO
GocadNode.h
FileIO::Gocad::GocadNode
Definition
GocadNode.h:31
FileIO::Gocad::GocadNode::getLayerTransitionIndex
std::size_t getLayerTransitionIndex() const
Definition
GocadNode.h:105
FileIO::Gocad::operator<=
bool operator<=(GocadNode const &n0, GocadNode const &n1)
Definition
GocadNode.cpp:16
FileIO
Definition
SHPImportDialog.h:19
Applications
FileIO
GocadIO
GocadNode.cpp
Generated by
1.12.0