LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Loading...
Searching...
No Matches
entity.cc
1#include "entity.h"
2
3#include "lf/mesh/utils/utils.h"
4
5namespace lf::mesh {
6
7int to_sign(Orientation o) { return static_cast<int>(o); }
9 switch (o) {
11 return '+';
12 }
14 return '-';
15 }
16 }
17 return 0;
18}
19
20std::ostream& operator<<(std::ostream& stream, const lf::mesh::Entity& entity) {
21 return stream << entity.RefEl();
22} // end output operator <<
23
24} // namespace lf::mesh
Interface class representing a topological entity in a cellular complex
Definition entity.h:42
virtual base::RefEl RefEl() const =0
Describes the reference element type of this entity.
Defines a set of interface classes that define a mesh manager and provides mesh-related tools that bu...
Definition entity.cc:5
char to_char(Orientation o)
Definition entity.cc:8
std::ostream & operator<<(std::ostream &stream, const lf::mesh::Entity &entity)
Operator overload to print the reference element of Entity to a stream, such as std::cout.
Definition entity.cc:20
int to_sign(Orientation o)
Definition entity.cc:7
Orientation
Relative orientation of a sub-entity.
Definition entity.h:22