blob: 8d74b504af5e4c90b95f186ee8ce2264a164d5fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "ref.hpp"
#include "concepts.hpp"
using namespace intellect;
using namespace level1;
using namespace concepts;
std::string ref::dump(ref skipmarkertype, ref skipmarkertarget)
{
if (linked(skipmarkertype, skipmarkertarget)) {
return {};
}
std::string ret;
for (auto & link : links()) {
if (link.first == concepts::name) { continue; }
if (ret.size() == 0) {
ret = name() + ":\n";
}
ret += " " + link.first.name() + ": " + link.second.name() + "\n";
}
link(skipmarkertype, skipmarkertarget);
for (auto & link : links()) {
if (link.first == skipmarkertype && link.second == skipmarkertarget) {
continue;
}
ret += link.second.dump(skipmarkertype, skipmarkertarget);
}
return ret;
}
|