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
6namespace FileIO
7{
8namespace Gocad
9{
10bool 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
26}
27
28} // end namespace Gocad
29} // end namespace FileIO
std::size_t getLayerTransitionIndex() const
Definition GocadNode.h:99
bool operator<=(GocadNode const &n0, GocadNode const &n1)
Definition GocadNode.cpp:10