OGS
GocadNode.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
GocadNode.h
"
5
6
namespace
FileIO
7
{
8
namespace
Gocad
9
{
10
bool
operator<=
(
GocadNode
const
& n0,
GocadNode
const
& n1)
11
{
12
for
(std::size_t k(0); k < 3; k++)
13
{
14
if
(n0[0] > n1[0])
15
{
16
return
false
;
17
}
18
if
(n0[0] < n1[0])
19
{
20
return
true
;
21
}
22
// => n0[k] == n1[k]
23
}
24
25
return
n0.
getLayerTransitionIndex
() <= n1.
getLayerTransitionIndex
();
26
}
27
28
}
// end namespace Gocad
29
}
// end namespace FileIO
GocadNode.h
FileIO::Gocad::GocadNode
Definition
GocadNode.h:25
FileIO::Gocad::GocadNode::getLayerTransitionIndex
std::size_t getLayerTransitionIndex() const
Definition
GocadNode.h:99
FileIO::Gocad
Definition
Applications/FileIO/GocadIO/CoordinateSystem.cpp:15
FileIO::Gocad::operator<=
bool operator<=(GocadNode const &n0, GocadNode const &n1)
Definition
GocadNode.cpp:10
FileIO
Definition
SHPImportDialog.h:8
Applications
FileIO
GocadIO
GocadNode.cpp
Generated by
1.14.0