OGS
Location.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 "Location.h"
5
6#include <ostream>
7
8namespace MeshLib
9{
10std::ostream& operator<<(std::ostream& os, MeshItemType const& t)
11{
12 switch (t)
13 {
15 return os << "N";
17 return os << "E";
19 return os << "F";
21 return os << "C";
23 return os << "I";
24 };
25 return os;
26}
27
28std::ostream& operator<<(std::ostream& os, Location const& l)
29{
30 return os << "(" << l.mesh_id << ", " << l.item_type << ", " << l.item_id
31 << ")";
32}
33
34} // namespace MeshLib
std::ostream & operator<<(std::ostream &os, Element const &e)
Definition Element.cpp:97
std::size_t item_id
Definition Location.h:22
std::size_t mesh_id
Definition Location.h:20
MeshItemType item_type
Definition Location.h:21