Wildmeshing Toolkit
Loading...
Searching...
No Matches
Tuple.cpp
Go to the documentation of this file.
1#include "Tuple.hpp"
2
3#include <fmt/format.h>
4
5namespace wmtk {
6
7std::string Tuple::as_string() const
8{
9 return fmt::format(
10 "(gid {} : lids[v{},e{},f{}])",
11 global_cid(),
12 local_vid(),
13 local_eid(),
14 local_fid());
15}
16
17Tuple::operator std::string() const
18{
19 return as_string();
20}
21
22std::ostream& operator<<(std::ostream& os, const Tuple& t)
23{
24 os << t.as_string();
25 return os;
26}
27
28} // namespace wmtk
The Tuple is the basic navigation tool in our mesh data structure.
Definition Tuple.hpp:19
std::string as_string() const
Definition Tuple.cpp:7
int8_t local_vid() const
Definition Tuple.hxx:52
int8_t local_fid() const
Definition Tuple.hxx:62
int8_t local_eid() const
Definition Tuple.hxx:57
int64_t global_cid() const
Definition Tuple.hxx:47
std::ostream & operator<<(std::ostream &os, const Tuple &t)
Definition Tuple.cpp:22