OGS
Location.cpp
Go to the documentation of this file.
1
11
#include "
Location.h
"
12
13
#include <ostream>
14
15
namespace
MeshLib
16
{
17
std::ostream&
operator<<
(std::ostream& os,
MeshItemType
const
& t)
18
{
19
switch
(t)
20
{
21
case
MeshItemType::Node
:
22
return
os <<
"N"
;
23
case
MeshItemType::Edge
:
24
return
os <<
"E"
;
25
case
MeshItemType::Face
:
26
return
os <<
"F"
;
27
case
MeshItemType::Cell
:
28
return
os <<
"C"
;
29
case
MeshItemType::IntegrationPoint
:
30
return
os <<
"I"
;
31
};
32
return
os;
33
}
34
35
std::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
Location.h
MeshLib
Definition
ProjectData.h:41
MeshLib::MeshItemType
MeshItemType
Definition
Location.h:21
MeshLib::MeshItemType::Cell
@ Cell
MeshLib::MeshItemType::IntegrationPoint
@ IntegrationPoint
MeshLib::MeshItemType::Node
@ Node
MeshLib::MeshItemType::Face
@ Face
MeshLib::MeshItemType::Edge
@ Edge
MeshLib::operator<<
std::ostream & operator<<(std::ostream &os, Element const &e)
Definition
Element.cpp:88
MeshLib::Location
Definition
Location.h:40
MeshLib::Location::item_id
std::size_t item_id
Definition
Location.h:43
MeshLib::Location::mesh_id
std::size_t mesh_id
Definition
Location.h:41
MeshLib::Location::item_type
MeshItemType item_type
Definition
Location.h:42
MeshLib
Location.cpp
Generated by
1.11.0