OGS
Location.cpp
Go to the documentation of this file.
1
11#include "Location.h"
12
13#include <ostream>
14
15namespace MeshLib
16{
17std::ostream& operator<<(std::ostream& os, MeshItemType const& t)
18{
19 switch (t)
20 {
22 return os << "N";
24 return os << "E";
26 return os << "F";
28 return os << "C";
30 return os << "I";
31 };
32 return os;
33}
34
35std::ostream& operator<<(std::ostream& os, Location const& l)
36{
37 return os << "(" << l.mesh_id << ", " << l.item_type << ", " << l.item_id
38 << ")";
39}
40
41} // namespace MeshLib
MeshItemType
Definition Location.h:21
std::ostream & operator<<(std::ostream &os, Element const &e)
Definition Element.cpp:88
std::size_t item_id
Definition Location.h:43
std::size_t mesh_id
Definition Location.h:41
MeshItemType item_type
Definition Location.h:42